Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
One template for whole project
  • Hello, I'am currently checking out FuelPHP for new project, but I can't find answer for this question. Is it possible for modular web page to set one template? What I want to do, is to create biggest categories of project as modules but how can I call from module-controller template which is set in the app/views/ folder? I will be using Fuels template system.
  • Assuming you refer to Controller_Template, all file loads in FuelPHP are cascading. So if you load view "templates/page" from a module, it will check the views folder of the module first, and if not found, it will check the views folders in all loaded packages (if exists), and finally the views folder in app. So your modules can use global files without problems.
  • Oh, I guess I missed this part in documentation. Thanks.

Howdy, Stranger!

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

In this Discussion