19 lines
405 B
PHP
19 lines
405 B
PHP
<?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);
|
|
}
|
|
|
|
}
|