[Xerte-dev] Re: Export Code

David Goodwin david at palepurple.co.uk
Wed May 2 10:27:51 BST 2012


On 2 May 2012, at 10:09, Ron Mitchell wrote:

> Could it be that inside xot config.php require_once fo the integration
> config needs to be changed to require? e.g.
> 
> if ($row['integration_config_path'] != "") {
>        require_once($row['integration_config_path']);
>    }
> 
> if ($row['integration_config_path'] != "") {
>        require($row['integration_config_path']);
>    }
> 



No. 

require_once is identical to require, it's just that it can't happen more than once within the page request/execution. this is a good thing.


> If that is the case the question still arises is there any benefit in using
> the database for this given that xot config.php needs editing anyway?



But if we pulled our fingers out a little, there would be no need to edit config.php - it could all be configured in /setup at installation time. That's why I don't want it to be necessary to edit config.php.

David.


Pale Purple Ltd.  (Company No: 5580814)
'Business Web Application Development and Training in PHP'

http://www.palepurple.co.uk   
Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd




More information about the Xerte-dev mailing list