How i can executed my controller in the url |
Hey,
i have choosing today the way to coding with CodeIgniter. So i'm a newbie in frameworks, but the framework looks not so hard. I have tried the first Tutorial "static page". Now if i want to call the site in the url i get everytime the error, that this site doesn't exist. I don't know why this is. A url looks after the tutorialsite so : /[controller-method]/[arguments]http://example.com/[controller-class]/[controller-method]/[arguments] I executed all at xampp local. And if i executed it like this i get everytime the error. My Path to the framework folder is this :http://localhost/php/frameworks/codeigniter/ Now if i want to executing my controller with the method the url must be like this: http://localhost/php/frameworks/codeigniter/pages/view But if i load this url i get everytime the error, that this object can't get found. The Code is: PHP Code: <?php My 2 view-datas looks so: header.php PHP Code: <!DOCTYPE html> footer.php PHP Code: <p>copyright @stef</p> Hope you can help me. Stef
Did you setup your base_url in the config.php file?
Did you setup your routes in the routes.php file? What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |