i have download the codeigniter file from the web and i extracted the file inside wamp server. i renamed it as Shoppingme.
and i went inside application config file
and change the code?
$config['base_url'] = "http://localhost/Shoppingme/";
$config['index_page'] = "";
and i change the autoload.php inside application folder as well.
$autoload['libraries'] = array('database','cart');
$autoload['helper'] = array('form','html','url');
didn't create the database yet?.......
and i developed a php file called 'shopMe' inside controller folder.
<?php
class shopMe extends Controller {
function add() {
$data = array('id'=>'42', 'name'=>'Pants','qty'=>1,'price'=>19.99,
'options'=>array('Size'=>'medium'));
$this->cart->insert($data);
echo "add() called";
}
}
?>
i save the code
and i typed http://localhost/Shoppingme/shopMe/add inside browser and
it gives me this error
Not Found
The requested URL /Shoppingme/shopMe/add was not found on this server.
but answer should be showed in the browser like
add() called..
what i can do for this?