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 editAction() | |
| { | |
| $vm = new ViewModel(); | |
| $vm->setTemplate('haushaltportal/ergebnishaushalt/edit.phtml'); | |
| /** | |
| * Service-Manager ansprechen um Objekte zu erhalten | |
| * | |
| * @var $form \Haushaltportal\Form\ErgebnishaushaltProduktForm |
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\Stdlib\Hydrator\Strategy; | |
| use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; | |
| class ProduktbereichStrategy implements StrategyInterface | |
| { | |
| /** | |
| * {@inheritDoc} | |
| */ |
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( | |
| 'invokables' => array( | |
| 'db-class-one' => 'Application\Model\DbOne', | |
| 'db-class-two' => 'Application\Model\DbTwo' | |
| ), | |
| 'factories' => array( | |
| 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory' | |
| ), | |
| 'initializers' => array( function($instance, $sm) { | |
| if ($instance instanceof \Application\Model\DBInterface) { |
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; | |
| } | |
| ) | |
| ); |
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
| <?php | |
| /** | |
| * @author Manuel Stosic <[email protected]> | |
| * @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
| 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 | |
| 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
| 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
| 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 |