view.php not working
Permalink 1 user found helpful
Hi!
Got another problem. As I understand the "view.php" located in the Theme is a wrapper for pages like login and registration. But it doesn't work.
I set the setThemeByPath in the site_theme_paths.php
The view.php located in the themes folder
Getting a bit frustrating. I just want the header and the fotter to wrap the login and registration.. thats all. nothing fancy.
Searched the forum and watched the tutorialvideos but the don't help.
anyone who can point me in the right direction please?
Best regards
Mr L
Got another problem. As I understand the "view.php" located in the Theme is a wrapper for pages like login and registration. But it doesn't work.
I set the setThemeByPath in the site_theme_paths.php
$v = View::getInstance(); $v->setThemeByPath('/login', "scandiapumps"); $v->setThemeByPath('/page_forbidden', "scandiapumps"); $v->setThemeByPath('/register', "scandiapumps");
The view.php located in the themes folder
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $this->inc('elements/header.php'); // get header file ?> <div class="container_12 content"> <div class="grid_12"> <?php print $innerContent; ?> </div> <!-- close --> </div><!-- close container_12 header --> <?php $this->inc('elements/footer.php'); // get footer.php ?>
Getting a bit frustrating. I just want the header and the fotter to wrap the login and registration.. thats all. nothing fancy.
Searched the forum and watched the tutorialvideos but the don't help.
anyone who can point me in the right direction please?
Best regards
Mr L
I've done that. Even did it now once more in the order you described but the login still takes the C5core theme style.
Added the error, but got nothing.
Added the error, but got nothing.
I don't know what happened but now it works. If that was a caching problem then it got stuck really bad.
I had to choose another theme to get it to react on the first theme change.
Thanks for the support!
I had to choose another theme to get it to react on the first theme change.
Thanks for the support!
I'm glad it worked out for you. :o)
Also to print out errors you could use the following instead of only print innercontent: