Revize 143
Přidáno uživatelem Michal Kliment před více než 15 roky(ů)
freenetis/trunk/kohana/application/libraries/Table_Form.php | ||
---|---|---|
<?php
|
||
class Table_Form {
|
||
protected $method, $form_def, $form_val;
|
||
protected $uri, $method, $form_def, $form_val;
|
||
public $view;
|
||
|
||
public function __construct($method, $form_def, $view=NULL) {
|
||
public function __construct($uri=NULL,$method, $form_def, $view=NULL) {
|
||
if (isset($view)) $this->view=$view;
|
||
else $this->view=new View('table_form');
|
||
else $this->view=new View('table_form');
|
||
$this->view->uri = $uri;
|
||
$this->view->form_def=$this->form_def=$form_def;
|
||
$this->view->method=$this->method=$method;
|
||
$this->view->form_val=$this->form_val=$this->values();
|
||
... | ... | |
}
|
||
|
||
}
|
||
?>
|
||
?>
|
Také k dispozici: Unified diff
Jeste jsem zapomnel na upravu komponenty Table_Form - nyni ma jako prvni
argument uri vysledneho formulare.