Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) inmodule\Album\Module.php on line 25
frameworks, php, zend-framework
Solution
Your code lacks closing bracket at the end. Add `}` at the end of your script, to close `class` block
Problem
I have error on my module.php. I got the code here. I am following the instructions but I don't know where I get it wrong. Please see my code below: ``` <?php namespace Album; class Module { public function getAutoloaderConfig() { return array( 'Zend\Loader\ClassMapAutoloader' => array( __DIR__ . '/autoload_classmap.php', ), 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, ), ), ); } public function getConfig() { return include __DIR__ . '/config/module.config.php'; } ```