Learning Curve - Step 2

#3
[eluser]developer10[/eluser]
[quote author="chithu" date="1263047195"]hi! Basically i am a php programmer. i learned abt WP, Joomla etc.. here, this is my clarification. i am new for this codeigniter. In Codeigniter, i try the first step by using ‘default controller’. how to make many pages. like in a website, the basic operations like registration, login, member profile etc.. how to use many controllers for those pages. now i use only default_controller. kindly advice me.[/quote]

after making basic design of what "pages" you will need, you can make new controllers.

let's say you make a controller named "users"

in that controller, you set up functions like

login()
logout()
register()
activate()

as you can see, there are already the first 2 segments ready for your uri:

http://example.com/users/register

hope this helps


Messages In This Thread
Learning Curve - Step 2 - by El Forum - 01-09-2010, 02:26 AM
Learning Curve - Step 2 - by El Forum - 01-09-2010, 06:03 AM
Learning Curve - Step 2 - by El Forum - 01-09-2010, 06:57 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.