is there a way to make Codeigniter use a template for the pages ? |
[eluser]ramm[/eluser]
I'm using Smarty3 with CI http://ilikekillnerds.com/2010/11/using-...i-library/ With the blocks from Smarty, i do something like this: Master Template Code: <!DOCTYPE html> Views Code: {extends file="includes/master.php"} Which is basicly what you are asking for. It can as deep as you want and also you get in the viw all the Smarty functionality like conditionals, loops, cycles, variables with defaul values, etc. |
Welcome Guest, Not a member yet? Register Sign In |