Created
February 21, 2013 08:49
-
-
Save mirko-codesnippets/5003307 to your computer and use it in GitHub Desktop.
CakePHP: New shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class HelloShell extends AppShell | |
| { | |
| public $uses = array(); | |
| public function initialize() | |
| { | |
| $this->out('Hello world initialize.'); | |
| parent::initialize(); | |
| } | |
| public function main() | |
| { | |
| $this->out('Hello world main.'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment