Skip to content

Instantly share code, notes, and snippets.

View tournasdim's full-sized avatar
🎯
Focusing

Tournas Dimitrios tournasdim

🎯
Focusing
View GitHub Profile
<?php
namespace Helloworld\Form;
use Zend\Form\Fieldset;
class UserAddressFieldset extends Fieldset
{
public function __construct()
{
parent::__construct('userAddress');
@tournasdim
tournasdim / gist:9996886
Created April 5, 2014 19:30 — forked from michael-romer/gist:3923106
Controller using Form
<?php
namespace Helloworld\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class IndexController extends AbstractActionController
{
public function indexAction()
/* Start by setting display:none to make this hidden.
Then we position it in relation to the viewport window
with position:fixed. Width, height, top and left speak
speak for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
.modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;