Associate
- Joined
- 1 May 2006
- Posts
- 810
- Location
- Bristol, UK
Good evening to you all.
I picked up Code Igniter on friday and got hooked instantly. Saturday morning led me towards Smarty and by saturday evening the two were linked up thanks to the writing of an extra class.
I've since come across two problems.
The first of which is that I previously used nesting layouts for my pages in which the header, navbar and sidebar (all containing database elements) were called by an index file and the main 'content' was picked up by using a URL variable. I've no idea how to achieve this in CI as there is no 'master' index page. Can anyone help?
Second of all is that I'm finding Smarty VERY laborious since a lot of my work is database orientated. Can someone give me a good reason to keep using it instead of CI 'views'?
Edit: Ignore the comment about Smarty...I cleverly missed off the [ and ] when inserting data into an array....clever me!
Thanks in advance,
Freakish_05
I picked up Code Igniter on friday and got hooked instantly. Saturday morning led me towards Smarty and by saturday evening the two were linked up thanks to the writing of an extra class.
I've since come across two problems.
The first of which is that I previously used nesting layouts for my pages in which the header, navbar and sidebar (all containing database elements) were called by an index file and the main 'content' was picked up by using a URL variable. I've no idea how to achieve this in CI as there is no 'master' index page. Can anyone help?
Second of all is that I'm finding Smarty VERY laborious since a lot of my work is database orientated. Can someone give me a good reason to keep using it instead of CI 'views'?
Edit: Ignore the comment about Smarty...I cleverly missed off the [ and ] when inserting data into an array....clever me!

Thanks in advance,
Freakish_05
Last edited: