Exemplo n.º 1
0
 function formOrder($entity = null)
 {
     //throw new \Exception('test');
     $form_attr = array('method' => 'POST', 'action' => 'order?' . Sokol::getRequest()->getQueryString());
     $input_attr = array('style' => 'width:50px;');
     $submit_attr = array();
     return self::form(self::input_hidden('id', $entity->getId()) . self::input_text('order', $entity->getOrder(), $input_attr) . self::input_submit('submit', 'OK', $submit_attr), $form_attr);
 }
Exemplo n.º 2
0
 protected function getTmplName()
 {
     return Sokol::getCom()->name . '/' . Sokol::getController()->name . '/' . Sokol::getRequest()->get('_action') . '.tpl';
 }
Exemplo n.º 3
0
 public function getRequest()
 {
     return Sokol::getRequest();
 }