Coder Social home page Coder Social logo

kyrya / yiiapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kabasakalis/yiiapp

0.0 2.0 0.0 9.88 MB

Yii Project Template with Bootstrap layouts and Bootswatch color skins.

CSS 11.64% PHP 8.67% JavaScript 79.62% Makefile 0.02% Ruby 0.04% Shell 0.01%

yiiapp's Introduction

Yii App v.2.0.0

By Spiros Kabasakalis

Overview

Yii Project Template with Bootstrap layouts and Bootswatch color skins.

Features (so far)

Set it up

  • Clone the git repo ```git clone git://github.com/drumaddict/YiiApp.git`` - or download it
  • Specify your local development domain in index.php,(constant LOCAL_DOMAIN) so that the configuration file can differentiate between local and production environment.For example,you can fill in database info for both environments and the script will figure it out,assuming your virtual host does'nt have the same domain name as your real host.
  • Hook up your Yii framework path in index.php,(both local and live on server).
  • Fill in database info in config/main.php and config/console.php.(both local and live on server).
  • Fill in your recaptcha private and public keys in config/main.php,if you want to use recaptcha.
  • Fill in myEmail and gmail_password parameters in config/main.php in order to use Gmail SMPT server for email.To set up your localhost (in my case XAMPP stack) to send emails with Gmail SMPT Server,(for testing purposes), see this article.
  • Run the migration in migrations folder,or use the sql dump in data folder to create the user table and a couple of test users. (Manually set the status active (1) and remove the activation_key entry for test users.)

Changing theme,layout and color skin.

  • By default the app uses Bootstrap v.3.0.0,if you want to use v.2.3.2 (you may want to use 2.3.2 if you also use Yiistrap/YiiWheels),you must set 'theme'=>'bootstrap2 in config\main.php.
  • Set the layout at the application level in config\main.php, 'layout' => '[LAYOUT]',
  • Available layouts for Bootstrap v2.3.2 :starter,hero,fluid,carousel,justified-nav,marketing-narrow.
  • Available layouts for Bootstrap v3.0.0 :starter-template,offcanvas,carousel,justified-nav,jumbotron,jumbotron-narrow.
  • In config\main.php,in params array fill in 'bootswatch2_skin'=>'[SKIN NAME]' if you use Bootstrap v2.3.2 or'bootswatch3_skin'=>'[SKIN NAME]' if you use v3.0.0.
  • Available values for bootswatch2_skin: none (default bootstrap colors),amelia,cerulean,cosmo,cyborg,flatly,journal,readable,simplex,slate,spacelab,spruce,superhero,united.
  • Available values for bootswatch3_skin: none (default bootstrap colors),amelia,cerulean,cosmo,cyborg,flatly,journal,readable,simplex,slate,spacelab,united.
  • In config\main.php,in params array,set 'render_switch_form'=>true if you want to render a form for changing layouts and skins.(For Bootstrap v3.0.0 only).

LICENSE

YiiApp is released under the WTFPL license.This means that you can literally do whatever you want with this software.

RESOURCES

yiiapp's People

Contributors

kabasakalis avatar

Watchers

James Cloos avatar Kazuhisa Suzuki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.