문제

I need develop a custom class/widget in my Phalcon project So that it can be used anywhere in the program.
Like yii widgets.
Please help

도움이 되었습니까?

해결책

You need register another directory/namespace such as the documentation says

<?php
// For Namespaces
$loader->registerNamespaces(
    array(
       //...
       "MyLib"    => "../app/library",
       "MyPlugin" => "../app/plugins",
    )
)->register();

// For directories
$loader->registerDirs(
    array(
        "../app/library/",
        "../app/plugins/"
    )
)->register();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top