On 10 abr, 12:58, "AD7six" <[EMAIL PROTECTED]> wrote:
> On 10 abr, 11:47, "digital spaghetti"<[EMAIL PROTECTED]> wrote:
>
> <snip>
>
> > <?php e($form->create('EventType',
> > array('action'=>'/admin/event/addtype')));?>
>
> 'action' doesn't mean url (although a couple of months ago or so it
> acted as such).
>
> If you say 'action' = "really long string with some /s in it" cake is
> going to make the url
> /($admin/)($plugin/)$currentController/really long string with some /s
> in it
>
> You probably want 'action'=>'addtype" or (if the previous doesn't
> work, which it should iirc) 'url'=>'/admin/event/addtype'
>
> hth,
>
> AD
Ooops You probably want 'action'=>'addtype", 'controller'=>'event',
CAKE_ADMIN => true. have a look at the form helper code if that
doesn't give you what you want.
AD
PS where did the (almost completely unrelated) thread title come from?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---