On Fri, Mar 7, 2008 at 5:44 AM, grassoalvaro <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I was searching for solution but i didn't find anything. So, for
> example:
>
> class DictionariesController extends AppController
> {
>    function myAction()
>    {
>    }
> }
>
> I need smart solution to call myFunction when url is
> http://host/dictionaries/my_action
> and i need to do that for all my actions in all controllers. I was
> trying to do that using __call() method in app_controller.php, but
> didn't work.
>
> Any idea?
>

Try this at routes.php:

Router::connect('/dictionaries/:action/*', array('controller' =>
'dictionaries'));

And the defining any action you like in the controller.

Regards,


-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to