title: how to make dynamic each function name of controller in codeigniter
body: <p>I want to dynamic function name of controller in codeigniter like:</p>
  
  <pre><code>$functionName = 'profile'; 
  
  function $functionName(){
  ------
  -----
  -----
  } 
  </code></pre>
  
  <p>Actually I want to change url <a href="http://website/manage/viewprfile/Username" rel="nofollow">http://website/manage/viewprfile/Username</a> to  <a href="http://website/manage/profile/Username" rel="nofollow">http://website/manage/profile/Username</a>  and that url is used in whole website.</p>