Yii Framework Forum: How the theme inherits the property - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How the theme inherits the property I have some themes installed working perfectly and about the views, th

#1 User is offline   lotuzzdiabetes 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 02-March 18

Posted 02 March 2018 - 04:40 AM

Hi:

I have some themes installed working perfectly and about the views, themes inheritance is working good as well.

My concern is that I would like to create the same inheritance for assets, that's to say, if an asset of my Assets array is not find in the theme directory, look for it in a "default" theme directory.

So, if I'm working with theme "A" and the asset css/plugin/main.css has to be loaded, if the file themes/A/css/plugin/main.css does not exist, load then themes/default/css/plugin/main.css.

The problem is that I don't want to interfere in the assets generation and publish flow, so because themes inheritance with views are working good I was wondering if there is something similar with the assets.

Things tried:
- .htaccess can not be use bcasue the Yii uses "copy" with local files to copy from themes to assets bundle
- I wish "beforeCopy" of AssetBundle could allow to modify src o dst, but just returns true or false to the action of copying

Thank you in advance
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users