Welcome Guest, Not a member yet? Register   Sign In
How to create dynamically controllers function name in codeigniter
#11

[eluser]beeLoop[/eluser]
[quote author="PhilTem" date="1350320024"]If you want to understand the usage of a bootstrap-controller, you should really consider starting to read through index.php and all files that are included in index.php and basically follow the business logic/flow of CI to see what a bootstrap controller can do and how you can use it best Wink[/quote]

Seems i have to edit CI's root folder for initiating bootstrap controller. IS there any other way to create controllers dynamically.
I am running out of time.

I need to load some view based on user's name(as per my project requirement) appended exactly after the base_url(). So in CI terms, the user's name will be the name of controllers (its index function) which will be called.

All users are in database. So How i will route them to a controller name which will be called, when the user's name match with controller's name?
So i need to create a dynamic controller, whose name will match with user's and load accordingly.

How to achieve this in codeigniter??



Messages In This Thread
How to create dynamically controllers function name in codeigniter - by El Forum - 10-15-2012, 10:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB