Hi, I have recently stumbled upon the lithium framework, I don’t really have much experience with frameworks and my skill level with php is mid level. I found this code in the home.html.php file in the views folder, I was hoping someone can explain how this array structure works. basically its
$sanityChecks = array(
'resourcesWritable' => function() use ($notify) {
//bunch of more code here
},
'database' => function() use ($notify) {
//bunch of more code here
},
//etc....
I understand that resourcesWritable and database are the KEY in the associative array but I don’t really understand what the function() use ($notify) part is.
thanks to anyone who can help