Monday, March 1, 2010

Re: (views) Redirect where i came from

Well, i forgot a 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. They additional use this code:

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

So, can i extend the concerning controllers with this code or must i
copy the complete add function (with additional code) to this
controllers?
Greetings.

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: