Exemplo n.º 1
0
 public function cropAction()
 {
     if ($this->auth->hasIdentity()) {
         $crop = new Application_Model_Images($this->registry['DB']);
         $imageid = $this->getRequest()->getParam('imageid');
         $type = $this->getRequest()->getParam('type');
         $this->view->type = $type;
         if ($type == 'propic') {
             $this->view->init = '1/1';
         } else {
             $this->view->init = '2/1';
         }
         $this->view->results = $crop->crop($imageid);
         $this->view->mydetails = $this->authIdentity;
     }
 }