Codeigniter and Composer psr-4 |
There are 2 ways. One is a simple change to your config. The other is including a link in your index.php. Changing the config is the best because it doensn't breaak the coding commandment: "Thou shalt not hack thine core".
Method 1: Change the following in application/config/config.php. $config['composer_autoload'] = './vendor/autoload.php'; (or where ever your autoload.php is located) Method 2: You can also add include_once './vendor/autoload.php'; to index.php as per Phil Sturgeon's blog https://philsturgeon.uk/php/2012/05/07/c...deigniter/ |
Messages In This Thread |
Codeigniter and Composer psr-4 - by phpforever2017 - 03-14-2017, 10:24 AM
RE: Codeigniter and Composer psr-4 - by Narf - 03-14-2017, 11:11 AM
RE: Codeigniter and Composer psr-4 - by phpforever2017 - 03-14-2017, 11:59 AM
RE: Codeigniter and Composer psr-4 - by phpforever2017 - 03-14-2017, 12:43 PM
RE: Codeigniter and Composer psr-4 - by Narf - 03-15-2017, 02:57 AM
RE: Codeigniter and Composer psr-4 - by phpforever2017 - 03-16-2017, 03:35 AM
RE: Codeigniter and Composer psr-4 - by Narf - 03-16-2017, 03:41 AM
RE: Codeigniter and Composer psr-4 - by llebkered - 03-16-2017, 04:51 AM
RE: Codeigniter and Composer psr-4 - by phpforever2017 - 03-16-2017, 05:03 AM
RE: Codeigniter and Composer psr-4 - by Narf - 03-16-2017, 05:14 AM
RE: Codeigniter and Composer psr-4 - by phpforever2017 - 03-16-2017, 05:01 AM
|