Am not able to call a controller function from my view
This is my view code
echo "<a href='".$base_url."/qst/d/".$row['id']."' class='btn linkcolor'>DENY</a>";
which calls a controller qst and a function deny in it
here is my controller code
public function _remap($method, $params = array()) {
if ($method == 'd') {
$this->deny();
}
}
public function deny($id){
}
am getting the error undefined varaible id.
also am getting Missing argument 1 for qst::d
can anyone tell me what's missing in the code so that it works?