Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Override $template property inside method
  • I want to override my controller's $template property inside of a method in my controller. I'm basically setting up an admin area, and instead of showing the default admin template, I want to show the login form instead. I've tried setting $this->template inside of my method, but that doesn't seem to work. Any ideas?
  • I was also looking to do the same thing. Looking forward to the reply
  • I just use
    $this->template = View::factory('your/view', $data);
    

    Don't know if this is the "right" way but it works for me
  • Ranie Sauca wrote on Wednesday 8th of June 2011:
    I just use
    $this->template = View::factory('your/view', $data);
    

    Don't know if this is the "right" way but it works for me

    Dude, thanks! This works perfect. :D

Howdy, Stranger!

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

In this Discussion