silvester / reverseform Goto Github PK
View Code? Open in Web Editor NEWRendering ZF2 forms with viewscripts. It can be extended to render with other frameworks then Twitter Bootstrap.
Rendering ZF2 forms with viewscripts. It can be extended to render with other frameworks then Twitter Bootstrap.
Hi I want to overwrite inlineJsConfig from module.config.php file in my controller.
Basicaly what i want to do is to overwrite some options:
'ReverseForm\Element\GoogleMap' => array(
'js' => array(
'https://maps.google.com/maps/api/js?sensor=false®ion=SI'
),
'template' => 'googlemap.phtml',
'inlineJs' => "var map = new google.maps.Map(document.getElementById('%1$s'), %2$s);\n$('#%1$s').data('map', map);\n",
'inlineJsConfig' => array(
'zoom' => 8,
'mapTypeId' => new \Zend\Json\Expr('google.maps.MapTypeId.ROADMAP'),
'center' => new \Zend\Json\Expr('new google.maps.LatLng(46.15, 14.9)')
)
)
here i want to overwrite 'zoom' and 'center' and also to add new vars in my controller. Can you help me with a hint or a piece of code?
Ok for text field but not ok for textare field http://i.imgur.com/n2pgovR.png
Hi,
I install it, and almost it works, I only had to do add the slash "" before the path to the "ReverseForm":
$form = new \ReverseForm\Form\TestForm();
But the jQuery isn't loading because I don't have it installed yet in my vendor folder. I'm wondering how to add the jquery to the vendor folder with the same structure you did or I have to do it manually?
Thanks
Is it compatible with ZF3?
Hi. A composer would be nice
instead of putting it to module.config.php you can move all closures into Module.php or seperate Factory class which implements FactoryInterface.
in that case application with your module will be able to cache configuration and factories with closures will be loaded in your Module.php
Warning: Invalid argument supplied for foreach() in vendor/silvester/reverse- form/view/element/bootstrap/checkbox.phtml on line 24
My element annotations
/**
*
* @Annotation\Type("Zend\Form\Element\Checkbox")
* @Annotation\Options({"label":"Remember Me ?:"})
*
*/
public $rememberme;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.