我试图创建一个 Zend Framework 自定义提供程序,在这里:
if($module == 'default'){
$modelsPath = dirname(__FILE__) . '/../application/models';
$filePath = realpath($modelsPath) . '/' . $name . '.php';
} else
if(!$module == ''){
$modelsPath = dirname(__FILE__) . '/../application/' . $module . '/models';
$filePath = realpath($modelsPath) . '/' . $name . '.php';
} else {
die('Please enter a module!');
}
当我试图创建文件的路径并且它的默认模块一切正常时,但对于 ex。无论真实路径返回什么,模块都是另一个词?!错误在哪里?