public function execute() { $id = filter_input(INPUT_GET, 'id'); $config = $this->getConfig(); $tipoDocumento = new tipoDocumentoTable($config); $this->objTipoDocumento = $tipoDocumento->getById($id); $this->defineView('tipoDocumento', 'ver', 'html'); }
public function execute() { $config = $this->getConfig(); $tipoDocumento = new tipoDocumentoTable($config); $this->objTipoDocumento = $tipoDocumento->getAll(); // así declaramos la vista a usar $this->defineView('tipoDocumento', 'index', 'html'); }
public function execute() { $config = $this->getConfig(); $formTipoDocumento = filter_input_array(INPUT_POST)['tipoDocumento']; //validaciones $tipoDocumento = new tipoDocumentoTable($config); $tipoDocumento->setDescripcion($formTipoDocumento['descripcion']); $this->objTipoDocumento = $tipoDocumento->update(); header('Location: ' . $config->getUrl() . 'index.php/tipoDocumento/index'); }
public function execute() { $id = filter_input(INPUT_POST, 'id'); $config = $this->getConfig(); $tipoDocumento = new tipoDocumentoTable($config); $tipoDocumento->setId($id); $this->objTipoDocumento = $tipoDocumento->delete(); $variables = array('data' => array('code' => 200)); $this->defineView('tipoDocumento', 'eliminar', $variables, 'json'); }
public function execute() { $id = filter_input(INPUT_GET, 'id'); $config = $this->getConfig(); $tipoDocumento = new tipoDocumentoTable($config); // $variables = array( // 'objImplemento' => $objImplemento // ); $this->objTipoDocumento = $tipoDocumento->getAll(); $this->defineView('tipoDocumento', 'editar', 'html'); }