Yii Framework Forum: Using YiiBooster, where are external css files referenced/added? - Yii Framework Forum

Jump to content

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

Using YiiBooster, where are external css files referenced/added?

#1 User is offline   osullic 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 23-September 15

Posted 07 October 2015 - 06:48 AM

I'd appreciate if someone could give me some guidance with regard to YiiBooster and including external CSS files.

I'm trying to make some updates to a large site developed by somebody else using Yii 1.1.15. The site also uses YiiBooster. I'm pretty new to Yii.

What I am trying to achieve is to use the Font Awesome icons.

When I view the source of a page from the site in my web browser, several js and css files are linked in the head of the document, but I don't see any link to the font-awesome css file there. So I need to add one. How do I do that? Is YiiBooster supposed to take care of this in some way for me? If not, how/where can I add the link manually?

What confuses me (being new to Yii) is that in the source in my web browser, the links to all the css and js files appear between the following two lines:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<!-- 21 css/js files linked here -->
<title>Store</title>

but in the PHP files, I find the following in 'web/protected/modules/desktop/views/layouts/main.php':
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title><?= $this->pageTitle ?></title>

That is, somehow Yii inserts the css and js files between these two lines, but I don't understand how/where.

In the case of my web application, I can't find where in the PHP files all the css and js files are referenced.
When searching around for info on this, I came across the following article on the Yii wiki, but it didn't help me with the web application I'm working on:
http://www.yiiframew...javascript-css/

Thanks for your help.
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