Yii Framework Forum: Themed Assets - Yii Framework Forum

Jump to content

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

Themed Assets Rate Topic: -----

#1 User is offline   homebru 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 07-February 10

Posted 07 February 2010 - 09:50 AM

I am brand new to Yii (just a few days into it) and I'm trying to walk before I have learned to crawl.

I am writing an application that will employ themes but have some basic questions.

My application uses the automatically loaded jquery.yiigridview.js and pager.css files which are deposited by Yii in the project's assets folder but they need to be 'theme' capable and therefore can't really exist in the assets folder!?!?

As these files are automatically loaded by Yii from a 'common' directory, how am I supposed to theme the components, or tell Yii to use my CSS and not the one it automatically loads as default?

I see a lot of references in the Forum to extensions and wrappers for jQuery components but unfortunately, these Forum postings are from/between people that are more familiar with Yii than I am and I can't find any simple 'step by step' description of what needs to be done in which files to enable the common jQuery components to be themed or whether or not they MUST be wrapped or extended, or relocated to a different folder, and if wrapped or extended, which is the preferred method, etc.

Can anyone direct me to a URL that will explain all this to me?

Thanks for your time!
0

#2 User is offline   jayrulez 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 348
  • Joined: 29-July 09

Posted 07 February 2010 - 10:18 AM

View Posthomebru, on 07 February 2010 - 09:50 AM, said:

I am brand new to Yii (just a few days into it) and I'm trying to walk before I have learned to crawl.

I am writing an application that will employ themes but have some basic questions.

My application uses the automatically loaded jquery.yiigridview.js and pager.css files which are deposited by Yii in the project's assets folder but they need to be 'theme' capable and therefore can't really exist in the assets folder!?!?

As these files are automatically loaded by Yii from a 'common' directory, how am I supposed to theme the components, or tell Yii to use my CSS and not the one it automatically loads as default?

I see a lot of references in the Forum to extensions and wrappers for jQuery components but unfortunately, these Forum postings are from/between people that are more familiar with Yii than I am and I can't find any simple 'step by step' description of what needs to be done in which files to enable the common jQuery components to be themed or whether or not they MUST be wrapped or extended, or relocated to a different folder, and if wrapped or extended, which is the preferred method, etc.

Can anyone direct me to a URL that will explain all this to me?

Thanks for your time!


Specify the css file: CLinkPager::cssFile, CGridView::cssFile
php:
foreach(array('cat', 'dog', 'cow') as $animal) echo $animal."\n";

python:
[(animal, print(animal)) for animal in ['cat', 'dog', 'cow']]

ruby:
['cat', 'dog', 'cow'].each {|animal| puts animal}


You say Tomato, I say Tomato.
0

#3 User is offline   homebru 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 07-February 10

Posted 07 February 2010 - 11:38 AM

Thanks!

Seems simple enough... where (which file) do I do this?
(told you I was a beginner!)
0

#4 User is offline   homebru 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 07-February 10

Posted 07 February 2010 - 12:04 PM

Ah-ha! Got it.
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