Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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?

PHP
$config['base_url']	= "http://localhost/Shoppingme/";


PHP
$config['index_page'] = "";


and i change the autoload.php inside application folder as well.

PHP
$autoload['libraries'] = array('database','cart');


PHP
$autoload['helper'] = array('form','html','url');


didn't create the database yet?.......

and i developed a php file called 'shopMe' inside controller folder.


PHP
<?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?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900