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
| return array( | |
| 'db' => array( | |
| 'driver' => 'Pdo', | |
| 'dsn' => 'mysql:dbname=xxx;host=xxx', | |
| 'driver_options' => array( | |
| PDO::MYSQL_ATTR_INIT_COMMAND => 'SET CHARACTER SET \'UTF8\'' | |
| ), | |
| ) | |
| ) |
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
| namespace Yournamespace\Controller; | |
| use DOMPDFModule\View\Model\PdfModel; | |
| use Zend\Mvc\Controller\AbstractActionController; | |
| class PdfController extends AbstractActionController | |
| { | |
| public function testAction() | |
| { | |
| $pdf = new PdfModel(); |
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
| use Zend\Validator\AbstractValidator; | |
| public function onBootstrap($e) | |
| { | |
| $translator = $e->getApplication()->getServiceManager()->get('translator'); | |
| AbstractValidator::setDefaultTranslator($translator); | |
| } |
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
| http://sammarketplace.dev/item/add?category=4 | |
| $this->form->setAttribute('action', $this->url('item/add', array(), array(), true)) | |
| ->prepare(); | |
| <form action="/item/add" method="POST" name="item-add-form" id="item-add-form"> <-- FUCK YOU |
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
| someAction() { | |
| $model = $this->getServiceLocator()->get('my-model'); | |
| } |
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 Haushaltportal\Factory; | |
| use Haushaltportal\Form\SitesFilter; | |
| use Zend\ServiceManager\ServiceLocatorInterface; | |
| use Zend\ServiceManager\FactoryInterface; | |
| use DoctrineORMModule\Stdlib\Hydrator\DoctrineEntity; |
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
| Data: | |
| array(8) { | |
| ["salutation"] => string(4) "Herr" | |
| ["title"] => string(1) "1" | |
| ["firstName"] => string(1) "2" | |
| ["familyName"] => string(1) "3" | |
| ["address"] => string(1) "4" | |
| ["cityCode"] => string(1) "5" | |
| ["city"] => string(1) "6" | |
| ["id"] => string(0) "" |
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 | |
| /** | |
| * @author Manuel Stosic <manuel.stosic@duit.de> | |
| * @copyright 2013 DU-IT GmbH | |
| */ | |
| namespace NotaryRequest\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Doctrine\Common\Collections\Collection; |
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 NotaryRequest\Controller; | |
| use Zend\Mvc\Controller\AbstractActionController; | |
| use Zend\View\Model\ViewModel; | |
| use NotaryRequest\Entity\Request; | |
| use NotaryRequest\Form\CreateRequestUserForm; | |
| class RequestController 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
| public function getServiceConfig() | |
| { | |
| return array( | |
| 'factories' => array( | |
| 'my-model' => function($sm) { | |
| $model = new \My\Model($sm); | |
| return $model; | |
| } | |
| ) | |
| ); |