Hi Bill,
You can include anu plugin CSS in default layout only for plugin's Views
if($this->request->params['plugin']=='usermgmt') {
echo $this->Html->css('/usermgmt/css/umstyle');
}
Chetan Varshney
Cakephp User Mgmt Plugin <http://umpremium.ektasoftwares.com/>
On Sunday, August 12, 2012 3:34:05 AM UTC+5:30, bs28723 wrote:
>
> I have a plugin that has custom CSS and JS files.
> The plugin does not need its own layout - it will use the apps default
> layout.
>
> I guess I could just brute force it and put the $this->Html->css() and
> $this->Html->script() calls into the layouts/default.ctp file.
>
> but I was wondering, is there a way to configure the controller or
> something to call these only when a plugin controller/view is used?
>
> Thanks,
> Bill
>
> ------------------------------
> View this message in context: How to automatically add plugin css /
> scripts to default
> layout<http://cakephp.1045679.n5.nabble.com/How-to-automatically-add-plugin-css-scripts-to-default-layout-tp5710377.html>
> Sent from the CakePHP mailing list
> archive<http://cakephp.1045679.n5.nabble.com/>at Nabble.com.
>
--
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.