Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
I am getting Class Admin\Presenter\Elements\Presenter_Elements_Base' not found
  • Dear sir,

    I have following code in folder called /modules/admin/classes/presenter/elements.

    base.php
    <?php
    namespace Admin\Presenter\Elements;                                                                                                                      
    class Presenter_Elements_Base extends \Presenter                                                                                                         
    {
      public function before()
      {
      }
    }

    sidebar.php
    <?php
    namespace Admin\Presenter\Elements;                                                                                          
    class Presenter_Elements_Sidebar extends Presenter_Elements_Base 
    }
    }

    Then, I am getting following error.

    ErrorException [ Fatal Error ]:
    Class 'Admin\Presenter\Elements\Presenter_Elements_Base' not found

    APPPATH/modules/admin/classes/presenter/elements/sidebar.php @ line 5

    Do you know why?
  • I solve myself.

    Namespace was wrong.

    namespace Admin\Presenter\Elements;

    namespace Admin;

Howdy, Stranger!

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

In this Discussion