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/)



56 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. It is a helpful article for SEO people and Developers, Thanks for Sharing!!! Ecommerce Development Bangalore | Magento Development Bangalore

    ReplyDelete
  6. 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
  7. 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
  8. Useful post. i like your blog. Thanks for sharing.

    Magento development

    ReplyDelete
  9. 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
  10. This is great. Excellent article. I have understood much clearer now.
    Web Design Company | Web Development Company | Mobile App Development Company

    ReplyDelete
  11. Interesting post! This is really helpful for me. I like it! Thanks for sharing!

    Webseiten Gestaltung Lüdenscheid

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

    ReplyDelete
  13. Thanks For Your valuable posting, it was very informative
    Schulungsangebote

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

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

    ReplyDelete
  16. Thanks For Your valuable posting, it was very informative
    toshiba q300 interne ssd

    ReplyDelete
  17. The website is looking bit flashy and it catches the visitors eyes. A design is pretty simple .
    Stellenbörse

    ReplyDelete
  18. Your website content nice nice and interesting to observe.
    jobbörse Neunkirchen

    ReplyDelete
  19. Thanks for your marvelous posting! It is very useful and good. Come on. I want to introduce an get app installs, I try it and I feel it is so good to rank app to top in app store search results, have you ever heard it?

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

    ReplyDelete
  21. I like the post format as you create user engagement in the complete article. It seems round up of all published posts. Thanks for gauging the informative posts.
    cara menggugurkan kandungan

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

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

    ReplyDelete
  24. 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
  25. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    thesis Writing Service

    ReplyDelete