Actually, url works a treat. So now I have:
<?php e($form->create('EventType', array('url'=>'/admin/events/addtype')));?>
I didn't really know how to word it, but basicly I didn't want to
create a seperate controller and set of views for such a simple model,
I'd rather have the event controller handle both Event and EventType.
Thanks for that though.
Tane
On 4/10/07, 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
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---