kenjis
6ac3a7bfe4
fix: move PHP version check to index.php/spark
...
If we use new syntax in new PHP version when dropping older PHP version support,
syntax error occurs before the PHP version check.
2022-08-01 16:46:38 +09:00
kenjis
b2ed452f65
refactor: move chdir() up
2022-05-17 15:05:30 +09:00
kenjis
a2a9b6c118
refactor: remove variables
2022-05-17 15:05:30 +09:00
kenjis
e2e94e8f0d
refactor: move DotEnv::load() from system/bootstrap.php
2022-05-17 15:05:29 +09:00
kenjis
b6a27dc512
chore: tweak the files so that their contents are as same as possible.
2022-05-17 15:05:29 +09:00
kenjis
1adabfe043
refactor: remove realpath()
...
No need to use it.
2022-05-17 15:05:29 +09:00
kenjis
f26943cfd8
refactor: move CodeIgniter instantiation from system/bootstrap.php
2022-05-17 15:05:28 +09:00
kenjis
8815745381
refactor: CodeIgniter has context: web, php-cli, spark
...
Make the constant SPARKED deprecated.
Remove is_cli() in CodeIgniter.
2022-02-12 17:08:44 +09:00
Abdul Malik Ikhsan
f92665b3e2
Use variable for Config/Paths config to reduce repetitive definition
2021-05-26 17:08:40 +07:00
MGatner
ffc50239a5
[ci skip] Fix a few spacing issues
2021-05-14 13:56:57 +00:00
Abdul Malik Ikhsan
bd65ddf5e8
move check to CodeIgniter class
2021-03-15 13:12:02 +07:00
Abdul Malik Ikhsan
61a886726f
[Requirement] MCreate CodeIgniter\PhpRequirement::validatePHPVersion() static method to check minimum valid PHP version
2021-03-15 13:12:02 +07:00
MGatner
6986be3f3c
Fix additional ersion reference
2021-01-31 01:03:09 +08:00
Abdul Malik Ikhsan
67fb7cb355
clean up public/index.php : remove unneeded $pathsPath var
2020-10-11 16:11:39 +07:00
John Paul E. Balandan, CPA
8347bb90d5
Index.php optimization
2020-08-26 01:22:28 +08:00
Abdul Malik Ikhsan
968765d682
apply conditional realpath
2020-08-23 20:34:49 +07:00
Abdul Malik Ikhsan
f9fe8cea05
ensure to use realpath() when require bootstrap.php file in index.php
2020-08-11 09:55:10 +07:00
Alexandre "Moutarde" S
73a774500b
Update trailing slash detection
...
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
2020-07-20 14:56:12 +02:00
Alexandre "Moutarde" S
95208c9886
Make Redirect trailing slashes redirect with base
...
When using /$1 it doesn't prepend RewriteBase to the uri, so going to /sub/controller/ will redirect to /controller instead of /sub/controller
2020-07-15 10:11:41 +02:00
John Paul E. Balandan, CPA
43749a8e5c
Fix misalignment
2020-07-10 22:15:01 +08:00
John Paul E. Balandan, CPA
a155b4aa13
Update htaccess
2020-07-10 22:10:57 +08:00
Lonnie Ezell
f0e6f60a82
Update htaccess to better handle non ascii characters. Fixes #3089
2020-06-17 22:40:08 -05:00
Abdul Malik Ikhsan
1750188e55
using realpath() for define $pathsPath in index.php
2020-04-06 11:25:13 +07:00
MashinaMashina
b9f6cd80c3
Edit .htaccess
...
When we try open real directory, server add end slash, htaccess removes it, server add shash...
And we get recursive redirectings
2019-11-13 22:52:28 +04:00
Lonnie Ezell
d43001ebdd
Simplify the provided htaccess file with only a couple of security items and the rewrite functionality.
2019-04-24 22:38:46 -05:00
MGatner
92941072bb
Remove section that prevents hotlinking
...
The rewrite rule required a hard-coded domain which developers would need to update or their assets would give 403 errors. Better to allow developers to add this themselves than supply an .htaccess file that doesn't work out-of-the-box.
2019-04-11 13:43:19 -04:00
Atish Amte
3b999d2c50
Update .htaccess for better security and caching
2019-03-30 20:42:14 +05:30
Jim Parry
c724e44449
Merge branch 'develop' into php-7.2
2019-01-18 16:13:29 -08:00
Jim Parry
53508f35c6
Update PHP dependency to 7.2
2019-01-17 22:14:48 -08:00
Jim Parry
37110d53e1
Update docs - managing apps
2019-01-02 19:11:55 -08:00
Natan Felles
95193c5f61
Use app instead of application
2018-12-07 18:03:40 -02:00
Natan Felles
b85a5aae5d
Use Absolute Paths
2018-12-03 17:31:31 -02:00
Abdul Malik Ikhsan
6e89bb6c7f
comment adapt for pathPath variable
2018-11-28 20:14:23 +07:00
Abdul Malik Ikhsan
9e95c9ac58
remove comment that for require manual change on change system directory
2018-11-28 20:14:22 +07:00
Abdul Malik Ikhsan
a3f7af2296
use $paths->systemDirectory in public/index.php
2018-11-28 20:14:22 +07:00
Lonnie Ezell
21003dae0c
Don't exit from pre-commit on phpcbf exit errors.
2018-10-30 21:22:45 -05:00
Lonnie Ezell
f2a12db870
Code style fixes on public/index
2018-10-29 23:25:57 -05:00
Lonnie Ezell
18a7ae9794
Check for minimum PHP version. Fixes #1307
2018-10-14 22:48:03 -05:00
Dustin Wheeler
8386b3f731
Fix grammar in front controller comment.
2018-10-05 00:21:05 -04:00
Lonnie Ezell
94e711495f
Commenting out environment in htaccess for less confusion.
2018-10-02 07:45:11 -05:00
Instructor, BCIT
517c139d84
Update index.php
...
Fix my double-slash oops
2018-05-30 12:32:25 -07:00
Master Yoda
6df1861131
Simplify folder paths in bootstrap
2018-05-29 13:52:38 -07:00
Razvan Marian
eaf768e7a8
Formatting and fixed hardcoded directory separator in public/index.php
2018-02-01 14:28:58 +02:00
kenjis
77e6097d7c
Fix the environment variable name
...
`CI_ENV` has been changed to `CI_ENVIRONMENT`
2017-06-04 10:20:15 +09:00
Lonnie Ezell
144cc2b1ae
Move application structure paths to a config file so it can be loaded from CLI tool also.
2017-01-15 23:35:14 -06:00
Lonnie Ezell
b0738edc8d
Refactor and cleanup of bootstrap process just to make things a touch cleaner.
2017-01-15 23:06:39 -06:00
Gaspar Sabater
3cd1357f82
Remove only one public/ in ROOTPATH
2017-01-04 22:18:19 +01:00
Lonnie Ezell
bdb6d59890
Adding new path constant for main folder. Handy now that people might be creating custom directories for namespaced code.
2016-10-23 22:34:30 -05:00
Lonnie Ezell
afe31227cc
Setting a baseline functionality to allow apps to do user-based time conversions.
2016-10-20 08:13:26 -05:00
Ricardo Soares
12bab2c20f
Update composer vender path
2016-07-15 15:42:58 +01:00