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

Set Alias

$
0
0
I am using Mac and its built-in php.

In main.php, i did this

Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');


but it does not work, so, in an index.php, i wrote:

<?php echo Yii::getPathOfAlias('bootstrap');?>


and the webpage show:

/Library/WebServer/Documents/tpl/protected/config/../extensions/bootstrap

that's wrong!

i think is should be

/Library/WebServer/Documents/tpl/protected/extensions/bootstrap

Please how to write the right "setPathOfAlias"?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>