I put this as an example of what I want to do:
public function imagenPerfilusuarioController(){
if(isset($_POST['btnmodimgu'])){
$respuestaver=Datos::verimagenPerfilusuarioModel($datosController,"usuarios");
if (isset($respuestaver['img_perfil_usuario'])) {
$rutaimgv=$respuestaver['img_perfil_usuario'];
unlink($rutaimgv);
}
}
}
In that function I want to remove the variable $ rutaimgv, to show it in the view, like the step up there?
in the view I call this function like this:
$modificar = new Controller();
$modificar -> imagenPerfilusuarioController();