Welcome Guest, Not a member yet? Register   Sign In
question : SaaS style URLs , HMVC , Dev Footer
#5

for dynamic URL,

in config/autoload.php i find this reference => require_once BASEPATH.'Config/AutoloadConfig.php';
while that file does not exist.

I created that AutoloadConfig.php and put this:

<?php namespace Config;
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on"){
$ssl_set = "s";
} else{
$ssl_set = "";
}

MYURL = 'http'.$ssl_set.'://'.$_SERVER['HTTP_HOST'];


and then in the App.php

public $baseURL = 'MYURL';

Doesn't work Sad
Reply


Messages In This Thread
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-19-2018, 06:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB