Welcome Guest, Not a member yet? Register   Sign In
creating dynamic parts in 3 column view
#1

[eluser]Scouser[/eluser]
I'm just starting with CodeIgniter and I was wondering what is the best way of dealing with dynamic parts which I want to use in my page.

Currently I use a 3 column page. With on the left side a menu, and depending on the state of the user it shows a number of menu items. In the middle I have some newsitems with 'read more' functionality. In the thirth column there some more dynamice text.

Formerly I used to call a function from within my webpage like
Code:
$menu->display();
but how should I do this now from CodeIgniter?
#2

[eluser]Rick Jolly[/eluser]
There is a ton of information on embedding views withing views. Here is one thread that covers many methods with links to other threads on the topic:
http://ellislab.com/forums/viewthread/56046/

You might want to check out the FAQ topic in the wiki as well:
http://codeigniter.com/wiki/FAQ/
#3

[eluser]Scouser[/eluser]
Thanx for the quick response this helps a bit already. But to extend my question further, I'm looking for some best-practices. Like for instance I have a menu on the leftside which is put together based on the state of a certain user (logged-in or not). So normally I use one of my own 'menu' classes, but now, using CodeIgniter do I also need to make it aware of the controller class?




Theme © iAndrew 2016 - Forum software by © MyBB