Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save khairulhasanmd/c1dcc2aea07c7a01e0678316ee95c515 to your computer and use it in GitHub Desktop.
Save khairulhasanmd/c1dcc2aea07c7a01e0678316ee95c515 to your computer and use it in GitHub Desktop.
controller and model functions list
<?php
public function test($value='')
{
echo '<h2>Controller</h2>'.$this->router->class.'<pre>';
$mthds = (get_class_methods ( $this->router->class ));
foreach ($mthds as $key => $value) {
echo $value.'<br>';
}
echo '</pre><h2>Model</h2>';
echo '<pre>'.$this->router->class.'_mdl';
$mthds = (get_class_methods ( $this->router->class.'_mdl' ));
foreach ($mthds as $key => $value) {
echo $value.'<br>';
}
echo '<pre>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment