I'm trying to get the result of a query to the view, I'm doing a simple example in this way, but it still does not show the information it has in the controller
controller.php
public function mostrarInfoTienda(){
$prueba="pruebaaaaaaa";
}
and in the seen I call it like this:
$ver = new Controller();
$prueba = $ver -> mostrarInfoTienda();
echo "esta es la variable". $prueba;