I have a view that is called by a master page
, the problem is that I pass a array
and the second page called, but the data does not arrive as expected.
ex.
//controller index
class Index{
public function index(){
$data = array(
'conteudo'=>'index/index', 'teste'=>'teste'
);
$this->view('template', $data);
}
}
//Página view template
$this->view($conteudo);
//segunda view "index/index"
echo $teste <<<< (esta variavel retorna vazia)