Closed ruthlessfish closed 12 years ago
This function allows access to theme specific views without having to set a partial first. This is useful for nesting views on the fly.
controller $this->template->set('users', $users)->build('view1');
view1.php <ul> <?php foreach($users as $u): ?> <?php $this->template->load_view('list_item', $u) ?> <?php endforeach ?> </ul>
Can you add this to the docs? :)
no problemo. i'll update it when I get back from lunch.
done and done.
This function allows access to theme specific views without having to set a partial first. This is useful for nesting views on the fly.
controller $this->template->set('users', $users)->build('view1');
view1.php <ul> <?php foreach($users as $u): ?> <?php $this->template->load_view('list_item', $u) ?> <?php endforeach ?> </ul>