11. <?php � function edit($id = null) { class PostsController extends AppController { � � � � $conditions = array( � 'Post.id'=>$id, � var $name = 'Posts'; � � � 'Post.user_id'=>$this->Auth->user('id'), � � ); � function index() { � � $post = $this->Post->find('first', compact('conditions')); � � $this->paginate = array( � � if (!$post) { � � � 'conditions'=>array( � � � $this->Session->setFlash(_