Welcome Guest, Not a member yet? Register   Sign In
Controller shared function
#6

[eluser]xinq88[/eluser]
Aah right, so the second problem is not so hard to solve. Thats great!
Only the first problem is something I'd really like to find some solution for. As I said, a library (and a model)is not an option because you can't call that library with a URL as you can with a controller. like:

Code:
http://localhost/index.php/controller/function/parameter

Or is that possible?

Quote:or an extended controller that extends from a common base controller

That's neither an option because, what if I need to implement to controllers?
So a controller Human needs to implement a class/controller 'Work' and a class/controller 'Car'.
But when I type the url localhost/index.php/car/drive it has to got acces to the car class and the function drive().

I really don't know if this is possible at all, if it's not maybe the library solution is the best one in my case.

Thanks all for reacting and some great feedback!


Messages In This Thread
Controller shared function - by El Forum - 09-25-2008, 11:48 AM
Controller shared function - by El Forum - 09-25-2008, 12:06 PM
Controller shared function - by El Forum - 09-25-2008, 01:06 PM
Controller shared function - by El Forum - 09-25-2008, 01:42 PM
Controller shared function - by El Forum - 09-25-2008, 02:03 PM
Controller shared function - by El Forum - 09-25-2008, 02:55 PM
Controller shared function - by El Forum - 09-25-2008, 02:56 PM
Controller shared function - by El Forum - 09-25-2008, 03:02 PM
Controller shared function - by El Forum - 09-25-2008, 03:24 PM
Controller shared function - by El Forum - 09-25-2008, 03:42 PM
Controller shared function - by El Forum - 09-25-2008, 08:50 PM
Controller shared function - by El Forum - 09-25-2008, 11:31 PM
Controller shared function - by El Forum - 09-25-2008, 11:35 PM
Controller shared function - by El Forum - 09-26-2008, 12:32 AM
Controller shared function - by El Forum - 09-26-2008, 12:45 AM
Controller shared function - by El Forum - 09-26-2008, 07:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB