Zend Framework: Application.ini what does resources.view[] = do?

That line triggers bootstrapping of the View resource, see: framework.zend.com/manual/en/zend.applic... it allows you to set a load of options (doctype, encoding etc. ) via. The application. Ini Without that line you will still have a view yes, as the viewRenderer will create a View object on demand when it is first required.

That line triggers bootstrapping of the View resource, see: framework.zend.com/manual/en/zend.applic... it allows you to set a load of options (doctype, encoding etc. ) via. The application.ini. Without that line you will still have a view yes, as the viewRenderer will create a View object on demand when it is first required.

I am actually wondering if ZF is "hardcoded" to recognize that as telling it to trigger the bootstrapping the view resource, cos if I do something like resources. Myresource = it will not do anything right? – jiewmeng Jul 28 '10 at 3:21 It'll map what's in the ini file to the appropriate resource class, so view will map to Zend_Application_Resource_View.

I would imagine using a non-existent thing like myresource will error unless you create an equivalent class yourself. – Tim Fountain Jul 28 '10 at 12:19.

The : resources. View = in ini file is equal to php's empty array: array( 'resources' => array( 'view' => array() // pass empty array of the view options ) ) The Bootstrap checks whether the resources array is null, so if you pass an empty array, you pass no options, but the comparison result is not null, which results in running the view resource, but without any options. To have the same effect, you could do: resources.view.

Enabled = 1 But this sends option enabled to the view resource.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions