Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problem with views
  • Let's assume i have a module blog, in this module in one of it's methods i load one more module, for example comments:
    \Fuel::add_module('comments');
    
    Then, in Comments module i get some data and use Views to render them.
    It should look like that:
    return \View::factory('comments', $data)->render();
    
    Problem is, View class can't find comments.php file in APP/modules/comments/views/ directory.
  • Ok, i think i've figured it out.
    You have to add module like that in order to use it's views:
    \Fuel::add_module('module_name', true);
    
    You, guys, really thought about everything :)

Howdy, Stranger!

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

In this Discussion