Hi,
I'm a newbie here, I'd like to know what is the most proper and fastest way to give full path of CSS file for CClientScript registerCssFile function, but also many other functions?
Thanks!
m
Page 1 of 1
Most proper and fastest way to determine root directory for url creation like for registerCssFile etc.
#2
Posted 03 January 2010 - 06:00 PM
migajek, on 03 January 2010 - 05:36 PM, said:
Hi,
I'm a newbie here, I'd like to know what is the most proper and fastest way to give full path of CSS file for CClientScript registerCssFile function, but also many other functions?
Thanks!
m
I'm a newbie here, I'd like to know what is the most proper and fastest way to give full path of CSS file for CClientScript registerCssFile function, but also many other functions?
Thanks!
m
Hi,
This might solve your question:
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/form.css');
#3
Posted 04 January 2010 - 05:04 AM
thanks, I thought there is maybe some alias or so ...
anyway should I do it like this or use assets manager?
could anyone explain when to use which way?
thanks
anyway should I do it like this or use assets manager?
could anyone explain when to use which way?
thanks
#4
Posted 09 February 2010 - 12:08 PM
I think this is no more working, the following code shows a blank page :
echo Yii::app()->getbaseUrl;exit;
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
#5
Posted 09 February 2010 - 12:34 PM
saegeek, on 09 February 2010 - 12:08 PM, said:
I think this is no more working, the following code shows a blank page :
echo Yii::app()->getbaseUrl;exit;
echo Yii::app()->baseUrl;
or
echo Yii::app()->getBaseUrl();
or
echo Yii::app()->getBaseUrl(true);
(absolute URL)
/Tommy
This post has been edited by tri: 09 February 2010 - 12:44 PM
Share this topic:
Page 1 of 1

Help














