Williams Concepts Template + load->vars help |
[eluser]Met[/eluser]
hola Must be missing something. I quote the reference (http://www.williamsconcepts.com/ci/codei...rence.html ) Quote:"My template uses other variables that aren't necessarily regions. How do I supply those within Template?" my code: Code: <?php makes sense to me, but i'm clearly missing something. $active doesn't appear to be being set. thanks !
[eluser]WanWizard[/eluser]
That only works when you don't use a parser. In that case, the template library calls $this->load->view() to load the template, and that supports $this->load->vars(). From a quick glance at the code, the Parser library doesn't. For third party parsers, you could build it in. For example in case of Smarty, you could assign the content of $this->load->_ci_cached_vars using Smarty's assign method.
[eluser]Ephyzy[/eluser]
Hi Met. I just found Williams Concepts Template 15 minutes ago, and I think it's awesome. Your code below Code: $this->load->vars($data); Code: $this->template->write_view('content', 'home/index', $data); and everything will be fine. Cheers! |
Welcome Guest, Not a member yet? Register Sign In |