A
A
Alexander2015-04-29 12:14:33
Yii
Alexander, 2015-04-29 12:14:33

How to override view search path for theme widgets in yii?

Hello!
I'm making a theme for a yii project and I ran into such a mini problem that the views for widgets in themes should always be here
/themes/XXXX/views/FooWidget/foo.php
since I have a lot of widgets, it would be more convenient for me to store them in an additional widgets folder
for example like this:
/themes/XXXX/views/widgets/FooWidget/foo.php
documentation says that it should be exactly like in the first example (but I like it)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question