I am creating a module and inside my module.php file, I created a variable named $content
, which I wanted to use later as reference to get values from an associative array.
Getting the values from the array was working fine, but at the same time, I was seeing in the output of my module the value of the $content variable.
I realized that whenever I use a variable named $content
inside a module, Joomla var_dumps the value of this variable;
Anyone has any clue about this behavior? Is the $content
name somehow reserved - or has any other special purpose?