Code Igniter and Smarty frustation

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! :o

Thanks in advance,
Freakish_05
 
Last edited:
Haha, I got in to CI this weekend too.

I suggest reading the FAQ in their Wiki as it shows how to include footer, header, etc as you would normally. The forum has a lot of topics on it too.

At the moment my script is in pure php, but I am thinking of swapping to put it in CI. Only thing is trying to get to grips with the way to setup user login/registration. It's harder than regular php.

Thinking of just not bothering, however I'm looking at the freakauth plugin for now.
 
Back
Top Bottom