Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

[RESUELTO] FirePHP

$
0
0
Seguí los pasos de "Integrating FirePHP" (http://www.yiiframew...oc/cookbook/84/).

Obtuve como resultado este error:
Fatal error: Uncaught exception 'CException' with message  'Alias "pmmii.components.FirePHPCore.fb" is invalid. Make sure it points to  an existing directory or file.' in  D:\www\docs\ps\yii\framework\YiiBase.php on line 282


Intenté con:
application.components.FirePHPCore.fb
application.protected.components.FirePHPCore.fb

Intenté también "forzarlo" con el "shiki", pero finalmente me dice q la función "fb" no existe...
¿Cómo hacer para que funcione el FirePhp?:unsure:

Gracias desde ya

/--------------------------------------------------/

Finalmente se logra hacer andar de este modo:

$app = Yii::createWebApplication($config);
if (YII_DEBUG){
 //   echo "[".Yii::getPathOfAlias("application")."]";
 //   die();
	Yii::import("application.components.FirePHPCore.fb", true);
}
$app->setLanguage(strstr(Yii::app()->request->preferredLanguage,'_',true));
$app->run();


Hasta donde comprendo, recién luego de createWebApplication puede utilizarse Yii::import y que funcione adecuadamente getPathOfAlias()

E.

E.

Viewing all articles
Browse latest Browse all 18717

Trending Articles