title: cakephp : admin routing issue : Parse error: syntax error, unexpected '/', expecting '('
body: <p>I was trying to create an admin for my controller Posts, I used cake console option to create controller, I type Y for the question "Need admin routing ?", I entered Y and I got written my controller with admin functions, one of my admin function looks like this </p>
  
  <pre><code>function admin/controller_view($id = null) {
      if (!$id) {
          $this-&gt;Session-&gt;setFlash(__('Invalid post', true));
          $this-&gt;redirect(array('action' =&gt; 'index'));
      }
      $this-&gt;set('post', $this-&gt;Post-&gt;read(null, $id));
  }
  </code></pre>
  
  <p>But when I execute I am getting the following error</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected
    '/', expecting '(' in
    C:\xampp\htdocs\cake\blog\app\controllers\posts_controller.php
    on line 61</p>
  </blockquote>
  
  <p>I am using cakephp 1.3, What should I do to create an admin panel for this controller ?</p>
  
  <p>Thaks a lot</p>