ZF introduces file issues
This is the controller.
Require_once application_path. ' phperror_config.php ';
Require_once Application_path. ' /models/admin.php ';
Class Admincontroller extends Zend_controller_action
{
Public Function init ()
{
/* Initialize Action Controller Here */
}
Skip to login screen
Public Function indexaction () {
}
Implement check-in function
Public Function loginaction () {
$name = $this->getrequest ()->getparam (' AdminName ');//Use the Zend method to fetch the variables in the interface
$password = $this->getrequest ()->getparam (' AdminPassword ');
Create a table model object
$adminModel =new Admin ();
Print_r ($name);
Exit ();
This is a table model.
Class Admin extends Zend_db_table {
Protected $_name= "admin";
protected $_primary= "id";
Problem in the creation of unsuccessful table model, once added require_once interface can not see is blank, or is an application error, I just self-taught this framework, do not understand Ah, ask the hero pointing
Zend File Introduction Table Model
Share to:
------Solution--------------------
See for yourself if your top require_once is missing a symbol.