ZF-6339: Invalid statement in example - Sample View resource configuration (4.7)

Issue Type: Docs: Problem Created: 2009-04-19T05:30:39.000+0000 Last Updated: 2009-04-20T08:35:23.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Chris MacPherson (chrismacp) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Application

Related issues: Attachments:


The example Sample View resource configuration (4.7) contains an incorrect statement.

resources.view.basePath = APPLICATION_PATH "/views/scripts"

The statement is missing a period bwtween APPLICATION_PATH and "/views/scripts" like the example below.

resources.view.basePath = APPLICATION_PATH . "/views/scripts"


Posted by Mickael Perraud (mikaelkael) on 2009-04-19T05:41:37.000+0000

Fixed in SVN 15010

Posted by Matthew Weier O'Phinney (matthew) on 2009-04-20T05:24:14.000+0000

Mickael, please revert the change.

When constants are used in configuration files, they create an implied concatenation. The original as correct.

Posted by Chris MacPherson (chrismacp) on 2009-04-20T05:35:27.000+0000

In example 4.2, earlier on in the same page it uses a period after the constant. I was baseing my issue upone that. I think one of them must be wrong here?

resources.frontController.controllerDirectory = APPLICATION_PATH . "/controllers"

Posted by Mickael Perraud (mikaelkael) on 2009-04-20T08:35:21.000+0000

Reverted in SVN 15031

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.