Integrating Wordpress And Yii,working Out The Details

Soln-

main.php

$wpt=dirname(dirname(dirname(dirname(FILE)))); // this will give you the / directory

Yii::setPathOfAlias(‘wpt’, $wpt);

return array(

‘aliases’=>array(

'wp_themes'=>'wpt.wp-content.themes',

),

);