Zend Framework Database: Inputing Data to DatabaseTag: framework, zend, zend framework, database, input Category: PHP Frameworkpost: 12 Apr 2008 read: 2,906 Zend Framework Database Step By Step Tutorial - Part 3: After create form, now, we create action to input data to database. For this job, open "UserController.php" within application/controllers. Add a method named "processAction", with following code:
It is simple to understand it, isn't it? Next, create view for this processAction. create a file named "process.phtml" within application/views/scripts/user . Enter following code:
Now, point your browser to http://localhost:8050/test/zend/helloworld/web_root/user/register. Then, enter a user information such as:
Click registration button. You will get like this:
|
| | Give Your Opinion | Recommend |
|
1 Responses to Zend Framework Database: Inputing Data to Database:
Hi,
I'm copying the information from your tutorials.
I'm on Zend Framework Database: Inputing Data to Database.
But I get this error:
Fatal error: Class 'Zend_Db_Adapter_Pdo_Mysql' not found in /home/lukechaf/public_html/application/controllers/UserController.php on line 29
Any ideas?
I'm copying the information from your tutorials.
I'm on Zend Framework Database: Inputing Data to Database.
But I get this error:
Fatal error: Class 'Zend_Db_Adapter_Pdo_Mysql' not found in /home/lukechaf/public_html/application/controllers/UserController.php on line 29
Any ideas?
By dave on Apr 29, 2008




