title: how to create frontend controller and action in gocart
body: <p>I am facing some problems in gocart codeigniter. I create a front end controller named <strong>decorate</strong>
  then action named <strong>products</strong> and passing slug in action.</p>
  
  <p>Following is the code of controller</p>
  
  <pre><code>&lt;?php
  
  class Decorate extends Front_Controller {
  
      function __construct()
      {
          parent::__construct();
  
          //make sure we're not always behind ssl
          remove_ssl();
  
          $this-&gt;load-&gt;model(array('Decorate_model'));
          $this-&gt;lang-&gt;load('decorate');
      }
  
      function index()
      {
          $data['page_title'] = lang('decorates');
  
          $data['decorates']  = $this-&gt;Decorate_model-&gt;get_front_all_decorates();
  
          $this-&gt;load-&gt;view('decorate_home',$data);
      }
  
      /* Single Decorate */   
  
      function products($decorate_slug)
      {
          $data['page_title'] = lang('decorates');
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>But when I am running url <code>www.abc.com/gocart/index.php/decorate/products/decorate-1</code></p>
  
  <p>then it is showing 404 error. I am not getting how to create action in gocart.</p>