Welcome Guest, Not a member yet? Register   Sign In
Making some page links using codeigniter
#1

[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
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB