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
'orm_driver_chain' => array( | |
'parameters' => array( | |
'drivers' => array( | |
'application_annotation_driver' => array( | |
'paths' => array( | |
APPLICATION_PATH . '/modules/plugins/Attachments/src/Attachments/Entity', | |
) | |
) | |
) | |
) |
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
public function checkPaths($e) { | |
$response = $e->getTarget()->getResponse(); | |
$return = ''; | |
$errors = array(); | |
// Check directories | |
$checkDirs = array( | |
'Session Save Path' => session_save_path(), | |
'Upload Temp' => ini_get('upload_tmp_dir'), | |
'Search' => APPLICATION_PATH . '/data/Search/', |
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
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotCreatedException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for foo' in /private/var/www/soliant/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:294 | |
Stack trace: | |
#0 /private/var/www/soliant/ZendSkeletonApplication/module/Install/Module.php(23): Zend\ServiceManager\ServiceManager->get('foo') | |
#1 [internal function]: Install\Module->onBootstrap(Object(Zend\Mvc\MvcEvent)) | |
#2 /private/var/www/soliant/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(463): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) | |
#3 /private/var/www/soliant/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('bootstrap', Object(Zend\Mvc\MvcEvent), Array) | |
#4 /private/var/www/soliant/ZendSkeletonApplication |
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
Add to module/Application/config/module.config.php | |
'di' => array( | |
'instance' => array( | |
'alias' => array( | |
'idx' => 'Application\Controller\IndexController' | |
), | |
), | |
), |
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 Singly\Model; | |
use Zend\Http\Client, | |
Zend\Json\Json, | |
Singly\Module; | |
class Singly { | |
public function takelogin($code) { |
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
$navigation = $view->getBroker()->load('navigation')->getPluginLoader(); | |
$navigation->registerPlugin('name', 'module\View\Helper\HelperClass'); |
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
'Zend\Session\SessionManager' => array( | |
'parameters' => array( | |
'saveHandler' => 'Application\Session\SaveHandler\Doctrine', | |
), | |
), |
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
'router' => array( | |
'routes' => array( | |
'default' => array( | |
'type' => 'Zend\Mvc\Router\Http\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
public function infiniteScroll($page) { | |
$view = $this->getServiceLocator()->get('View'); | |
$model = new ViewModel(); | |
$model->setTemplate('scripts/infinite-scroll/main.phtml'); | |
$model->setVariable('page', $page); | |
$model->setOption('has_parent', true); | |
return $view->render($model); | |
} |
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 Db\Form\InputFilter; | |
trait Field | |
{ | |
abstract public function inputFilterInput(); | |
} | |
OlderNewer