robregonm / yii2-auth

Yii 2 User Authentication & Role Based Access Control (RBAC) Module
BSD 3-Clause "New" or "Revised" License
77 stars 37 forks source link

twig extends main.htm #16

Closed cansozeri closed 10 years ago

cansozeri commented 10 years ago

Hi,

I want to use twig and your project is in vendor folder, but I want to extend my main.htm in login.htm from the root views folder. But when I use extend in twig it always call your current folder. Do you add a folder path to your module, how can I change it to extend a file from root not your current folder

file_get_contents(/var/www/crm/vendor/robregonm/yii2-auth/views/default/main.htm): failed to open stream: No such file or directory

I want this /var/www/crm/views/site/main.htm

Thanx ..

cansozeri commented 10 years ago

I have changed layout ='main.htm' in config file, it points to views/layout but I want to define views/site : ) Progress but not solution : ))

cansozeri commented 10 years ago

In config file set layout=false bothyii2-auth and yii2 layout variable, than you can call twig files from render...