Help with Phil Template library |
[eluser]james182[/eluser]
I am trying to get my navigation working with phil sturgeons template library. i have followed the steps he's provided and the template works, but not my nav. Could i get help to solve this. Thanks Here is my model, view, and controller. MY_Controller: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); Header_view.php: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Navigation Model: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed');
[eluser]techgnome[/eluser]
Don't have any experience with that template system... but at first glance, it looks to me that you're not passing your nav_list to the views properly... you simply load the table into $this->data['nav_list'] but then don't do anything more with it. -tg
[eluser]Phil Sturgeon[/eluser]
That is nowhere near how the Template library works. check out the documentation: http://philsturgeon.co.uk/demos/codeigni...youts.html |
Welcome Guest, Not a member yet? Register Sign In |