Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Where is the template controller & base controller which extends in controllers.
  • Where is the template controller & base controller which extends in controllers.
  • Which controller exactly are you referring to? The core base controllers (like Controller_Template, Controller_Hybrid and Controller_Rest)? They are in fuel/core/classes/controller.
  • Harro Verton wrote on Sunday 1st of July 2012:
    Which controller exactly are you referring to? The core base controllers (like Controller_Template, Controller_Hybrid and Controller_Rest)? They are in fuel/core/classes/controller.

    Thanks for reply. I also mean the core controller classes. This code from app/classes/controller/base.php class Controller_Base extends Controller_Template
    {
    public function before()
    {
    parent::before(); if(\Session::get('authed') != 'validated' and Request::active()->controller != 'Controller_Login')
    {
    \Response::redirect('login');
    } $controller = Str::lower(substr(Inflector::denamespace(Request::active()->controller), 11));
    $this->template->template_js = array(); //load js
    if(\Asset::forge()->find_file("modules/{$controller}.js", 'js'))
    {
    $this->template->template_js[] = "modules/{$controller}.js";
    }
    }
    }
    I want to find this Controller_Template class.
  • I just told you where Controller_Template is. It's part of the framework, so it's not in app. See also http://docs.fuelphp.com/general/controllers/base.html (and the pages of the framework supplied base controllers) if you're new to FuelPHP.
  • I found it..thanks

Howdy, Stranger!

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

In this Discussion