Trongate.php line 168
4 months ago
4 months ago
#1
Is it necessary to use EXTR_SKIP in the extract function?
4 months ago
#2
Hi,
Let's assume you have a controller file with the following code:
In the view file, we have the ability to have:
Even though we only passed in one thing (a $data array), we are able to access and use variables of $name and $age. This is only made possible because Trongate.php uses:
Hope this helps.
DC
Let's assume you have a controller file with the following code:
In the view file, we have the ability to have:
Even though we only passed in one thing (a $data array), we are able to access and use variables of $name and $age. This is only made possible because Trongate.php uses:
Hope this helps.
DC