This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sxl = new SimpleXMLElement($url, 0, true); | |
$item = $sxl->item[0]; | |
$link = (string) $item->link; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface Installable | |
{ | |
public function install(); | |
} | |
interface Upgradable | |
{ | |
public function upgrade(); | |
} | |
interface ConfigProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function loadModule($moduleName) | |
{ | |
if (!isset($this->loadedModules[$moduleName])) { | |
$class = $moduleName . '\Module'; | |
$module = new $class; | |
$this->runModuleInit($module); | |
$this->mergeModuleConfig($module); | |
$this->loadedModules[$moduleName] = $module; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ------------------------------------------------------------- | |
# Run phpUnit tests for a subset of Zend Framework | |
# ------------------------------------------------------------- | |
# Author: Enrico Zimuel ([email protected]) | |
# ------------------------------------------------------------- | |
ZFPATH="/home/matthew/git/zf-standard/tests" | |
PHP="/home/matthew/svn/phpfarm/inst/bin/php-5.2.17" | |
PHPUNIT="/home/matthew/Downloads/dev/phpunit-3.4/phpunit/phpunit.php" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acl/AclTest.php | |
Amf/AllTests.php | |
Application/AllTests.php | |
Auth/AllTests.php | |
Barcode/AllTests.php | |
Cache/AllTests.php | |
Captcha/AllTests.php | |
CodeGenerator/AllTests.php | |
Config/AllTests.php | |
Console/AllTests.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
array( | |
'default' => array( | |
'type' => 'Segment', | |
'options' => array( | |
'route' => '/[:controller[/:action]]', | |
'constraints' => array( | |
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Guest; | |
use Zend\EventManager\StaticEventManager; | |
class Module | |
{ | |
public function init() | |
{ | |
$events = StaticEventManager::getInstance(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!($env = getenv('APPLICATION_ENV'))) { | |
$env = 'local'; | |
} | |
$glob = glob(__DIR__ . "/config/autoload/config.{global,$env}.php"); |
OlderNewer