ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
150 stars 38 forks source link

Unable to load view files for login, etc. #38

Closed yahyaerturan closed 5 years ago

yahyaerturan commented 5 years ago

Hi,

I am trying to apply luthier to a fresh install Codeigniter with custom folder structure.

My folder structure:

/
-> framework
            -> app/                  // Codeigniter Application folder
            -> codeigniter/          // Codeigniter System folder
            -> src/                  // My Folder for my own namespaced services
-> public
            -> index.php
            -> .env
-> templates
            -> errors/
            -> welcome_message.php

Here is my $view_folder setup in index.php:

// index.php

    ...
    $view_folder = __DIR__ . '/../templates';
    ...

I have followed steps for Luthier Simple Auth. All done successfully.

When I go to /login following error displayed:

Severity: Warning

Message: require(/Users/yahyaerturan/Sites/vayes-eys-v2/framework/vendor/luthier/luthier/src/Resources/SimpleAuth/Assets/skins//views/login.php): failed to open stream: No such file or directory

Filename: SimpleAuth/Controller.php

Line Number: 109

How can I fix this?

yahyaerturan commented 5 years ago

Solved by copying assets and views to respected directories. Thanks.