Example #1
0
 function render_html_onStart()
 {
     $attributes = array();
     $attributes['id'] = $this->getId();
     if (!is_null($this->getAttribute('action'))) {
         $attributes['action'] = $this->getAttribute('action');
     } else {
         $removeValues = $this->getAttribute('removeGetValues');
         if ($removeValues === true || $removeValues == 'true') {
             $attributes['action'] = org_glizy_Routing::scriptUrl(true);
         } else {
             $attributes['action'] = org_glizy_helpers_Link::removeParams(explode(',', $removeValues));
         }
     }
     $attributes['method'] = $this->getAttribute('method');
     $attributes['onsubmit'] = $this->getAttribute('onsubmit');
     $attributes['class'] = $this->getAttribute('cssClass');
     $attributes['enctype'] = $this->getAttribute('enctype');
     $output = '<form ' . $this->_renderAttributes($attributes) . '>';
     if ($this->getAttribute('fieldset')) {
         $output .= '<fieldset>';
     }
     // $output .= org_glizy_helpers_Html::applyItemTemplate('',
     // 				org_glizy_helpers_Html::hidden($this->getId().'_command', $this->getAttribute('command') ),
     // 				true );
     $this->addOutputCode($output);
 }
Example #2
0
 static function getAllAsArray()
 {
     return org_glizy_Routing::_getValuesArray();
 }
Example #3
0
 function _initRequest()
 {
     org_glizy_Routing::init();
     org_glizy_Routing::_parseUrl();
     org_glizy_Request::init();
     if ($this->siteMap) {
         // gli alias del SiteMap devono essere risolti dopo il routing
         // perché utilizza il Routing per generare l'URL
         $this->siteMap->resolveAlias();
     }
 }