E
E
EVOSandru62014-12-09 10:45:00
Yii
EVOSandru6, 2014-12-09 10:45:00

How to connect column1 or column2 in Yii module?

The situation is this. Created the sadmin module . In each controller of the module, I registered I.e. the template is located in the folder with the module And now I don't know how to pick up the subtemplate - colum1 or column2 in sadmin/views/layouts/ ?
public $layout = 'sadmin.views.layouts.main';

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kev, 2014-12-18
@EVOSandru6

According to the documentation www.yiiframework.com/doc/api/1.1/CController#resol... The path to the template is set as follows:
Path relative to the views folder of the module
Path relative to the application's views folder
In other cases, aliases or relative paths are used.
ps edited so as not to be misleading with the wrong answer.

N
Nikolai Gromov, 2017-04-07
@T_verdisla_V

I'm sorry, I found the reason, there was a typo in ProductsManagerFactory, but it should have been ProductManagerFactory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question