I looked up the topics around, but I didn't see something for my case.
So, I have controller filled up with methods, and a construcor which loads the models that i commonly use in this specific controller.
Everything works fine.
I needed to set an array in the constructor like
$data["content"]["something"] = "bla bla";
Thats all. So I pass the $data["content"] to the view loader, and I'm expecting to have access to
$something
, but no. It takes it as undefined variable, but why? When I put it in the specific method everything works fine, but when it is in the constructor it says undefined. Any ideas? Thank you! :)