I have two controllers.
- In one controller (OptionsController) you can create, edit, add and
delete your own options. This is working as it is supposed to.
- Next to that I have a different controller (let's name that one
SecondController) that needs a view from the first controller

Normally I would just use $this->render(), but the thing here is that I
need to pass a var along with the render.In a view from the
SecondController I need to embed a view from the OptionsController, which
needs a variable (like an ID or something).

So if you go to /options/view/2 then it would show you the option with id
2, this is working because it's basic stuff. But when you go to
/second/index I want to render the options view. You can do this with
$this->render(), but then you can't pass the variable that is needed to
show the view. So how can I do this? Or is it not possible?

I hope you understand what I am trying to do and have a solution for this.

Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcake-php @
postedJun 18, '12 at 1:49p
activeJun 18, '12 at 1:49p

1 user in discussion

iFemke: 1 post



site design / logo © 2022 Grokbase