Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Rendering Methods
  • What difference ?
  • As the docs say, the difference is the time of rendering. By default, FuelPHP passes View objects around, and only renders output when it has to, and not sooner. This means no time is waisted on Views that will not be rendered, for example because you redirect after you've created them, or because you throw an error that has to be handled with different views. This process is completely transparent, and not something to worry about. There are however some cases where you need to force the view to be rendered. An example is if you use nested views, and one of your nested views contains an Asset::js() call to include an asset in the page header. In this case the nested View has to be rendered before the page layout, otherwise the js file will not be in the header.

Howdy, Stranger!

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

In this Discussion