Skip to content

Instantly share code, notes, and snippets.

View Asgaroth's full-sized avatar

Alex Urbano Asgaroth

View GitHub Profile
@Asgaroth
Asgaroth / keybase.md
Created June 28, 2018 20:57
keybase.md

Keybase proof

I hereby claim:

  • I am asgaroth on github.
  • I am asgaroth (https://keybase.io/asgaroth) on keybase.
  • I have a public key ASDAYPtPlTSqUe4QqtaIKT7pljYQB8jfvT9f3WlK_0Q4owo

To claim this, I am signing this object:

@Asgaroth
Asgaroth / yf3-custom-dropdowns.php
Created July 15, 2012 22:21
Yii Foundation 3 Custom Dropdowns
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm', array(
"type" => 'custom'
)); ?>
<?php echo $form->dropdownlistRow( $model, "field27", array(
"1" => "This is a dropdown",
"2" => "This is another option",
"3" => "Look, a third option",
)); ?>
@Asgaroth
Asgaroth / yf3-form-custom.php
Created July 15, 2012 22:16
Yii Foundation 3 Custom Elements
<div class="row">
<div class="four columns">
<?php echo $form->radioButtonListRow( $model, "field24", array(
"1" => ' Radio Button 1',
"2" => ' Radio Button 2',
"3" => ' Radio Button 3',
)); ?>
</div>
<div class="four columns">
<?php echo $form->radioButtonListRow( $model, "field25", array(
@Asgaroth
Asgaroth / f3-custom-form.php
Created July 15, 2012 21:56
Yii Foundation 3 Custom Form
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm', array(
"type" => 'custom'
)); ?>
<?php $this->endWidget(); ?>
@Asgaroth
Asgaroth / f3-form-example.php
Created July 15, 2012 21:53
Yii Foundation 3 Large Form Example
<?php $form=$this->beginWidget('foundation.widgets.FounActiveForm'); ?>
<fieldset>
<legend>Large Form Example</legend>
<div class="row">
<div class="five columns">
<?php echo $form->textFieldRow($model, "field14"); ?>
<?php echo $form->textFieldRow($model, "field15"); ?>
<?php echo $form->textFieldRow($model, "field16", array('prefix' => '@', 'placeholder' => 'asgarothbelem')); ?>
<?php echo $form->textFieldRow($model, "field17", array(
'postfix' => '.com',
@Asgaroth
Asgaroth / f3-form-errors.php
Created July 15, 2012 21:37
Yii Foundation 3 Form Errors
<div class="row">
<div class="five columns">
<?php echo $form->textFieldRow($model, "field12"); ?>
</div>
<div class="five columns end">
<?php echo $form->textFieldRow($model, "field13"); ?>
</div>
</div>
@Asgaroth
Asgaroth / yf3-form-postfix-btn.php
Created July 15, 2012 21:31
Yii Foundation 3 Form Postfix Button
<div class="row">
<div class="five columns">
<?php echo $form->textFieldRow($model, "field11", array(
'postfix' => '<a href="#" class="postfix button">Search</a>',
'postfixOptions' => array(
'size' => 4,
'type' => 'raw'
))); ?>
</div>
</div>
@Asgaroth
Asgaroth / yf3-form-postfix.php
Created July 15, 2012 20:11
Yii Foundation 3 Form Postfix
<div class="row">
<div class="five columns">
<?php echo $form->textFieldRow($model, "field10", array('postfix' => '.com',
'postfixOptions' => array(
'size' => 3,
))); ?>
</div>
</div>
@Asgaroth
Asgaroth / yf3-form-prefix.php
Created July 15, 2012 20:07
Yii Foundation 3 Form Prefix
<div class="row">
<div class="four columns">
<?php echo $form->textFieldRow($model, "field9", array('prefix' => '#')); ?>
</div>
</div>
@Asgaroth
Asgaroth / yf3-form-fielset.php
Created July 15, 2012 00:01
Yii Foundation 3 Form Fieldset
<fieldset>
<legend>Fieldset Name</legend>
<?php echo $form->textFieldRow($model, "field6", array('placeholder' => 'Standard Input')); ?>
<?php echo $form->textFieldRow($model, "field7"); ?>
<?php echo $form->textField($model, "field8", array('class' => 'six')); ?>
</fieldset>