Zend Common Code
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
//Flash Message
$this->_helper->flashMessenger->addMessage(array(
'message' => array('Customer has been removed from Blacklist.' => 'success')
));
//GET
$this->getRequest()->getParam('email');
//Set No View
$this->_helper->viewRenderer->setnoRender();
// NULL if not blacklisted, row if present. Not sure if FALSE is returned on DB_ERROR.
$sql = $this->select()
->from($this->_name)
->where($this->getAdapter()->quoteInto("active = ?", $active));
$result = $this->fetchRow($sql);
if (!Commonfunctions::isNullOrEmpty($result) && $result['aba'] == $active) {
return TRUE;
}
return FALSE;
}
$query = $this->db->select()
->from('Table1', array('id', 'description'))
->join(array('v' => 'Table2'), 'v.id = Table1.col1', array('col2'))
->where($this->getAdapter()->quoteInto("Table.id IN (?)", $arr));
//
$query = $db->update('table', array('countColumn' => new Zend_Db_Expr('countColumn + 1')), 'id = 28');
//short Form
$Model->delete('id=2');
$data = $Model->fetchRow('id=2');