Welcome Guest, Not a member yet? Register   Sign In
Parse error including vendor/autoload.php
#7

(This post was last modified: 04-06-2015, 11:47 AM by cleetus.)

Thanks for the help. Doesn't seem to matter where the /vendor folder is - can put it in APPPATH or in the root and use FCPATH. Returns a 500. Here's the code:
PHP Code:
if (file_exists(APPPATH 'vendor/autoload.php')) {
 
               require_once(APPPATH 'vendor/autoload.php');
 
           } elseif (file_exists(APPPATH '../vendor/autoload.php')) {
 
               require_once(APPPATH '../vendor/autoload.php');
 
           

Path: /application/vendor

Code:
/html
 /application
   /vendor
Reply


Messages In This Thread
RE: Parse error including vendor/autoload.php - by cleetus - 04-06-2015, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB