Initial Commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class Zend_View_Helper_Config extends Zend_View_Helper_Abstract
|
||||
{
|
||||
protected $_configService;
|
||||
|
||||
public function config($info = null)
|
||||
{
|
||||
if (null === $this->_configService) {
|
||||
$this->_configService = new App_Service_ConfigManager();
|
||||
}
|
||||
if (null === $info) {
|
||||
return $this;
|
||||
}
|
||||
return $this->_configService->get($info);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user