Skip to content

Instantly share code, notes, and snippets.

View Asgaroth's full-sized avatar

Alex Urbano Asgaroth

View GitHub Profile
@Asgaroth
Asgaroth / yf3-formh.php
Created July 14, 2012 23:48
Yii Foundation 3 Form Horizontal
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm'); ?>
<div class="row">
<div class="two mobile-one columns">
<?php echo $form->labelEx( $model, "field3", array("class" => 'right')); ?>
</div>
<div class="ten mobile-three columns">
<?php echo $form->textField( $model, "field3", array("placeholder" => "e.g. Home", "class" => 'eight')); ?>
</div>
</div>
<div class="row">
@Asgaroth
Asgaroth / yf3-form-fields.php
Created July 5, 2012 03:25
Yii Foundation 3 Form Fields
<?php
/**
* @var FounActiveForm
*/
$form=$this->beginWidget('foundation.widgets.FounActiveForm'); ?>
?>
<?php echo $form->textFieldRow($model, "field1", array("placeholder" => "Standard Input")); ?>
<?php echo $form->textFieldRow($model, "field1_1", array("placeholder" => "Street")); ?>
<div class="row">
<div class="six columns">
@Asgaroth
Asgaroth / yf3-form.php
Created July 5, 2012 03:13
Yii Foundation 3 Form
<?php
/**
* @var FounActiveForm
*/
$form=$this->beginWidget('foundation.widgets.FounActiveForm', array(
'id'=>'form',
)); ?>
//form Fields