Welcome Guest, Not a member yet? Register   Sign In
New Install
#3

It looks like I may be able to actually do away with the ENV files. Though the files like spark, I'm not so sure about. I've been doing things like this, especially with my App.php file

PHP Code:
public $baseURL;

    public function 
__construct()
    {
        
$this->baseURL 'http://' $_SERVER['HTTP_HOST'] . '/public';

        
// Include the external configuration file
        
$rootConfigPath ROOTDIR '/configuration.php';
        if (
file_exists($rootConfigPath)) {
            include 
$rootConfigPath;

            
// Set the appTimezone using the value from the configuration file
            
$this->appTimezone $timezone ?? 'UTC';
        } else {
            
$this->appTimezone 'UTC';
        }
        
$this->charset $charset ?? 'UTF-8';
    } 

I was able to make a License Library and put a LicenseVerification call in my BaseController. While my app will likely be closed source, I may see if there's files I could leave open so the app can be extended! I'll also give that Class a try as well!

Thank you Smile
Reply


Messages In This Thread
New Install - by mfoland - 05-16-2024, 02:34 PM
RE: New Install - by Bosborne - 05-17-2024, 02:51 AM
RE: New Install - by mfoland - 05-17-2024, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB