![]() |
Phil Sturgeon's Template Library? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Phil Sturgeon's Template Library? (/showthread.php?tid=27748) |
Phil Sturgeon's Template Library? - El Forum - 08-29-2010 [eluser]Bart v B[/eluser] Sorry to bump this topic up. :red: Ok i finely have the template library working. I was thinking to difficult. But now i want to set some breadcrumbs. What i read is that i put in my layout.php Code: <html> Now i have an array() as output. Sounds fair, because there is nothing to display. Where do i put this piece of code? Code: $this->template->set_breadcrumb('Blog', 'blog/index') Has some one the breadcrumbs working? Maybe a static example how this is working? Phil Sturgeon's Template Library? - El Forum - 08-29-2010 [eluser]liri[/eluser] [quote author="Bart v B" date="1283095176"]Sorry to bump this topic up. :red: Where do i put this piece of code? Code: $this->template->set_breadcrumb('Blog', 'blog/index') Has some one the breadcrumbs working? Maybe a static example how this is working?[/quote] That should go into your controller. Phil Sturgeon's Template Library? - El Forum - 04-27-2012 [eluser]gangsar[/eluser] [quote author="Phil Sturgeon" date="1268136398"]Thanks for the props Devon. Muser: I forgot to mention the $teplate['body'] key which is probably the most important! I just updated the documentation. Code: <?=doctype()?> yeah... you should add this point to build() section of your documentation. it must be: Code: build() :cheese: Phil Sturgeon's Template Library? - El Forum - 05-20-2012 [eluser]tieungao[/eluser] User Gravatar Joined: 2012-05-18 Posts: 3 Hi, I create a custom theme with name "uni" in addons/default/themes. Ok this work because i can see it in CP. Next i create a custom module with code : Code: class Server extends Public_Controller Any way to make module using custom them instead of change the active theme in CP? |