Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to extend a controller in a Module from another Module?
  • Hi,

    in a Module I try to extend a controller from another module, as these Settings Areas should have same subnavigation and Headlines etc.

    Here is my Code and Error message
    http://bin.fuelphp.com/snippet/view/eT

    As far as I understand this way should be corrrect as I tell the system from which external Namespace I would like to extend.

    Thanks for your help
    Kay
  • HarroHarro
    Accepted Answer
    If your Main module isn't loaded, the namespace isn't known, and you get this error.

    So either "always_load" this module, or do a \Module::load('main') in your  Controller_Admin_Users_Settings file, after the namespace declaration, and before the class is defined.
  • Thanks Harro, that was it. :-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion