Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Template Controller and HMVC
  • I've a Controller_front which extends Controller_Template (I use it as base for almost all my front end controllers). I've a Controller_widget which extends Controller. I've defined a before function on the Controller_front. In that function I construct the site sidebar using:
    <code>$this->mods = \Request::forge('widget/blog')->execute();</code> The weird thing is for each \Request::forge call, the Before function on the Controller_front is called.
    Any ideas?
  • Request::forge() forges a new request, exactly like the one that is created from the URI. So the question is: to what controller does the route 'widget/blog' point to, and what does this controller extend?

Howdy, Stranger!

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

In this Discussion