public
Description: Cake is a Codeigniter mAKE
Homepage: http://www.caironoleto.com/cake
Clone URL: git://github.com/caironoleto/cake.git
cake /
name age message
file LICENSE Tue Nov 11 07:05:31 -0800 2008 add license [caironoleto]
file README.mkdn Tue Jan 06 02:53:11 -0800 2009 alter README [Cairo Noleto]
directory bin/ Tue Jan 06 03:35:32 -0800 2009 add call to $this->load->view when generate con... [caironoleto]
file config.php Wed Nov 05 16:09:58 -0800 2008 add helper to unit tests [caironoleto]
directory test/ Tue Jan 06 03:35:32 -0800 2009 add call to $this->load->view when generate con... [caironoleto]
README.mkdn

cake

cake is a generator to CodeIgniter Framework.

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.php

cairo@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.php

cairo@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.php

cairo@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.

Author:

Cairo Noleto

Working at Add4 Comunicação

Blog: Cairo'sBlog

Twitter: @caironoleto