예제 #1
0
 public function index($params)
 {
     $pluginKey = $params['pluginKey'];
     $this->initMenu($params);
     $this->addComponent('menu', $this->menu);
     $this->menu->getElement('upload')->setActive(true);
     $form = new UploadImageForm();
     if (!empty($_POST['command']) && $_POST['command'] == 'image-upload') {
         UploadImageForm::process($pluginKey, $params);
     }
     $this->assign('maxSize', OW::getConfig()->getValue('base', 'tf_max_pic_size'));
     $this->addForm($form);
 }