Re: Using a method in a different controller?

2007-04-10 Thread digital spaghetti
Actually, url works a treat. So now I have: 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 Eve

Re: Using a method in a different controller?

2007-04-10 Thread AD7six
On 10 abr, 12:58, "AD7six" <[EMAIL PROTECTED]> wrote: > On 10 abr, 11:47, "digital spaghetti"<[EMAIL PROTECTED]> wrote: > > > > > create('EventType', > > array('action'=>'/admin/event/addtype')));?> > > 'action' doesn't mean url (although a couple of months ago or so it > acted as such). > > I

Re: Using a method in a different controller?

2007-04-10 Thread AD7six
On 10 abr, 11:47, "digital spaghetti" <[EMAIL PROTECTED]> wrote: > 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 goin

Using a method in a different controller?

2007-04-10 Thread digital spaghetti
Hi folks, I have 2 models in my database, Event and EventType. EventType is very simple, it's just an id and a name - so I don't want to write a whole controller for it. In my Event controller, I have this method: set('exiting_types', $this->EventType->findAll()); if(isset($thi