Czy moge np dodac jakąs stała w configu którą będe potem mógł używać w kontrolerach?
np adres strony / tytuł
$config = new Zend_Config(require 'config.php');
<?php return ( 'adres' => 'www.example.com', 'tytul' => 'secret', );
protected function _initAutoload() { $config = new Zend_Config(require 'configs/config.php');
$config = new Zend_Config(require '../application/configs/config.php');
protected function _initAutoload() { $config = new Zend_Config(require 'configs/config.php'); Zend_Registry::set('config', $config);
$config = Zend_Registry::get('config');
<?php class Config extends Zend_Config_Ini { { $instance = new Config; } return $instance; } function __construct() { parent::__construct('../plik.ini','sekcja'); } }
Config::get()->jakas_zmienna
Fatal error: Class 'Config_Navigation' not found in C:\wamp\www\zend_quickstart\application\modules\admin\controllers\IndexController.php on line 14