Welcome Guest, Not a member yet? Register   Sign In
using a single controller?
#2

[eluser]danoph[/eluser]
I had a similar problem and solved it using routing. On my website, I use one controller and cut out the controller name and go straight to the function. For example, my controller is named 'home' and my functions are 'solutions', 'build', and 'contact'.

If you go to my domain however, the URLs are http://bizwidgets.biz/solutions, http://bizwidgets.biz/build/, etc. They are all functions within the home controller, but the URL doesn't reflect that. It appears they are separate controllers. I wrote a blog post about this called CodeIgniter Routes Trick - Removing Controller Names from the URI to Keep URLs Short.

If it helps you out, digg it!


Messages In This Thread
using a single controller? - by El Forum - 10-13-2007, 05:31 PM
using a single controller? - by El Forum - 10-14-2007, 03:19 AM
using a single controller? - by El Forum - 10-14-2007, 11:40 AM
using a single controller? - by El Forum - 10-14-2007, 12:04 PM
using a single controller? - by El Forum - 10-15-2007, 12:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB