Save the inner one as an element, then:
echo $this->element(**filename**);

where **filename** is the name of the element file without the ctp extension.

You can pass variables in:
echo $this->element(
        **filename**,
        array('varibaleName' => $variable)
);

Elements are stored in /app/views/elements. You can organise them into 
subfolders too, so for example echo 
$this->element('subfolder/subsubfolder/file');

Jeremy Burns
[email protected]


On 16 Apr 2010, at 11:19, MANOJ DHAMAL wrote:

> I want know how to include one .ctp file in another .ctp file
> 
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to