VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ITN on January 13, 2014, 16:47:42 PM

Title: setLayout(), loadTemplate() and similar functions...
Post by: ITN on January 13, 2014, 16:47:42 PM
Hello.

$view->setLayout('login');
$this->loadTemplate ('shopper');


How to find out what actual files ('login', 'shopper') these functions use? I searched and renamed every login/mod_login/etc folder and file on my site, however it didn't affect login form..
I just want to change the layout of the login form.
Title: Re: setLayout(), loadTemplate() and similar functions...
Post by: Milbo on January 14, 2014, 22:16:31 PM
the view.html.php which you see there is in the user view. There is the layout login. Please read our docs about layout overriding explaing all of this (inclusive links to good joomla tutorials). http://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html
Title: Re: setLayout(), loadTemplate() and similar functions...
Post by: ITN on January 15, 2014, 09:33:22 AM
Quote from: Milbo on January 14, 2014, 22:16:31 PM
the view.html.php which you see there is in the user view. There is the layout login. Please read our docs about layout overriding explaing all of this (inclusive links to good joomla tutorials). http://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html

Thanks but I know how to override layouts, however I just can't find that actual login.php (or whatever it called) file. Did I miss something?
Title: Re: setLayout(), loadTemplate() and similar functions...
Post by: Milbo on January 15, 2014, 16:21:15 PM
Definitly
Quote from: Milbo on January 14, 2014, 22:16:31 PM
the view.html.php which you see there is in the user view. There is the layout login.

If you do not understand what is the user view and where to find the files of it, then it is the proof that you do not know how the template system is structured.