public function run()
 {
     parent::run();
     if (isset($this->post->option)) {
         $this->{$this->post->option}();
     }
     $this->display();
 }
 public function run()
 {
     parent::run();
     if (isset($this->post->option)) {
         $this->{$this->post->option}();
     } else {
         $nombre = $this->get->nombre;
         $cod['repositorio']['nombre'] = $nombre;
         $cod['paquete']['nombre_repositorio'] = $nombre;
         $options["repositorio"]["lvl2"] = "one";
         $options["paquete"]["lvl2"] = "by_repositorio";
         $components['repositorio']['paquete'] = array('p_r');
         $this->orm->connect();
         $this->orm->read_data(array('repositorio', 'paquete'), $options, $cod);
         $repositorio = $this->orm->get_objects("repositorio", $components)[0];
         $this->orm->close();
         $this->engine->assign('repositorio', $repositorio);
     }
     $this->display();
 }
 public function run()
 {
     parent::run();
     if (isset($this->post->option)) {
         $this->{$this->post->option}();
     } else {
         $nombre = $this->get->nombre;
         $nombre_viejo = $this->get->nombre;
         $cod['repositorio']['nombre'] = $nombre;
         //$cod['repositorio']['descripcion'] = $this->post->descripcion;
         $options["repositorio"]["lvl2"] = "one";
         $this->orm->connect();
         $this->orm->read_data(array('repositorio'), $options, $cod);
         $repositorios = $this->orm->get_objects("repositorio");
         $this->orm->close();
         $descripcion = $repositorios[0]->get('descripcion');
         $this->engine->assign('nombre', $nombre);
         $this->engine->assign('descripcion', $descripcion);
         $this->engine->assign('nombre_viejo', $nombre_viejo);
     }
     $this->display();
 }