title: Codeigniter URI Class how can i use – hyphen instead _ underscore?
body: <p>i tried create some controllers, models and views with - hyphen, but i get php error always so i am using underscore right now.</p>
  
  <p>so my url is:
  <a href="http://localhost:8888/ci/index.php/get_artist_discography/artist_name" rel="noreferrer">http://localhost:8888/ci/index.php/get_artist_discography/artist_name</a></p>
  
  <p>i would like be like that:
  <a href="http://localhost:8888/ci/index.php/get-artist-discography/artist-name" rel="noreferrer">http://localhost:8888/ci/index.php/get-artist-discography/artist-name</a></p>
  
  <p>its possible have urls with - hyphen in codeigniter?</p>
  
  <p>my code:</p>
  
  <p>/controllers:</p>
  
  <pre><code>    &lt;?php 
  include (APPPATH.'/libraries/REST_Controller.php');
  class get_artist_discography extends REST_Controller {
  
      function artist_name_get(){
  
      $data = new stdClass();
      $this-&gt;load-&gt;model('artist_model');
      $data = $this-&gt;artist_model-&gt;getAll();$this-&gt;response($data, 200);
  
  
      }
  
  }
  </code></pre>
  
  <p>/models:</p>
  
  <pre><code>  &lt;?php 
  class artist_model extends CI_Model {
      function getAll(){
  
          $q  = $this-&gt;db-&gt;query("SELECT artist_discography,artist_name from music");
  
          if($q-&gt;num_rows() &gt; 0) {
  
              foreach ($q-&gt;result() as $row) {
                  $data [] = $row;
              }
              return $data;
          }
  
      }
  }
  </code></pre>