Giter Site home page Giter Site logo

yii-boilerplate's Introduction

This project isn't maintained anymore

Yii Boilerplate

based on Yii v1.1.10

This project can be used as a quicker start for your yii app. I know Yii is fast. But I've found out I was doing the same steps for every little project, so I though I could set up a more complete bootstrap app then the one yiic command gives me.

The Branches

As different projects require different setups, so does (or will do) the branches of this repo. For now there is only one branch, but there will be more. All branches have the following setup in common:

  • .gitignore ignores auto-generated assets and runtime files
  • Beautiful URLs
  • Adds Yiihppie extension

    Yiihppie extension uses HamlPHP to enable haml views in Yii.

  • Adds giix-haml extension to generate haml views using Gii

Coming soon...

  • Bootstrap-haml
  • Bootstrap-haml-sass
  • Bootstrap-haml-less

Awesome! How do I use it?

The yiib command

So you've hear enough and wanna try it out? I have good news for you, I've made it easier:

  1. download the yiib.sh gist (direct link) and save it somewhere

  2. Add a shortucut to it by running

     $ sudo ln -s /path/to/where/you/put/yiib.sh /usr/sbin/yiib 
    
  3. now, whenever you wanna create a project from one of this branches you just run

    $ yiib <template> <project_name>

    Where <template> is the name of one of the branches in this repo. e.g:

    $ yiib bootstrap MyAwesomeApp

That's it!

Ow.. you want the long way? ok.

git clone -b <template> https://github.com/theblacksmith/yii-boilerplate <project>

cd <project>
git remote rm origin
git branch -m <template> master

yii-boilerplate's People

Stargazers

Marina Kaygorodova avatar Feyijimi Adewole avatar Pavel Zhukov avatar  avatar  avatar Saulo Vallory avatar

Watchers

James Cloos avatar

Forkers

svallory

yii-boilerplate's Issues

Ambigious include

\yii-boilerplate\protected\extensions\yiihppie\vendors\HamlPHP\src\HamlPHP\HamlPHP.php contains ambigious include

require_once 'Config.php';

It includes Config.php from Pear directory on my installation. I've managed to solve the issue by rewriting it as

require_once dirname(__FILE__) . '/Config.php';

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.