Skip to content

PHP - Failed to get env #57

@JohnOnSoftware

Description

@JohnOnSoftware

It seems the following code at https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/php/server/config.php#L14 to get env is not working any more, need to update with latest change.

// load the environment variable from .env into your application
$dotenv = Dotenv::create(DIR);
$dotenv->load();
$forge_id = getenv('FORGE_CLIENT_ID');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions