MarcGrabanski.com - 1 views
Personalización de formularios - 0 views
-
$ws = new sfWidgetFormSchema(array('name' => new sfWidgetFormInput())); $ws->setDefault('name', 'Fabien'); // which is equivalent to $ws['name']->setDefault('Fabien'); // or $ws->setDefaults(array('name' => 'Fabien'));
Formularios personalizados - 0 views
-
<?php echo $form->renderFormTag('foo/contact') ?> <table> <?php echo $form['name']->renderRow() ?> <?php echo $form['email']->renderRow() ?> <?php echo $form['subject']->renderRow() ?> <?php echo $form['message']->renderRow() ?> <tr> <td colspan="2"> <input type="submit" /> </td> </tr> </table> </form>
Incluir formularo i18n en un modelo - 1 views
-
public function configure() { unset( $this['jobeet_affiliates_list'], $this['created_at'], $this['updated_at'] ); $this->embedI18n(array('en', 'fr')); $this->widgetSchema->setLabel('en', 'English'); $this->widgetSchema->setLabel('fr', 'French'); }
Campos i18n en Admin Generator - 0 views
-
//generator.yml form: display: Espanol: [es] Italiano: [it] fijos: [forma_pago, moneda_code]
Configuración de Apache para un sitio con Symfony - 2 views
-
NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 127.0.0.1:8080 <VirtualHost 127.0.0.1:8080> DocumentRoot "/home/sfproject/web" DirectoryIndex index.php <Directory "/home/sfproject/web"> AllowOverride All Allow from All </Directory> Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf <Directory "/home/sfproject/lib/vendor/symfony/data/web/sf"> AllowOverride All Allow from All </Directory> </VirtualHost>
Modificando los widgets en la acción - 0 views
-
// in modules/foo/actions/actions.class.php // Define the form $this->form = new ContactForm(); // Add an empty option to the list of choices of a 'choice' widget $form->getWidget('language')->setOption('add_empty', 'Please choose a language'); // Add a 'gender' list of options widget $form->setWidget('gender', new sfWidgetFormChoice(array('expanded' => true, 'choices' => array('m' => 'Male', 'f' => 'Female')), array('class' => 'gender_list'))); // Change the HTML attributes of the 'subject' widget $form->getWidget('subject')->setAttribute('disabled', 'disabled'); // Remove the 'subject' field unset($form['subject']) // Note: You cannot remove just the widget. Removing a widget will also remove the related validators // Change the 'min_length' error in the 'message' validator $form->getValidator('message')->setMessage('min_length', 'Message too short'); // Make the 'name' field optional $form->getValidator('name')->setOption('required', false);
Modificar template de los widgets - 0 views
-
$this->getWidgetSchema()->getFormFormatter()->setRowFormat('<div >%field%%help%%error%%hidden_fields%</div>');
Widgets para fechas con i18n - 0 views
-
$w = new sfWidgetFormI18nDate(array( 'culture' => 'fr', 'month_format' => 'short_name', ));
La Guia Definitiva Symfony 1.4 - 2 views
Mi cuaderno de trabajo: Git: El fichero .gitignore - 0 views
-
$ cat .gitignore*.[oa] # Ignoramos todos los archivos terminados en o o en a*~ # Ignoramos todos los archivos terminados en ~/TODO # Ignoramos la carpeta TODO. Si existe un subdirectorio llamado TODO no se ignorabuild/ # Ignoramos todos los ficheros del directorio build/doc/*.txt # Ignoramos todos los ficheros terminados en txt del directorio doc
PHP: rmdir - Manual - 0 views
PHP: copy - Manual - 0 views
Effects - jQuery API - 0 views
Mover un archivo o directorio con PHP - 0 views
-
<?phprename("/tmp/archivo_tmp.txt", "/home/user/login/docs/mi_archivo.txt");?>
« First
‹ Previous
41 - 60 of 85
Next ›
Last »
Showing 20▼ items per page