sfNiceFormsPlugin - 1.0.1
You are currently browsing
the website for symfony 1
a symfony plugin to implement Niceforms v2.0 from Lucian Slatineanu (http://www.emblematiq.com/lab/niceforms/)
|Terry Tsang||lead||moc.gnastyrret <<ta>> yrret|
Plugin by Terry Tsang (http://www.terrytsang.com)
Niceforms by Lucian Slatineanu is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. In other words, Niceforms is completely free for both personal and commercial use as long as credits remain intact within the source files.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Install the plugin
$ symfony plugin:install sfNiceFormsPlugin
$ symfony plugin:publish-assets
Clear the cache
$ symfony cache:clear
Set the theme
[yml] all: niceforms: theme: "default" # 2 themes available now : "default" & "custom"
Declare the helper
<?php use_helper('niceForms'); ?>
To implement niceform form tag
<?php echo niceforms_form_tag('module/action', array('id' => 'myform', 'name' => 'myform')) ?>
Open the default.psd in sfNiceFormsPlugin/web/images folder, design the field elements base on your need
Click File -> Save For Web & Devices, choose PNG-24, click 'Save' and select file type as 'HTML and Images'
Replace all identical png files into sfNiceFormsPlugin/web/images/custom/ and you can use your own custom theme now by setting app.yml theme option to 'custom'. Cheers!