Generally when I use Zend_Config_Ini, I dump the whole thing to an array and save that array in session. Now, I also needed to be able to use constants in my INI file but Zend_Config_Ini does not seem to support this. I also worked with a JAVA team and decided to adopt their standard of [...]
Nov 012011
So I need an array representation of a PHP object full of getter methods. I was too lazy to really go and build an array by typing all the protected properties out, so I opted for this little trick: $paging = array(); $reflection = new ReflectionClass($this); foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { if (substr($method->name,0,3) == ‘get’) [...]
