We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40092
    • 265 Posts
    Hi there,

    I am trying to upgrade from Evo to Revo, and frankly i'm stuck at stage 2.
    in Evo i am loading a custom class within the index.php file and all is well, in Revo however, i am trying to do the same and it says "no database selected". Note that the database is just the database modx runs in, no seperate ones here.

    My best gues is that it is something to do with this, but i'm not sure:

    	function __construct($modx = '') {
    		$this->modx = $modx;
    	}


    this is what i am calling in index:
    include_once("assets/includes/MyCustom.class.php");


    Is someone familliar with this, am i mssing the obvious?

    Kind Regards,
    Robin [ed. note: thapriest86 last edited this post 11 years, 5 months ago.]
      • 40092
      • 265 Posts
      Well, turns out including a dbconnect in the custom class does do the trick, however it still bugs me and i think it can be done otherwise.