[Vtigercrm-developers] New Customer Portal for V7.1
Alan Lord
alanslists at gmail.com
Thu Feb 1 10:23:23 GMT 2018
In PortalConfig.php:
> global $server_Path;
> global $portal_Path; *Doesn't seem to exist anywhere else*
>
> //CRM URL without trialing/
> //Example: http://yourdomain.com/crm
> $server_Path = "";
>
> //Portal URL without trialing/
> //Example: http://yourdomain.com/portal
> $authenticate_Path = "";
Then in config.php we get:
> protected static function getData() {
> global $site_URL; *is referenced in a few places but not configured anywhere*
> global $maxFileSize;
> global $defaultUiLanguage;
> global $availableLanguages;
> $crmUrl = self::$data['crm.url'];
>
> if (!empty($site_URL) && strpos($crmUrl, $site_URL) === false) {
> self::$data['crm.url'] = $site_URL.$crmUrl;
> }
> self::$data['upload_max_filesize'] = $maxFileSize;
> self::$data['ui.Language'] = $defaultUiLanguage;
> self::$data['languages'] = $availableLanguages;
> self::$data['server_Path'] = $server_Path; *server?* What "server?
> self::$data['authenticate_Path'] = $authenticate_Path; *authenticate*? again confusing.
> return self::$data;
I have no idea what is supposed to be what?
What does $site_URL mean? Is the the CRM url or the portal url? Giving
your variables some sensible descriptive names would be a help ;-)
I don't really understand what authenticate_url means either? Surely the
person logging in authenticates against what is configured in vtiger?
Confused.
Al
More information about the vtigercrm-developers
mailing list