21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 552 Views |
-
tutorial:1

22 October 2010 at 7:23pm
re:
Every page type also has a database table corresponding to it. Every time we modify the database, we need to rebuild it. We can do this by going to http://localhost/dev/build?flush=1. It may take a moment, so be patient. This add tables and fields needed by your site, and modifies any structures that have changed. It does this non-destructively - it will never delete your data.As we have just created a new page type, SilverStripe will add this to the list of page types in the database.
in particular: http://localhost/dev/build?flush=1
I am trying to achieve this on a online site. but it seems to come up with a 'page not found'
using path: http:/my_site.com/sapphire/dev/build?flush=1
I can;t seem to get it to work for some reason.
-
Re: tutorial:1

22 October 2010 at 7:35pm
aha I found the answer, I was looking for the folder structure /dev/build but only found he one within the sapphire directory.
so the correct syntax for this is to append: /dev/build?flush=1 to your mainsites url like so:
http://www.mysite.com/dev/build?flush=1
This indeed updates the database.
| 552 Views | ||
|
Page:
1
|
Go to Top |

