Best practice forum (Archived)

הדיון בפורום זה הוסר

 
Simon Coggins
Re: Trouble loggin in after cloning system
על ידי Simon Coggins בתאריך 8/03/2012, 19:36
קבוצה Totara

I guess the best approach would be to store a placeholder in the database, something like '[[SITE_WWWROOT]]' then substitute it with the actual value after retrieving the database data but before displaying it.

The problem is that would need to be done anywhere that saves a site url in the database, which could include a whole lot of third party modules outside of our control. In principle though, that would make the database more portable.

Simon