public function crear_carpeta()
 {
     View::select(null, "json");
     $nueva_carpeta = new Carpeta();
     $carpeta_data = new CarpetaData();
     $carpeta = json_decode(Input::post("carpeta"));
     /*aqui crea la carpeta*/
     if ($nueva_carpeta->nueva_carpeta($carpeta[0]->nombre_carpeta)) {
         $id = $nueva_carpeta->ultimo_id();
         $result = $carpeta_data->ingresar_a_carpeta($id, $carpeta);
         if (is_array($result)) {
             $this->data = array("error" => $result);
         } else {
             $this->data = array("correcto" => $nueva_carpeta->get_carpetas_by_user_id(Auth::get("id")));
         }
     } else {
         $this->data = false;
     }
 }