Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Composer psr-4
#8

(This post was last modified: 03-16-2017, 04:52 AM by llebkered.)

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/
Reply


Messages In This Thread
RE: Codeigniter and Composer psr-4 - by Narf - 03-14-2017, 11:11 AM
RE: Codeigniter and Composer psr-4 - by Narf - 03-15-2017, 02:57 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 Narf - 03-16-2017, 05:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB