CodeIgniter Forums

Full Version: Making some page links using codeigniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]nabin das[/eluser]
hello all,

i m creating a cms website using CI. so here in header i have some links to another pages as about us, services, contact. so i need to load the corresponding view when user clicks on those links. so what to do for that? or simple i will pass to the corresponding controller method by anchor tag each time and inside the method load the view for all.

thanks in adv

El Forum

[eluser]boltsabre[/eluser]
>> or simple i will pass to the corresponding controller method by anchor tag each time and inside the method load the view for all.
Yes.

This is very simple and the basis of the MVC pattern in CodeIgniter.

If you are having troubles with this I suggest that you:
1. Find some online CI tutorials. Watch/read them and code along with them.
2. Once you have done a bit of that also read the official code igniter documentation, it's great.

You will then have a much better understanding of both MVC and CI.

Good luck.