hi everybody m new here with codeignator!! i have a controller as in the following:
<?php if(!defined ('BASEPATH')) exit('not found basepath');
class **myController** extends CI_Controller{
function __constructor(){
parent::__constructor();
}
public function index(){
$this->load->view('myview');
}
**public function myFn()**{
echo "my controller is called";
}
}
?>
and view is in the following:
<form action="<?php echo base_url();?>myController/myFn" method="post" name="myform">
<input type="submit" name="submit" value="submit"/>
</form>
the problem is that when i run the view by going to localhost after clicking at the submit m intimating by the following error!!!
**The requested URL /CodeIgniter/myController/myFn was not found on this server.**
but when i put **http://localhost/CodeIgniter/index.php/myController/myFn**
i got the correct output of the view
anybody is here who can help me in this regard thnx in advance....