Learning Curve - Step 2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Learning Curve - Step 2 (/showthread.php?tid=26233) |
Learning Curve - Step 2 - El Forum - 01-09-2010 [eluser]chithu[/eluser] 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. Learning Curve - Step 2 - El Forum - 01-09-2010 [eluser]CI2RULZ[/eluser] depends on the website, how large the project, how much data interaction is the same, etc. Typically people split up controllers with a focus on specific areas of functionality. Learning Curve - Step 2 - El Forum - 01-09-2010 [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 |