Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
possible bug / mod?
  • not sure if this is the correct area to post this, but the admins can move it if its not right.
    ---
    I needed to load an app/vendor class but was getting this error in COREPATH/base.php @ line 25: ErrorException [ Compile Error ]: require_once(): Failed opening required Line 25: require_once COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'; It seems to first load from core/vendors then checks apppath. Suggested modify code:
    function import($path, $folder = 'classes')
     {
      $path = str_replace('/', DIRECTORY_SEPARATOR, $path);
    
      if (is_file(COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'))
      {
       require_once COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';
      }
                    
      if (is_file(APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'))
      {
       require_once APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';
      }
     }
    
  • That might be because there is no app/vendor directory, and creating on hasn't been part of the plan? core/vendor are third party pieces of code that we believe must be part of the core. All other third party code should go into a package.
  • ok, np.

Howdy, Stranger!

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

In this Discussion