I'm learning Zend Framework 2 and I'm trying to connect to ldap using the info here: http://framework.zend.com/manual/2.0/en/modules/zend.authentication.adapter.ldap.html.
This line is returning false: $configReader->fromFile('foo.ini')
Looking into the source Zend\Config\Reader\Ini is_file() is returning false. I've chmoded the entire entire app to 777 just so permissions are not an issue.
I set up a test which you can see here:
app/public/ldapconfig.ini
app/public/isfiletest.php
--- var_dump(is_file('ldapconfig.ini')); (true)
app/module/Foo/src/Foo/Model/ldapconfig.ini
app/module/Foo/src/Foo/Model/Bar.php
--- var_dump(is_file('ldapconfig.ini')); (false)
The last line of the code above is in a public function that is being called by the controller. Any ideas why there is a difference in behavior?