[Vtigercrm-developers] Discuss about 'PRELOAD'

Martin Allen martin.allen at exe-squared.co.uk
Fri Jan 21 11:02:38 GMT 2022


Also if you do require_once('vendor/autoload.php') that prevents it being loaded twice if its already been loaded....doesnt it? (So you could add it all over the place, and it wouldn’t make any difference?)

-----Original Message-----
From: vtigercrm-developers-bounces at lists.vtigercrm.com <vtigercrm-developers-bounces at lists.vtigercrm.com> On Behalf Of Alan Lord
Sent: 21 January 2022 10:34
To: vtigercrm-developers at lists.vtigercrm.com
Subject: Re: [Vtigercrm-developers] Discuss about 'PRELOAD'

On 21/01/2022 10:12, Angelo Paglialonga wrote:
> Hi Francesco why do we need something like that?
> Could you explain the use cases?
> 
> I included a require  'vendor/autoload.php’ in a beforesave event to connect to google sheets for instance.
>   Thanks

Agree - I don't really follow the need for this.

I use an autoloader quite often but it's trivial to simply include it when and where needed.


Al


_______________________________________________
http://www.vtiger.com/



More information about the vtigercrm-developers mailing list