Skip to content

theblacksmith/yii-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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