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 | |
$this->form->prepare(); | |
echo $this->form()->openTag($this->form); | |
echo $this->formRow($this->form->get('user')->get('name')); | |
echo $this->formRow($this->form->get('user')->get('email')); | |
echo $this->formRow($this->form->get('user')->get('userAddress')->get('street')); | |
echo $this->formRow($this->form->get('user')->get('userAddress')->get('streetNumber')); | |
echo $this->formRow($this->form->get('user')->get('userAddress')->get('zipcode')); | |
echo $this->formRow($this->form->get('user')->get('userAddress')->get('city')); | |
echo $this->formSubmit($this->form->get('submit')); |
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 Helloworld\Form; | |
use Zend\Form\Form; | |
class SignUp extends Form | |
{ | |
public function __construct() | |
{ | |
parent::__construct('signUp'); |
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 Helloworld\Form; | |
use Zend\Form\Fieldset; | |
class UserFieldset extends Fieldset | |
{ | |
public function __construct() | |
{ | |
parent::__construct('user'); |
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 Helloworld\Form; | |
use Zend\Form\Fieldset; | |
class UserAddressFieldset extends Fieldset | |
{ | |
public function __construct() | |
{ | |
parent::__construct('userAddress'); |
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 Helloworld\Entity; | |
class User | |
{ | |
protected $id; | |
protected $email; | |
protected $name; | |
protected $userAddress; |
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 Helloworld\Entity; | |
class UserAddress | |
{ | |
private $street; | |
private $streetNumber; | |
private $zipcode; | |
private $city; |
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 Helloworld\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Zend\View\Model\ViewModel; | |
class IndexController extends AbstractActionController | |
{ | |
public function indexAction() |
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 Helloworld\Form; | |
use Zend\Form\Form; | |
class SignUp extends Form | |
{ | |
public function __construct() | |
{ | |
parent::__construct('signUp'); |
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 Helloworld\Entity; | |
class User | |
{ | |
protected $id; | |
protected $email; | |
protected $name; | |
public function setEmail($email) |
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 Helloworld\Form; | |
use Zend\Form\Fieldset; | |
class UserFieldset extends Fieldset | |
{ | |
public function __construct() | |
{ | |
parent::__construct('user'); |
NewerOlder