17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2214 Views |
-
Subtemplates

16 February 2007 at 11:32am
Got as far as subtemplates on the 'building-a-basic-site.' Everything worked great up to that point. Created Layout subdirectory and two files in the directory as specified. Deleted HomePage.ss from the templates directory. Revised Page.ss as per the instructions. Now get errors. Any suggestions? Tips?
-- Dave
-
Re: Subtemplates

16 February 2007 at 11:44am
Make sure you flush the cache by adding ?flush=1 to the end of the url. If that doesn't help, post the errors you're getting in here and we'll see what we can do
-
Re: Subtemplates

16 February 2007 at 12:14pm
Thanks for the quick reply.
Errors:
FATAL ERROR: filemtime() [function.filemtime]: stat failed for C:/lighttpd/htdocs/mysite/templates/HomePage.ss
At line 129 in C:\lighttpd\htdocs\sapphire\core\SSViewer.phpfilemtime(C:/lighttpd/htdocs/mysite/templates/HomePage.ss)
filemtime at line 129 of SSViewer.phpSSViewer->process(Object)
process at line 150 of Controller.phpController->defaultAction(index,Array)
defaultAction at line 122 of Controller.phpController->run(Array)
run at line 12 of ModelAsController.phpModelAsController->run(Array)
run at line 48 of Director.phpDirector->direct(/home/)
direct at line 90 of main.php -
Re: Subtemplates

16 February 2007 at 12:23pm
Ran ?flush=1 after every revision of the Page.ss and HomePage.ss files. Tried several (numerous) times to restart with the ?flush=1 switch. Shut down the browser (Firefox), restarted the browser, again ran with ?flush=1. Long pause; now it's working. Go figure. Looks like it's back to working again. Apologies for my lack of knowledge of SilverStripe. Just found it last night.
-- Dave
| 2214 Views | ||
|
Page:
1
|
Go to Top |


