Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- class Events extends Zend_Db_Table_Abstract {
- public function getMonths($month=null, $year=null) {
- //...
- $select = $this->select()
- ->join('calendar_event_types','calendar_event_types.id = calendar_events.id', 'name')
- ->where('uid = ?', AppUser::getInstance()->getUID())
- ->where('tstamp >= ?', $startDate->get('YYYY-MM-dd HH:mm:00'))
- ->where('tstamp <= ?', $endDate->get('YYYY-MM-dd HH:mm:00'))
- ->order('tstamp ASC');
- Zend_Debug::dump($select->__toString());
- $rows = $this->fetchAll($select);
- //...
- return $data;
- }
- }
Add Comment
Please, Sign In to add comment