Welcome Guest, Not a member yet? Register   Sign In
Calling method of other class
#11

[eluser]Filippo Toso[/eluser]
[quote author="bapobap" date="1277045915"]I need to call certain methods based on the request method. So let's imagine a class called Cupcake where you can bake or eat a cupcake.[/quote]

What about a "pre_system" hook?

You can change the REQUEST_URI in the hook depending on the request method. As the pre_system hook is fired before the URI class creation, it should work almost transparently.

Using a custom configuration file and some routing logic you should be able to get a fairly flexible solution.
#12

[eluser]bapobap[/eluser]
That's a good idea actually, thanks for your help. Glad I'm able to resurrect all my work somehow!




Theme © iAndrew 2016 - Forum software by © MyBB