Exemple #1
0
 /** @param array $params
  * @return string */
 public function css($params)
 {
     $uri = $this->url($params);
     $params['rel'] = "stylesheet";
     $params['type'] = "text/css";
     return Incube_Encoder_HTML::create_tag("link", $params);
 }
Exemple #2
0
 /** @return string */
 public function render()
 {
     //preparation or not
     $this->_prepare();
     $content = "";
     foreach ($this->_elements as $key => $element) {
         $content .= ucfirst($this->_labels->{$key}) . $element->render() . $this->_separator;
     }
     $content .= Incube_Encoder_HTML::create_tag("input", array("type" => "submit", "value" => "ok"));
     //add variable is prepared ?
     return Incube_Encoder_HTML::create_tag("form", $this->_options, $content);
 }