Yii Framework Forum: "feature request" for the Definitive Guide - Yii::app()->request->baseUrl - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

"feature request" for the Definitive Guide - Yii::app()->request->baseUrl Rate Topic: -----

#1 User is offline   lxvi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 13-March 12

Posted 15 August 2012 - 02:43 AM

Hi, if there's a better place to post this request, please let me know.

I would like there to be a paragraph discussing the use of Yii::app()->request->baseUrl on the page for URL Management in the Definitive Guide.

I thought I could save some time during prototyping and just put my css and js files in the directories by that name rather than go through the whole exercise of asset management. Unfortunately, I ended up losing a lot of time trying to figure out the proper way to refer to those directories with registerCssFile and registerScriptFile, because it took a long time for me to think about looking in protected/views/layouts/main.php to see how it was done there.

Thanks!
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 751
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 15 August 2012 - 02:49 AM

post your question ?
0

#3 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 478
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 15 August 2012 - 06:35 AM

I'm afraid your problem does not have anything to do with url management.
Url management is about creating urls to other pages and different url formats, not about creating urls to assets like css, js or image files.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users