creating grid like forms in zend framework - php

I want to create a form similar to drupal's permissions form (http://i.stack.imgur.com/qJunz.jpg) using zend framework. any tips to create this using zend Decorators?

This is a very good explanation from the creator of Zend_Form , he also discusses how to use td,tr html tags to create grid
http://devzone.zend.com/article/3450

Related

Front-end user input purification?

Does Bolt have any built-in data purification?
I have several front-end forms which create content type records on the back-end. These are then later output to the front-end of the website. I was wondering whether Bolt had any built in parsers I could use to purify the input?
If not I will add HTML Purifier to my extension processing the forms.
Cheers.
I have only touched lightly on this myself and someone might have a better idea. But Bolt bundles Symfony Forms, so you can use the functionality provided there.
How it's done in the SimpleForms extension is a good starting place.
That depends on how you work with your forms.
Bolt uses twig, and twig has some builtin stuff to cleanup the input, like {{ var|escape }}. http://twig.sensiolabs.org/
You can build an extension that provides the forms, and in that extension you can use all of the validation methods in the symfony form components or whatever you throw at it in php before you store the form values. But you need to configure it all yourself.
If you use the simpleforms extension most of that will be done for you. In that case some filtering is done on the form input, but what happens with it will be up to you again.
If you just create some plain forms in HTML and add those to your template or content there is no filtering, and you need to do that (serverside) in the script that handles the form.

Zend_Navigation vs Zend Layout

Hi I am new to Zend Framework and using version 1.12 to start with. I am trying to build my first site and dont know which direction to take.
I have an HTML template that I set as my Zend Layout and the navigation menu has link structured in a
Should I just create my site structure by assigning links in the layout or use Zend Navigation.
What are the benefits of using Zend Navigation? At this point it seems much simpler to adapt the HTML to go to the controller/action than trying to format the menu created from zend navigation with css.
You can create an xml file with your structure so it'll be easy to edit and keep track of. It'll add the class .active automatically to your li's. You'll have a cleaner layout script.
I mainly use it with my ACL. There is probably more reasons.

How to add custom form element fckeditor in zend framework

I want to use fckeditor in my website using zend framework.
Can any one explain how can we add custom form elements with zend framework ?
It is not the "good practice" here - to give a link, but I don't think this question can be answered better without copy-paste:
http://www.leftcolumn.net/2009/03/10/zend-framework-how-to-add-fckeditor-to-a-zend_form/
http://www.zfsnippets.com/snippets/view/id/55
ps: I'm curious, why did not you google for first http://www.google.ru/search?q=zend+form+fckeditor+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ru:official&client=firefox ?

formvalidation with php and javascript/jquery?

im new in formavalidation.
i am wondering if there is some library class you can download and include and then use for formvalidation in php and also in javascript/jquery?
it would save a lot of time so you dont have to reinvent the wheel.
thanks a lot in advance!
I like using Zend_Form for form validation, but it does not integrate with jQuery AFAIK.
EDIT: the folllowing SO question may be what you are looking for : Zend Framework form with jquery

Any VCARD generator class for Zend framework?

Hi guys I need a class to generate vcards - something that I can use with the Zend Framework - nothing too flashy. Thanks again...
there is vcardphp on sourceforge.net (for php in general), should'nt be hard to make into a Zend module.
And also http://www.bitfolge.de/index.php?l=en&s=phpvcard.
I have used both for various projects.
There is a new proposal for a Zend_Vcard component.
The current code lives here:
http://code.google.com/p/zendvcard/

Categories