在cakephp控制器中找不到4o4

时间:2016-11-25 11:47:13

标签: php linux cakephp

我将一个CakePhp项目放在var / www / html / manage /

管理文件夹包含(在ls上)

CONTRIBUTING.md  app               build.xml      email      index.php  plugins
README.md        build.properties  composer.json  email.zip  lib        vendors

当我做http://domain/manage/

它给了我错误,这很好

!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
        CakePHP: the rapid development php framework:
        Errors  </title>
        <link href="/manage/favicon.ico" type="image/x-icon" rel="icon" />
        <link href="/manage/favicon.ico" type="image/x-icon" rel="shortcut icon" />
        <link rel="stylesheet" type="text/css" href="/manage/css/cake.generic.css" />
    </head>
    <body>
        <div id="container">
            <div id="header">
                <h1>
                    <a href="http://cakephp.org">CakePHP: the rapid development php framework</a>
                </h1>
            </div>
            <div id="content">
                <h2>Missing Controller</h2>
                <p class="error">
                    <strong>Error: </strong>
                    <em>Controller</em> could not be found.
                </p>
                <p class="error">
                    <strong>Error: </strong>
    Create the class
                    <em>Controller</em> below in file: app/Controller/Controller.php
                </p>
                <pre>
&lt;?php
class Controller extends AppController {

我在app / Controller /

中放置了一个控制器

然而,当我尝试做

http://domain/manage/users/registerAccount

它给我404找不到错误。

我缺少什么

1 个答案:

答案 0 :(得分:0)

我生病了答案:
默认情况下,url将在cakephp3中 http://domain/manage/users/register-account