Can't find a class to solve the idea

Source: Internet
Author: User
Cannot find class
In the model, write a class like this
Class debut extends zend_db_table{
Protected $_name = ' debut ';
Protected $_id = ' id ';

Public Function Getinfos () {
$select = $this->_db->select ();
$select->from ($this->_name);
$result = $this->_db->fetchall ($select);
return $result;
}
}
New object Error in action
Error message: Fatal Error:class ' debut ' not found in C:\Users\admin\Zend\workspaces\DefaultWorkspace7\test\application\ controllers\testcontroller.php on line 4
In the compilation environment can find the corresponding class, ask why AH?
------to solve the idea----------------------
You didn't introduce the debut class definition in testcontroller.php.
The possible causes are:
You did not execute your program in the framework
Debut class definition file naming rules that do not conform to framework conventions
The debut class definition file is not in the Frame Convention location

------to solve the idea----------------------
Have you used a namespace for wood?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.