We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Quote from: markh at Oct 28, 2014, 02:45 PM
    When using the new 2.3-style of defining controllers, the index controller is basically made irrelevant. But because your home controller still expects it, you get the fatal error about the IndexManagerController being undefined.

    Two simple solutions:

    1) Throw in a require_once before defining your home controller that loads the index.class.php. Quick 'n easy for when you still want the benefits of the central controller that loads assets globally across your controllers.
    2) Change your home controller to extend modExtraManagerController directly. Works fine for single controller CMPs.

    If you need to support both 2.2 and 2.3, I find the 2.2 method the easiest for now wink


    Thanks Mark for the quick response. I have no need to support 2.2 in the CMPs in question but will attempt solution 2 as sounds like the better option. I had tried extending the modExtraManagerController directly which avoided the blank white page but had some issue with the js and css loading correctly. But think thats probably a path messed up somewhere.

    Thanks to all for their responses.