view.php not found

Permalink 1 user found helpful
I have added view.php to my root theme directory. It only has the following code in it:

<?
$this->inc('elements/header.php');
print $innerContent;
$this->inc('elements/footer.php');
?>


I have changed root/config/site_theme_paths.php to the following:

defined('C5_EXECUTE') or die(_("Access Denied."));
$v = View::getInstance();
$v->setThemeByPath('/login', "upbeat");


Upbeat (lowercase) is the name of my theme. Everything to do with the theme works, however, when I go to the login page: index.php/login I get this error:

..../themes/upbeat/view.php not found....

Anyone have any ideas? I'm on a WAMP stack. Login works with the concrete5 standard login screen when I comment out:

/*$v = View::getInstance();
$v->setThemeByPath('/login', "upbeat");*/

webdewd
 
grosik replied on at Permalink Reply
grosik
when you change site_theme_paths.php to override default pages, then you should create php file which will override your site.

in your case, create login.php in ../themes/upbeat/login.php and create content for that site in that file.
webdewd replied on at Permalink Best Answer Reply
webdewd
I just found out from another couple of discussions that I had to do the following:

1) refresh the single pages from the dashboard
2) clear the cache from the dashboard

I followed the instructions in the documentation to the letter*, this wasn't in there, neither was changing site_theme-paths.php.

*i.e. the documentation followed from Documentation, Theme Development, Part 4. Out of date maybe?