$this->widgetSchema['category_id'] = new sfWidgetFormChoice(array('choices' => Doctrine::getTable('GalleriesCategory')->getChoices() ));
$this->validatorSchema['category_id'] = new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Category'), 'required' => true));
PHP Symfony select
by https://www.google.com/accounts/o8/id?id=AItOawlUhav415SiqzWXfrIOA3bbc44qG4eoAzY,
November 07, 2010 00:33,
1 refactoring, tagged with form, symfony
def self.capture_system(*args)
args = args.flatten.compact.collect { |arg| arg.to_s }
return false if args.blank?
...
Ruby Silencing current output, b...
Is there a shorter way to d...
$('login_email').observe('click', function(event){
element = event.element()
element.value = '';
...
JavaScript Prototype form functions
I'm thinking there's gotta ...
class Asset < ActiveRecord::Base belongs_to :account belongs_to :asset_type ...
Ruby Advanced search form & ...
by Erez Ben Shoham,
March 16, 2009 11:33,
3 refactorings, tagged with search, form, model, named_scope
I have an Asset model in a ...
// form fields
var address = $("#address");
var zip = $("#zip");
...
JavaScript Perform AJAX request when t...
If three fields (address, z...
<?php ob_start(); include_once "include/config.php"; ...
PHP Login / Registration - be e...
by Memf,
December 12, 2008 16:56,
1 refactoring, tagged with form, ajax, script, register, login, registration
be easier?
(login and Re...
//function that loops through the elements
function __validateForm(theform){
...
JavaScript Simple form validator with ...
by eljota,
November 11, 2007 10:32,
5 refactorings, tagged with javascript, js, form, validation, regex
This is a real simple form ...
Symfony