zitter
(Zitter)
April 13, 2010, 7:00am
1
I’ve read somewhere that Yii permits to customize everything, even paths. For example, I would like to change theme and portlets path (for latter both “model” and “viw” path).
How to do that? And, in general, which way I have to follow to change those paths?
TIA
Danilo
Vince
(Vadimg88)
April 13, 2010, 7:02am
2
For themes you can check the CTheme basePath, viewpath etc http://www.yiiframework.com/doc/api/CTheme
For portlets you can check the CPortlet viewpath http://www.yiiframework.com/doc/api/CPortlet
Pretty much each class has it’s own path properties and methods to get and set those values.
andy_s
(Arekandrei)
April 13, 2010, 7:06am
3
About themes: http://www.yiiframework.com/doc/guide/topics.theming
To change application’s views and controllers paths look the corresponding properties of http://www.yiiframework.com/doc/api/CWebApplication
You can put portlets and models anywhere, just make sure you imported their paths using http://www.yiiframework.com/doc/api/YiiBase#import-detail