Yii Framework Forum: Failover In Themes - Yii Framework Forum

Jump to content

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

Failover In Themes Is using the failover a good practice? Rate Topic: -----

#1 User is offline   Kalle Samuelsson 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 01-May 11

Posted 18 March 2013 - 11:01 AM

Hi!

I´ll just started using themes in Yii since my users requested different look-n-feel for a up and running site. So far I love the theme functionality but get a little bit worried about best practice.

My main concern is the failover, when a view-file in the theme is not found the standard file in /protected/views/something/ is used instead. I use this quite a lot since the only thing that changes between my themes so far is the layout-files, css, images and some js. This means that almost all view-files are looked for in the theme directory but not found, then loaded from the standard view path.

Is this an ok practice? Is there a "big" time or performance penalty involved? The site not not under extreme load but still, i want it to run smoothly and not flood-fill any error-logs. So is the theme module "ok" to use as described above or can/should I improve it?

Hope you understand my question. Thanks!
0

#2 User is offline   btilley 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 21-February 12

Posted 17 August 2013 - 09:24 PM

I would like to here an answer from the yii community on this one as well. Does anyone have any input on this?
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