CodeIgniter get all controller list with its method
<p>I want to create user role and permission based on controller method. For this i needed a list of controllers with its method.</p>

<p>i want it to dynamically if i add a method into any class than it will list in this listing </p>

<p>For that i tried this into my method But the problem is that its only showing the current controller and its method.:</p>

<pre><code>&lt;?php
$controller = $this-&gt;router-&gt;fetch_class();
$method = $this-&gt;router-&gt;fetch_method();
?&gt;
</code></pre>

<p>Please help.</p>

<p>Thanks in advance</p>