title: Action not defined in controller cakephp
body: <p>I am having this issue while using findbyid to get a unique url for a page on my shared hosting. The problem I have is that I keep getting the following error while trying to access the unique page via the Id number of the item on shared hosting(i dont get this issue on localhost):</p>
  
  <pre><code> Error: The action item is not defined in controller ProductsController
  Error: Create ProductsController::item() in file: app/Controller/ProductsController.php.
  </code></pre>
  
  <p>However item is defined in the productscontroller:</p>
  
  <pre><code>     public function item($id = null) {
  
      if (!$id) {
          throw new NotFoundException(__('product not found'));
      }
  
      $items = $this-&gt;Product-&gt;findById($id);
  
  
      if (!$items) {
          throw new NotFoundException(__('Invalid post'));
      }
      $this-&gt;set('item', $items);
  }
  </code></pre>
  
  <p>you can see the problem at this url: <a href="http://entourmag.com/hava/products/item/39" rel="nofollow">http://entourmag.com/hava/products/item/39</a></p>
  
  <p>it works on localhost via wamp so I am not sure what the problem is.</p>
  
  <p>Thanks in advance</p>