Skip to main content

Posts

Showing posts from June, 2013

Zend Form with Decorator Class

you have to make some changes in this code according to you need but it wil help you alot.... 1: View: <?php echo $this->food; ?> <?php echo $this->cab; ?> 2:Controller:  public function indexAction(){      $ReimbursermentFood=new Form_Webchutney( array('selectForm' => '__FOOD_REIMBURSEMENT'));   $ReimbursermentCab=new Form_Webchutney( array('selectForm' => '__CAB_REIMBURSEMENT')); $Employeearray=array();       $Employeearray['AccountManager']='Account Manager';   $Employeearray['aktel']=' aktel ';   $Employeearray['saurabh.patel']='saurabh patel';   $ReimbursermentFood->setAction('/user/reimbursement/food');   $ReimbursermentFood->setAttrib("id","foodForm");   $AccountManager = $ReimbursermentFood->getElement('AccountManager');   $AccountManager->setLabel(

Usefull commond for linux server

1: grep -r "aktel" /mnt/*      : find aktel word in all file within /mnt directory 2: ls -al ,vdir,     : list of directory with details 3:awk -F':' '{ print $1}' /etc/passwd list of user 4:  mv -u *.sql.gz /mnt/.backup/2012/sql/ move all file sql.gz(change accourding to your need ) file to your folder ;