在此服务器上找不到请求的 URL /index.php/blog/scaffolding/add

发布于 2024-08-29 07:05:06 字数 546 浏览 8 评论 0 原文

我是 Codeigniter 的新手,我正在观看 Codeigniter 的视频博客教程,但是当我使用脚手架并尝试添加一些东西时,请给我这样的按摩。

<?php
class Blog extends Controller {

   function Blog()
  {
    parent::Controller();

    $this->load->scaffolding('entries');
}

function index()
{
    $data['title'] = "This is my title of the page";
    $data['heading'] = "This is my heading of page";
    $data['todo'] = array("First Name: waliullah", "Last Name: Masud", "Full Name: Waliullah Masud");

    $this->load->view('blog_view', $data);
}

}

?>

I am new in Codeigniter i am seeing the Video blog tutorials from Codeigniter but when i am useing scaffolding and try to add something give me like this massage.

<?php
class Blog extends Controller {

   function Blog()
  {
    parent::Controller();

    $this->load->scaffolding('entries');
}

function index()
{
    $data['title'] = "This is my title of the page";
    $data['heading'] = "This is my heading of page";
    $data['todo'] = array("First Name: waliullah", "Last Name: Masud", "Full Name: Waliullah Masud");

    $this->load->view('blog_view', $data);
}

}

?>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

椵侞 2024-09-05 07:05:06

这个问题没有好的答案。脚手架是旧的、蹩脚的并且已被弃用,不应该在应用程序中使用。一般情况下不应该使用它!

来自 Rails 的人经常看到 Scaffolding 并对其感到“书呆子”,但说实话,它只是为那些没有 MySQL 客户端的人提供的临时开发工具。

脚手架已被弃用很长一段时间,从 CodeIgniter 2.0 开始,它根本不存在。因此,即使你成功了,你的应用程序也从根本上注定是失败的。

最好尝试别的东西!

There is no good answer to this question. Scaffolding is old, crappy and deprecated and should not be used in an application. It just generally should not be used!

People coming from Rails often see Scaffolding and get a "nerd-on" over it, but to be honest it is just a temporary developer tool for those who do not have a MySQL client.

Scaffolding has been deprecated for a long time and as of CodeIgniter 2.0 it will not exist at all. Therefore even if you got it working, your application would be fundamentally doomed.

Best to try something else!

熊抱啵儿 2024-09-05 07:05:06

菲尔是对的,正如我从文档中回忆的那样,他们甚至声明它只是一个开发工具,并不意味着在您的网站上实际实现。这只是在开发时将数据粘贴到数据库中的半心半意的尝试 - 您最好花时间使用数据库类 http://codeigniter.com/user_guide/database/index.html 并学习如何做您需要的事情!

Phil is right, and as I recall from the documentation, they even state that its a development tool only and is NOT meant for real-world implementation on your site. Its just a half-hearted attempt to stick data into your db while developing - you'd be better off spending time with the database class http://codeigniter.com/user_guide/database/index.html and learning how to do what you need!

你在看孤独的风景 2024-09-05 07:05:06

您使用的工具是开发工具,不能用于现实世界的实施。由于这个特殊原因,您面临此类错误。

the tool you are using is a development tool and it can't be used for real world implementation. because of this particular reason you are facing such type of errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文