5 Topics

Member Avatar for
Member Avatar for chozotheqhai

Hello, I'm getting problem file or directory not found when I try to load the file from another directory. Kindly help me fix this problem. Thanks you. Website -classes -core.php -inc -autoload.php -config.php -index.php **Index.php** <?php require_once('inc/autoload.php'); $core = new Core(); $core->run(); **autoload.php** <?php require_once('config.php'); function __autoload($class_name) { $class = …

Member Avatar for diafol
0
577
Member Avatar for klemme

Hi all, Im starting to use composer, and have installed a few packages - This thread is about illuminate/database component. Im clearly misunderstanding something about how i can use the autoloader. I have the following directory structure: -app -assets -vendor index.php [Request goes to index.php] - This file includes composers …

Member Avatar for klemme
0
1K
Member Avatar for Tinnin

Hi All, I'm having trouble understanding how the spl_autload (and namespaces) should be implemented. I have the following: namespace A\Core; class Controller { } extended by: class SiteController extends \A\Core\Controller { public function __construct() { echo 'Created SiteController!'; } } * I'm not sure if this is the correct/best way …

Member Avatar for Tinnin
0
278
Member Avatar for PerplexedB

Am I right to assume that autoload is a performance issue rather than making my life easier as a developer? I mean if I put all my classes in one include, and I don't have any performance issues, should I be worried about autoloading at this early stage of my …

Member Avatar for PerplexedB
0
335
Member Avatar for joshmac

I want to convert my MVC framework to conform to the PSR-0 standards, but I am having a devil of a time trying to wrap my head around namespaces and how it works. I am using the suggested [SplClassLoader](https://gist.github.com/221634) class. Below is my file structure, and what I am trying …

Member Avatar for pritaeas
0
207

The End.