我想设置一个basePath对于给定请求的我的Mvc的每个组件都是一样的。我的意思是,当我调用这些方法我想获得相同的结果,可以说'/spam/ham/': echo $this->headLink()->prependStylesheet($this->basePath() . '/styles.css') // $this->basePath() has to be '/spam/ham/'
在Zend框架2用户的相册示例性引导的模型被配置是这样的: <?php
namespace Album;
// Add these import statements:
use Album\Model\Album;
use Album\Model\AlbumTable;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway