Sunday 12 January 2014

How to install different theme on yii application?

In web application, designing  also has same importance as development because user interface matters. If UI is not user friendly then ultimately application won't be useful. Here i'll show you brand new theme installation on yii php framework.
First we need some template compatible with yii framework. I found two template link which is free Theme1 Theme2  download both templates from given links. After downloading complete follow the steps

Steps
1. First go to your yii app folder where you've installed yii framework app( for installation read my first blog installaiton)

2. Copy template folder and paste it into the theme directory which exist in your app folder (/opt/lampp/htdocs/yiiapp/themes/)



3. open protected folder and find config directory and open it, in config directory there is one main.php file open it in any text editor.(/opt/lampp/htdocs/yiiapp/protected/config/main.php)

4. make following changes in the main.php ('theme'=>'themename',) here is the screen shoot of main.php file

5. It simply route your theme folder and find cleangrad if found load it

6. check theme has been installed successfully. (http://127.0.0.1/yiiapp/)



28 comments:

  1. I got this exception after checking the changes.
    Property "CWebApplication.themes" is not defined.

    ReplyDelete
  2. Actually its the best information for me..am learned some information about PHP..Thank you for sharing the useful information...Website Designing Services in Bangalore | Website Development Services in Bangalore

    ReplyDelete
  3. nice post akshay, everybody must watch, it works ... sahi

    shetty Balaji

    ReplyDelete
  4. not working

    Yii::setPathOfAlias('local','/web/users/n3275466/AST_15/feedcloud_1/themes');


    // This is the main Web application configuration. Any writable
    // CWebApplication properties can be configured here.
    return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'My Application',
    'theme'=>'classic',


    // preloading 'log' component
    'preload'=>array('log', 'booster'),

    ReplyDelete
  5. I like this blog, saved to my bookmarks.I have got some important suggestions from it, specially How to install different theme on yii application.I'm working in Fuzzy International private limited.

    ReplyDelete
  6. Your post, regarding to Theme Installation is very effective for learners. I have got some important suggestions from it.I'm working in Brave Technologies Private Limited.BRAVE TECHNOLOGIES is a leading ERP software company offering best quality cost effective software applications and end to end enterprise solutions. We are experts in Mobile App development on both platforms – Android & iOS.

    ReplyDelete
  7. Useful post. i like your blog. Thanks for sharing.

    Magento development

    ReplyDelete
  8. Thanks for your great information. Sign up and Register Your Events Today! Upcoming Events in India. We make registration process easier and track number of students attending the event.Online Event Registration Websites

    ReplyDelete
  9. Is yii php framework safe and sturdy?
    Vinod
    http://www.sparkz.co.in

    ReplyDelete
  10. Your website content nice nice and interesting to observe.
    office 2013 professional plus key deutsch

    ReplyDelete
  11. Your post on all YII framework help us alot thanks for sharing such insightful tutorials.
    Mobile app development companies in Los Angeles

    ReplyDelete
  12. Your website content nice nice and interesting to observe.
    ssd festplatte samsung

    ReplyDelete
  13. Your website content nice nice and interesting to observe.
    Internet Marketing Dienstleistungen

    ReplyDelete
  14. Great article . Iam planning to use the theme for our college website http://www.vijayanagarcollegeofnursing.com

    ReplyDelete
  15. Thanks For Your valuable posting, it was very informative
    jobbörse Neunkirchene

    ReplyDelete
  16. Hi,

    Thanks for sharing a very interesting article about How to install different theme on yii application? This is very useful information for online blog review readers. Keep it up such a nice posting like this.

    From,
    Maestro Infotech,
    Web Design Company Bangalore

    ReplyDelete