0
我有一个CakePHP的项目放在无功/ www/html等/管理/4o4在CakePHP的控制器未发现
管理文件夹包含(在LS)
CONTRIBUTING.md app build.xml email index.php plugins
README.md build.properties composer.json email.zip lib vendors
它给我错误,这是好的
!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>
<?php
class Controller extends AppController {
我有一个控制器放在应用程序/ Controlle R/
然而,当我尝试做
http://domain/manage/users/registerAccount
它给了我404未找到错误。
我缺少什么
应该有一个更详细的错误输出。另外,如果给404,你的debug可能会在app.php中设置为false。奥雷塞斯,你会得到一个更详细的错误。如果你有一个带有registerAccount方法的UsersController,默认的URL将是users/register-account – Tolga
@Tolga的URL是正确的,我复制了代码 –
你是什么意思这是正确的?如果你没有为http:// domain/manage/users/registerAccount设置upa自定义路由,那么它是不正确的 – Tolga