Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using template without extending Controller_Template
  • In one of my controllers, I have a method that does the following:

    $this->template->content = View::forge('tmtrip/index');

    ........this shows the index page for the given controller. 

    But, in the same controller, I want to have a create page which will be called by ajax. Upon the ajax call, it should simply save the object into the Database....  However, since I'm extending the Controller_Template, I cannot do that without returning unnecessary information to ajax (naturally, the function echoes the template)..

    What should I do in this case?
  • HarroHarro
    Accepted Answer
    Extend Controller_Hybrid instead?

Howdy, Stranger!

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

In this Discussion