Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
How do I swap out partials
nmarino
October 2016
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.
Harro
October 2016
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
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
October 2016