我發現自動加載該頁面PhalconPHP:http://docs.phalconphp.com/en/latest/reference/loader.htmlPhalconPHP:如何自動加載
我明白我需要做的設置裝載機。不過,我的問題是,現在我有一個$裝載機變......我該怎麼辦呢?有什麼我需要附加它?我的猜測是,它添加到$迪,但$迪似乎並不有一個「裝載機」鍵。
// Creates the autoloader
$loader = new \Phalcon\Loader();
//Register some namespaces
$loader->registerNamespaces(
array(
"Example\Base" => "vendor/example/base/",
"Example\Adapter" => "vendor/example/adapter/",
"Example" => "vendor/example/",
)
);
// register autoloader
$loader->register();
// *** What goes here?
謝謝!
你可能只有''「例子」=>「vendor/example /」''btw。 – JCM 2015-10-08 15:56:27