开发者

How define a unique "plugins" path to all apps in 1.3?

开发者 https://www.devze.com 2023-01-09 02:53 出处:网络
In 1.2 iused: $pluginPaths = array(CAKE_CORE_INCLUDE_PATH . DS. \'vendors\' . DS. \'plugins\' . DS); But.. in 1.3 we have the new plugins path, and i believe thats not

In 1.2 i used:

$pluginPaths = array(CAKE_CORE_INCLUDE_PATH . DS. 'vendors' . DS.

'plugins' . DS);

But.. in 1.3 we have the new plugins path, and i believe thats not necessary the $pluginsPaths manual declaration if i have:

    if (!defined('CAKE_CORE_INCLUDE_PATH')) {
                    //define('CAKE_CORE_INCLUDE_PATH', ROOT);
                    define('CAKE_COR开发者_StackOverflowE_INCLUDE_PATH', $_SERVER['DOCUMENT_ROOT'] . DS .
    "libs2");

}

I saved my plugin inside the "plugins path"... But i have not sucess in:

var $components = 'Plugin.Component';

Anyone can help me?

Thanks, Celso.


Probably you need this.

0

精彩评论

暂无评论...
验证码 换一张
取 消