• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about the template logic (Phil's template library)

#3
[eluser]clip[/eluser]
Ive not personally used this library but I think this will work based on what I have read about it. You can try something like this:

Code:
//in your controller set the variable
$this->data['nav_menu'] = $this->my_model->get_stuff_from_db();

//in your partial template add your variable
{nav_menu}
//the library might use a $
{$nav_menu}

Link I said, I "think" this will work but I'm not 100% sure. Just thought I would throw you a bone.


Messages In This Thread
Question about the template logic (Phil's template library) - by El Forum - 07-30-2010, 08:31 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.