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.
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
-
Adds a fork of YiiBootstrap extension created by By VisualAppeal
YiiBootstrap adds nice widgets to render Twitter Bootstrap based pages
-
Adds a bootstrap theme (set as default theme)
- Bootstrap-haml
- Bootstrap-haml-sass
- Bootstrap-haml-less
So you've hear enough and wanna try it out? I have good news for you, I've made it easier:
-
download the yiib.sh gist (direct link) and save it somewhere
-
Add a shortucut to it by running
$ sudo ln -s /path/to/where/you/put/yiib.sh /usr/sbin/yiib
-
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!
git clone -b <template> https://github.com/theblacksmith/yii-boilerplate <project>
cd <project>
git remote rm origin
git branch -m <template> master