Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caironoleto/cake
Cake is a Codeigniter mAKE
https://github.com/caironoleto/cake
Last synced: 3 months ago
JSON representation
Cake is a Codeigniter mAKE
- Host: GitHub
- URL: https://github.com/caironoleto/cake
- Owner: caironoleto
- License: other
- Created: 2008-11-05T19:11:14.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2009-01-06T11:36:00.000Z (about 16 years ago)
- Last Synced: 2023-04-11T13:58:01.351Z (almost 2 years ago)
- Language: PHP
- Homepage: http://www.caironoleto.com/cake
- Size: 313 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- License: LICENSE
Awesome Lists containing this project
README
# cake
[cake][cake_url] is a generator to [CodeIgniter Framework][ci_url].
You can use to generate your controllers and models. When you create controllers, *cake* will create views and add routes to your controller.
By default, you can see your routes in `system/application/config/routes.php`.
By default, you can see your views in `system/application/views/`.
## How to install?
git clone git://github.com/caironoleto/cake.git /home/yourUser/.cake
sudo ln /home/yourUser/.cake/bin/cake /usr/bin/cake
sudo ln /home/yourUser/.cake/bin/Generate.php /usr/bin/Generate.php## Usage:
cd /home/yourUser/codeIgniterPath/
cake [mode] [name] [method1] [method2] [method3]## Modes available:
* controller
* model
## Example:
cairo@lt:~/myProject$ cake controller home
cake by Cairo Noleto - http://www.caironoleto.com/system/ exists
system/application/ exists
system/application/controllers/ exists
Add route to HomeController
Create system/application/controllers/HomeController.phpcairo@lt:~/myProject$ cake controller home index
cake by Cairo Noleto - http://www.caironoleto.com/system/ exists
system/application/ exists
system/application/controllers/ exists
Add route to HomeController
Add index in HomeController
system/application/views/ exists
system/application/views/home/ exists
Create system/application/views/home/index.php
Create system/application/controllers/HomeController.phpcairo@lt:~/myProject$ cake model user
cake by Cairo Noleto - http://www.caironoleto.com/system/ exists
system/application/ exists
system/application/models/ exists
Create system/application/models/User.phpcairo@lt:~/myProject$ cake model user find_all
cake by Cairo Noleto - http://www.caironoleto.com/system/ exists
system/application/ exists
system/application/models/ exists
Add find_all in User
Create system/application/models/User.php## License:
cake is released under [Creative Commons Attribution 3.0 Unported][license_url].
## Author:
### **Cairo Noleto**
Working at [Add4 Comunicação][add4_url]
Blog: [Cairo'sBlog][blog_url]
Twitter: [@caironoleto][twitter_url]
[twitter_url]: http://www.twitter.com/caironoleto
[blog_url]: http://www.caironoleto.com/
[add4_url]: http://www.add4.com.br/
[license_url]: http://creativecommons.org/licenses/by/3.0/
[cake_url]: http://www.caironoleto.com/cake/
[ci_url]: http://www.codeigniter.com/