Created
November 12, 2012 09:28
-
-
Save junichi11/4058357 to your computer and use it in GitHub Desktop.
CakePHP controller sample
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 PostsController extends AppController { | |
public $uses = array('Post', 'Foo', 'Bar'); | |
public $components = array('Session', 'Security'); | |
public $helpers = array('Html', 'Form'); | |
public function index() { | |
$this->Post->recursive = 0; | |
// $this-> [Ctrl + Space] | |
$this->Session->write("foo"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment