Future King
Future King

Reputation: 3849

Zend Framework : Need All parameters for application.ini

I want to know all the parameters/options which can be used in application.ini file. Is there any list available?

Please help

Upvotes: 2

Views: 1341

Answers (3)

mingos
mingos

Reputation: 24502

You can specify anything you want. For instance, I set my javascript files there:

js.jquery.filename = "/js/jquery.min.js"
js.jquery.offset = 0
js.jqueryui.filename = "/js/jquery-ui.min.js"
js.jqueryui.offset = 1
js.nestedsortable.filename = '/js/jquery.ui.nestedSortable.js'
js.nestedsortable.offset = 2
js.ckeditor.filename = "/js/ckeditor/ckeditor.js"
js.ckeditor.offset = 3

Now, whenever I need to add a javascript file, I do:

$config = Zend_Registry::get('config');
$js = $config['js'];
$this->view->headScript()->offsetSetFile($js['ckeditor']['offset'],$js['ckeditor']['filename']);
$this->view->headScript()->offsetSetFile($js['jquery']['offset'],$js['jquery']['filename']);

Like I said, you can specify any value. Anything you will be accessing often and need to be available globally can and perhaps should be there :).

Upvotes: 2

Teodor Talov
Teodor Talov

Reputation: 1943

@Future King Do this:

$config = Zend_Registry::get('config');
Zend_Debug::dump($config);

That should do it. Let me know if it helps.

Upvotes: 0

hsz
hsz

Reputation: 152206

During loading config in index.php you can store it in Zend_Registry and you can access them when you want.

You can also parse Zend_Config to an array and look, what is inside.

Upvotes: 0

Related Questions