how does this line function: require_once('Zend/Registry.php');? -
i have installed zend framework 2(zend framework + zend server) on win 7. in zend/apache2/htdocs/hello1.php
, put below script:
<?php require_once('zend/registry.php'); $registry = zend_registry::getinstance(); $registry['name'] = 'quentin zervaas'; echo sprintf('my name %s', $registry['name']); ?>
then run http://localhost/hello1.php
, shows: name quentin zervaas
my question is: line require_once('zend/registry.php');
under htdocs folder, dummy.php, favicon.ico, index.html,hello1.php, there no zend folder, how line function?
in php.ini check
include_path
it have default location of zend directory.
Comments
Post a Comment