Thursday, August 9, 2012

Render main app Cake Template file in Plugin

I have been working on a Plugin and there is an element in the main app that I want to include within the plugin. I have the following in my controller.

I have the following action inside a plugin's controller:

public function add (){
$this->layout

$this->render('CTP FILE OUTSIDE OF THE PLUGIN');
}

--
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: