无法通过laravel中的URL打开页面

时间:2014-08-14 10:06:49

标签: php laravel composer-php wampserver netbeans-8

我无法通过网址打开网页

我可以通过

打开 hello.blade.php 页面
**http://localhost:88/laravel/public/**

我希望使用类似

的网址打开about.blade.php页面
**http://localhost:88/laravel/public/about**

当我打开此页面时,我正在查找此错误消息

  

在此服务器上找不到请求的URL / laravel / public / about。

请帮帮我

我的代码是

hello.blade.php

<html>
    <head>
        <title>Welcome in to laravel frame work </title>
    </head>
    <body>

        <h1> Hello, welcome to the home page </h1>
        <h2> hello, {{  $name }}

    </body>  

about.blade.php

<html>
    <head><title> About </title>
    </head>
    <body>
        <h1>This is the About page</h1>

    </body>
        </html>

pagecontroller.php

<?php


class pagecontroller extends BaseController
{
    public function home()
   {
        $name = "jitender kumar malav";
        return View::make('hello')->with('name', $name);
    }

    public function about()
    {
        return View::make('about');
    }
   }

route.php

<?php


Route::get('/', 'pagecontroller@home');

Route::get('/about', 'pagecontroller@about');

0 个答案:

没有答案