Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Views within views
  • Another seemingly obvious question: Using a blog as an example. A post listing will always look the same so I want to separate this element into its own file as it's used across multiple views. So how do I 'include' this? <?php foreach($posts as $post) {
    //include element here.
    } ?> Thanks in advance Mike
  • View::factory('view_filename');
    

    Docs
  • Perfect thanks, I should've spotted that.

Howdy, Stranger!

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

In this Discussion