This file contains hidden or 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
angular.module('app') | |
.controller('IndexCtrl', function ($scope){ | |
$scope.navigate('http://host-api/index'); | |
}); |
This file contains hidden or 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 Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
class PersonController extends AbstractActionController{ | |
public function searchAction(){ | |
$term = $this->params()->fromQuery('term', ''); | |
$qb = $this | |
->getServiceLocator() |
This file contains hidden or 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 Application\DoctrineFunction; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
class DateDiff extends FunctionNode { | |
/* | |
* holds the timestamp of the DATE_FORMAT DQL statement |
This file contains hidden or 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 Application; | |
use Zend\Mvc\MvcEvent; | |
class Module{ | |
public function onBootstrap(MvcEvent $e) { | |
$sm = $e->getApplication()->getServiceManager(); | |
// Add ACL information to the Navigation view helper | |
$authorize = $sm->get('BjyAuthorizeServiceAuthorize'); |
This file contains hidden or 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 Application; | |
class Module{ | |
public function getViewHelperConfig() { | |
return array( | |
'factories' => array( | |
'myHelper' => function($sm){ |
This file contains hidden or 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 Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Application\Form\MyForm; | |
class MyController extends AbstractActionController { | |
This file contains hidden or 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 Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
class ExampleController extends AbstractActionController{ | |
public function indexAction() { | |
$config = $this->getServiceLocator()->get('Config'); | |
$example = $config['example']; |
This file contains hidden or 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 Application\Hydrator; | |
use DoctrineModule\Stdlib\Hydrator\DoctrineObject; | |
class DateHydrator extends DoctrineObject { | |
protected function handleTypeConversions($value, $typeOfField) { | |
if ($typeOfField == 'date') { |
This file contains hidden or 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 Application\View\Helper; | |
//use Zend\View\Helper\AbstractHelper; | |
use Zend\Form\View\Helper\AbstractHelper; | |
use Zend\Form\Form; | |
class RenderForm extends AbstractHelper { |
NewerOlder