21294 Posts in 5734 Topics by 2602 members
|Go to End|
23 December 2010 at 6:54am
I am currently building a website using Silverstripe, my first time...The website is going to have a lot of "custom PHP pages" which communicate with an external database. They are all kinds of pages: userlists, order books, change personal information and so on. All these pages occur once on the site and are more or less static. Except of course the content retrieved from the external database.
I have read the Silverstripe documentation page "Extending a basic site" but I was wondering if this is the right way for me to create these pages? This way of creating custom pages seems rather difficult and I don't want to use objectoriented php in my custom scripts. Maybe what I am looking for is a kind of wrapper page which allows me to load the php pages. I can't really find anything about this. What is the method I want to use for these pages?
(I hope the question is clear like this)
24 December 2010 at 10:04pm
What do you mean by custom page? If it has custom behaviour you may need to create a page type for each, but if the behaviour is similar then you could use just one page and place the logic and the parameters in it's $db array.
Also I'd follow banal's advice on connecting to an external database...
25 December 2010 at 12:03am
The advice on connecting to an external database is very handy!
|Go to Top|