$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

Symfony

55502f40dc8b7c769880b10874abc9d0 Talk
def self.capture_system(*args)
  args = args.flatten.compact.collect { |arg| arg.to_s }
  return false if args.blank?
...

Ruby Silencing current output, b...

by k776, February 03, 2010 02:34, No refactoring, tagged with form, output, process, exec, system

Is there a shorter way to d...

74198b06bc9e68739debfe6c23e070d3 Talk
$('login_email').observe('click', function(event){    
      element = event.element()
      element.value = '';
...

JavaScript Prototype form functions

by ttdavett.myopenid.com, March 27, 2009 00:12, 5 refactorings, tagged with form, prototype, login

I'm thinking there's gotta ...

F677fa685a2cfe8aff31f161062db3d3 Talk
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 ...

30bcacccb1c7fa2b577b905a2128027f Talk
// form fields  
  var address = $("#address");
  var zip = $("#zip");
...

JavaScript Perform AJAX request when t...

by Chris, February 16, 2009 06:49, 1 refactoring, tagged with form, ajax, jquery, validate

If three fields (address, z...

5d7c8b8f2de06c07b2bf0848d20ce71f Talk
include Form::Elements

...

Ruby Closure scoping issue

by Tj Holowaychuk, January 09, 2009 20:14, 5 refactorings, tagged with form

Below is the syntax I would...

F1e3ab214a976a39cfd713bc93deb10f Talk
<?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...

71367d98df2bf14cbf704e7741eb402d Talk
//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 ...

D41d8cd98f00b204e9800998ecf8427e Talk