Zend Framework help
You will get useful hints for developing your application with Zend Framework
How to Reset all the values in Zend Form After Submit
We can use the reset function to clear all the values in Zend Form
Ex: $formObt->reset();
How to change Zend DB fetchAll() result Array to Object
For that we need to use the setFetchMode function.
Ex: $stmt = $db->query('SELECT * FROM user');
$stmt->setFetchMode(Zend_Db::FETCH_OBJ);
$objs = $stmt->fetchAll();
How to to check mail delivery in Zend Framework
$mail = new Zend_Mail();
$mail->setBodyText('This is my test message');
$mail->setFrom('info@cochinhub.com', 'From Name');
$mail->addTo('sales@cochinhub.com', 'To Name');
$mail->setSubject('Add subject here');
try {
$mail->send();
}catch (Zend_Exception $e){
echo $e->getMessage();
}
How to connect MYSQL Database using Zend Framework
require_once 'Zend/Db.php';
$dbConnect = Zend_Db::factory("MYSQLI",
array(
"host" => "localhost",
"dbname" => "my_db",
"username" => "dbUserName",
"password" => "dbPassword")
);
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)