Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How do I reference other controllers if I've got catch-all routing?
  • Below is my routes.php file:
    <?php
    return array(
     '_root_'  => 'pages/index',  // The default route
     '(:any)'=>'pages/index',
     '_404_'   => 'welcome/404',    // The main 404 route
    );
    

    I'm looking to output the view of a module as part of the view for a page. Like a wordpress widget. To put it bluntly: how do I do this? I've tried this:
    \Request::factory('mymodule/widget')->execute()
    

    But it obviously gets picked up by the catch-all and thus doesn't touch the module.
  • Disable routing for this request:
    \Request::factory('mymodule/widget', false)->execute();
    

Howdy, Stranger!

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

In this Discussion