Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Categories on the left side show the template.php
  • Hello

    I want a list of categories on the left side of each page.

    How can I do this?
  • Use a base controller, have that extend Controller_Template, and define the page template in the base controller. You can put the stuff you need on every page in the page template too.

    if you need more flexibility (or processing), you can use the before() method of this base controller. Load the views for the global sections here before calling the parent before().

    Then your controllers extend the base controller, and add the view to the body/content section of the template.

    You can check the docs ( on how to work with nested views in a page template.

Howdy, Stranger!

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

In this Discussion