This is the second time you have asked this question.
Like the first time the question is lacking information, required to give
you an informative answer
you are better off describing what you are trying to do
and providing info on what you have tried (with code samples)
this way others can understand your goal and will be in a better position to
provide
an answer
--
With a Controller Posts (an action has a corresponding view a ctp file in
views/<CONTROLLERNAME>/)
it may have multiple actions eg
index - all posts
view - a single post viewed by id
so pass the id from index to view, so that
the view displays a post item.
in the view for the action `views/posts/index.ctp`
you use the echo $html->link('read more >>', array('action' => 'view',
$post['Post']['id']));
assuming you are within a foreach loop
---
although you might be asking how to access a property in one method
when you have assigned it from another method.
actions of controllers are methods not all methods are actions
you should read up on object orientated programming
and the concept of MVC.
- S
On 9 February 2011 18:56, zer0_gravity <[email protected]> wrote:
> How can I in cake forward data from one action to another action
> within the same
> controller?
>
> --
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php