-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System and configuration files location issue #373
Comments
Why do you want to change the system folder name? |
I don't know what do you want. Could you send PR? |
Is it the issue on ci-phpunit-test? I don't get the issue. |
Mate, I have already worked around these, but someone else might face similar issues, hence opened this thread as suggestions which you might choose to implement in your next release. But would suggest some research from your end as well before you comment. Can't find "system" folder. It clearly mentions "If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders to something more private". I have chosen this as a practice for my CI apps, hence suggested adding an argument upon installation to add a custom system folder name, similar to the one you have for the applications folder. Your system/application folder path does not appear to be set correctly Call to undefined function get_instance() The phpunit test here does not cater to this, and if the config.php file is not present under "[Application root]/[Applications folder]/config/" then it throws this error. Hope the above will give you better clarity of the challenges faced. Let me know if you need further details please. At last, as I have mentioned earlier, these are suggestions which you can choose to implement or not, but I have mainly opened this thread as someone else might face similar issues, and will spend time in finding a solution, so this can serve as a guide for them. Cheers! |
@qaribhaider I got your intention. Thank you for reporting!
I don't agree with the opinion of the CI3 docs, but it is true that CI3 officially support the change.
I have no intention to have altered the behavior of CI Config class. |
Thanks @kenjis those last two lines of your last comment were exactly what I was looking for. I just did: |
After setting PHPUnit using the guides here on an existing CodeIgniter 3 project, I kept on getting various errors.
Here are the issues which occurred and what were the workarounds I opted for; I believe these should be fixed in future versions
Can't find "system" folder.
We have changed the system folder name in our CodeIgniter project, and there is no way to pass that folder name as an argument while setting up the project. Had to comment out the code within Installer.php and change the system folder name in tests/Bootstrap.php later
Your system/application folder path does not appear to be set correctly
Even though I installed using custom arguments, the folder locations under Bootstrap.php were not changed. Had to manually change that later
Call to undefined function get_instance()
After a lot of digging found out that this is due to the missing config.php file, under the CodeIgniter config folder. The script I believe only looks directly under config/ folder, however, for CI the files can be under config/development or config/production, etc. This should be a configuration option.
The text was updated successfully, but these errors were encountered: