3447 Posts in 1032 Topics by 872 members
|Go to End|
18 January 2009 at 10:47pm
I got a problem with flushing my database.
I made a new site under themes/miisound/
If i update the template after a change with ?flush=1 It works perfectly.
But i added a php file (HomePage.php)under themes/miisound/code/ as the tutorial told me to do.
When i do this: www.miisound.com/db/build?flush=1 , i see that it will run the script but no changes has been made. I also checked the backend and no other page type or contenttype has been added.
I tried to add another one in the code folder sitemap.php from another tutorial. but still nothing change after the flush.
What can this problem be?
19 January 2009 at 5:25am Last edited: 19 January 2009 5:27am
Hi xtoc, welcome to silverstripe
SS will not pick up code that is in a folder which has no _config.php file, hence putting it into mysite
so in short, move your HomePage.php to the mysite/code folder
4 February 2009 at 4:57pm
I know this is crazy, but my new pagetypes are not showing up either. I've placed my php file in the mysite/code directory, and flushed about a zillion times, both the cms, and the site.
I'm using forum v-0.1.2 and v-2.3 of SS.
Is there any other issues with this not working out there, or any other tricks to try? Thanks!
4 February 2009 at 5:02pm
In the folder miisound/, did you create an empty _config.php file? The presence of a _config.php file tells SilverStripe that there is stuff in the code directory to process. If you don't have the _config.php file, SilverStripe will simply ignore anything in the code directory.
4 February 2009 at 5:27pm
I simply put my new pagetype under the mysite/code directory. There is a _config.php file there already. Is there some code I need to put in there?
Thanks for the help.
|Go to Top|