Commits

David Lukas committed 3dd0ef6

ZF2beta4 update - (events(), plugin managers)

Comments (0)

Files changed (4)

src/DluTwBootstrapDemo/Form/BlockFormInputFilter.php

     public function __construct() {
         //Text
         $this->add(array(
-            'name'          => 'text',
+            'name'          => 'fsOne[text]',
             'required'      => true,
         ));
 
         //Password
         $this->add(array(
-            'name'          => 'password',
+            'name'          => 'fsOne[password]',
             'required'      => true,
         ));
 

view/dlu-tw-bootstrap-demo/demo/form-horizontal-form.phtml

 <?php
 $formDisplayConfig  = array(
-    'text'                  => array(
-        'sizeClass'             => 'span4',
+    'fsOne[text]'               => array(
+        'sizeClass'                 => 'span4',
     ),
-    'password'              => array(
-        'sizeClass'             => 'span3',
+    'fsOne[password]'           => array(
+        'sizeClass'                 => 'span3',
     ),
-    'textarea'              => array(
-        'sizeClass'             => 'span4',
-        'rows'                  => 5,
+    'fsOne[textarea]'           => array(
+        'sizeClass'                 => 'span4',
+        'rows'                      => 5,
     ),
-    'radioInline'           => array(
-        'inline'                => true,
+    'fsTwo[radioInline]'        => array(
+        'inline'                    => true,
     ),
-    'multiCheckboxInline'   => array(
-        'inline'                => true,
+    'fsTwo[multiCheckboxInline]'=> array(
+        'inline'                    => true,
     ),
-    'select'                => array(
-        'size'                  => 1,
+    'select'                    => array(
+        'size'                      => 1,
     ),
-    'multiSelect'           => array(
-        'size'                  => 3,
+    'multiSelect'               => array(
+        'size'                      => 3,
     )
 );
 $formType   = \DluTwBootstrap\Form\Util::FORM_TYPE_HORIZONTAL;

view/dlu-tw-bootstrap-demo/demo/form-vertical-form.phtml

 <?php
 $formDisplayConfig  = array(
-    'text'                  => array(
-        'sizeClass'             => 'span4',
+    'fsOne[text]'                   => array(
+        'sizeClass'                     => 'span4',
     ),
-    'password'              => array(
-        'sizeClass'             => 'span3',
+    'fsOne[password]'              => array(
+        'sizeClass'                     => 'span3',
     ),
-    'textarea'              => array(
-        'sizeClass'             => 'span4',
-        'rows'                  => 5,
+    'fsOne[textarea]'              => array(
+        'sizeClass'                     => 'span4',
+        'rows'                          => 5,
     ),
-    'radioInline'           => array(
-        'inline'                => true,
+    'fsTwo[radioInline]'           => array(
+        'inline'                        => true,
     ),
-    'multiCheckboxInline'   => array(
-        'inline'                => true,
+    'fsTwo[multiCheckboxInline]'    => array(
+        'inline'                        => true,
     ),
-    'select'                => array(
-        'size'                  => 1,
+    'select'                        => array(
+        'size'                          => 1,
     ),
-    'multiSelect'           => array(
-        'size'                  => 3,
+    'multiSelect'                   => array(
+        'size'                          => 3,
     )
 );
 $formType   = \DluTwBootstrap\Form\Util::FORM_TYPE_VERTICAL;

view/layout/layouttwb-demo.phtml

         <?php
             //Set up the brand link
             $brandLink  = new \Zend\Navigation\Page\Mvc();
-            $brandLink->setController('tw-bootstrap-demo');
-            $brandLink->setAction('index');
+            $brandLink->setRoute('twBootstrapDemo');
             $brandLink->setLabel('DluTwBootstrap Demo');
             echo $this->navigation()->twbNavbar()->renderNavbar($this->navbar, null, null,
                                                                 $brandLink, null, true, false, true, true);