Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How do I swap out partials
  • This what is my template

    <?php echo $partials['content']; ?>

    my function to change the content

    public function action_change_content()
    {
    $this->theme->set_partial('content','../views/users/view');
    }

    The problem is it is not changing out the content.
  • Every section can contain multiple partials, what you do here is just add a second partial to it.

    If you want to overwrite the sections contents, pass true as third parameter. See http://fuelphp.com/docs/classes/theme/methods.html#/method_set_partial

Howdy, Stranger!

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

In this Discussion