Skip to content

Instantly share code, notes, and snippets.

View alexander-torosh's full-sized avatar

Alexander Torosh alexander-torosh

View GitHub Profile
<?php
class Application_Form_Users extends Zend_Form
{
public function init()
{
$this->setName('users');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
<?php
class UsersController extends Np_CustomController
{
public function listAction()
{
$db = Zend_Db_Table::getDefaultAdapter();
$select = $db->select()
->from(array('Users' => 'users'));