Welcome Guest, Not a member yet? Register   Sign In
Scope of a CMS
#4

[eluser]Bainzy[/eluser]
hello,

i am currenty developing a forum in cideigniter, now a forums script is just another CMS system in a different form, but i too had issues with what controllers i make and how. So what i have done is first edited my routing line to be http://localhost/forums/ from here i made a controller called page, this shows the full front end of the site i am also using the Template plugin to seperate my code from my view files, insted my code opens the view files and writes its data (eg users, topics etc) into the relevant holders.

Now say someone clicks on a topic ... my site then loads the "topics" controller, so now my url looks something like http://localhost/forums/topics/view/2 ... obviously in the topics controller i have a index() function and a view() function, this then allows me to use just the one controller to display 2 dirrerent pages in theroy and it seems to be working like a charm at the moment.


Messages In This Thread
Scope of a CMS - by El Forum - 01-07-2010, 04:40 PM
Scope of a CMS - by El Forum - 01-07-2010, 11:39 PM
Scope of a CMS - by El Forum - 01-08-2010, 03:33 AM
Scope of a CMS - by El Forum - 01-08-2010, 04:14 AM
Scope of a CMS - by El Forum - 01-08-2010, 07:09 AM
Scope of a CMS - by El Forum - 01-08-2010, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB