Are you tired of prepending Yii::app()->request->baseUrl to each image SRC attribute, script or CSS file source link?
Just install this simple extension and it will append baseurl for you.
- Yii 1.0 or above
- Extract the release file under
Edit your main layout file (usually /protected/views/layout/main.php)
$this->beginWidget('application.extensions.BaseUrlAppender') <html> .... .... </html> $this->endWidget()
now all refernces like ~~~ [html] ~~~ and others will be rewritten to ~~~ [html] ~~~
List of all rewritten tags: ~~~ [html] <A|LINK>:HREF <IMG|SCRIPT|INPUT>:SRC:ACTION background background:url ~~~
Change Log ¶
February 26, 2009 ¶
- Initial release.
February 27, 2009 ¶
- version 1.1
- Rewritten as CWidget, documentation changed