Friday, February 26, 2010

Re: (views) Redirect where i came from

Well, i have a continative problem.
Now, i have my global add-function in my appController.
But some add-views have drop-down fields to show the available foreign-
keys.

So how can i extend the concerning controllers with my foreign-key
drop-down field code?

[code]
$this->set('foreignKey', $this->Model1->Model2->find('list'));
[/code]

Is it possible to extend my controllers?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: