Welcome Guest, Not a member yet? Register   Sign In
ok, i know that i have maybe 48 hours working, but now is not working :(
#3

[eluser]vitoco[/eluser]
Creo que te puedo responder en español , asi que comienzo preguntando porque ejecutas run() en el if dentro de la función y no tienes las reglas dentro de la funcion...donde estan las reglas de validacion??

lo segundo es un caso de prueba , en cual de las dos opciones entra?? cual es el problema exacto ?? que condicion no entrega el resultado esperado ?

Code:
function editar__articulo(){ //function para actualizar articulo
    
    if($this->form_validation->run('articulo') == FALSE){ // <-- PORKE AKI ???
    
    $data['titulo'] = "Bienvenido al panel de administracion";
        $data['main_admin'] = "dashboard/editar_articulo";
        $data['categorias'] = $this->modcategorias->listar_categorias();
        $data['articulo'] = $this->modarticulos->_editar($this->input->post('id'));
        $this->load->vars($data);
        $this->load->view('dashboard/main_admin');
        
    }else{
        
        if(!empty($_FILES['userfile']['tmp_name'])){
            
            echo "[removed]alert('with file');[removed]";
            
        }else{
            
            echo "[removed]alert('without file');[removed]";
            
        }
        
        
    } // VALIDACION DE CAMPOS VACIOS
}


Messages In This Thread
ok, i know that i have maybe 48 hours working, but now is not working :( - by El Forum - 03-17-2009, 06:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB