Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
problem in using composer
  • Dears ,

    i was install fuel ver 1.7.1 and composer installed successfully i need to use one of it is basic packages like monolog , then i start to put the following command "require APPPATH.'vendor/autoload.php';" in the bootstrap file in the app folder so i get the following error :  

    Compile Error!

    ErrorException [ Compile Error ]:
    main(): Failed opening required '/var/www/egycps/fuel/app/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear')

    Please advice ;)
  • HarroHarro
    Accepted Answer
    Why did you put that code in the bootstrap?

    That is not needed, Fuel will load and initialize the composer autoloader itself (and it doesn't install in app/vendor, it installs in fuel/vendor).
  • i use the following article in the blog : http://www.fuelphp.com/blogs/2013/01/fuelphp-and-composer

    but it seems it is very old one and i know that installed in fuel/vendor .

    Many thanks for your support , i really appreciate your great support ;)
  • Yeah. Since then Composer became a required component for Fuel v1.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion