Re: How to use a plugin's layout form a different plugin

2009-08-27 Thread MPeg
But this way it couldn't be two (or more) layout with same name in different plugins... I might use plugins to distribute graphics and client-side functionality... import every plugins's paths into viewPaths might reduce system performance... do you know an alternative way to share layout between

Re: How to use a plugin's layout form a different plugin

2009-08-27 Thread majna
You can not do this. But you can add "beautifull_layout" to $viewPaths in bootstrap.php. I would hack this out like: class Pizza extend PizzaAppController { function order() { Configure::write('viewPaths', array_unshift(Configure::read ('viewPaths'), APP.'plugins'.DS.'beautifull_layout'.D

How to use a plugin's layout form a different plugin

2009-08-27 Thread MPeg
Hi to all. I'm developing a plugin named "pizza" and I have another plugin named "beautifull_layout". When I order a new pizza i'd like to use a layout from the "beautifull_layout" plugin. class Pizza extend PizzaAppController { function order() { $this->plugin = "beautifull_layout"; $