New to laravel and PHP programming. I managed to install laravel with wamp in Windows 7 according to this tutorial: http://www.wikihow.com/Install-Laravel-Framework-in-Windows. I moved all the contents of the public folder into C:/wamp/www/laravel. So, I can see the Laravel logo when I go to localhost:81/laravel/
Then, I was following this tutorial online (http://www.youtube.com/watch?v=U_0gNBN7Q7I) and somehow I was unable to view the html page when I go to localhost:81/laravel/mycontroller
app/controllers/MyController.php
<?php
class MyController extends BaseController
{
public function loadView()
{
return View::make('myview');
}
}
app/views/myview.php
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Testing</title>
</head>
<body>
<h1></h1>
<p>It worked!</p>
</body>
</html>
app/routes.php
Route::get('mycontroller', array('uses'=>'MyController@loadView'));
However, if I change the word 'mycontroller' to a '/', I can see the html page when I go to localhost:81/laravel. Anyone have any idea what I have done wrong here?
Route::get('/', array('uses'=>'MyController@loadView'));
Error Message
Not Found
The requested URL /laravel/mycontroller was not found on this server.