thanks for the explanation on calling Behaviors...
On Feb 12, 9:20 am, grigri <[EMAIL PROTECTED]> wrote:
> This way, if controller "CategoriesController" works on model
> "Category", then the following links will work without any extra
> controller or model code whatsoever:
>
> /admin/categories/move_up/{id}
> /admin/categories/move_down/{id}
this is very cool. So this calls $CategoryController-
>admin_move_up(id) ... I assume you use a route to map that, or is
there some other magic going on? (not to change the subject)
> [I even have a generic helper to make a mini-toolbar with view, edit,
> delete and move options for a given model, so in most cases I just go
> echo $tool->bar($id) for each record, and it works transparently. I'm
> in to writing as little code as possible to get the job done.]
Nice! I will have to try that at some pint.
cheers
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---