Posted: May 13th, 2012

Sonic for Hire by Machinima

Category: PLAIN, video, Video Games

Posted: September 17th, 2011

new pokemon

Category: PLAIN
Tags: , , , , , , , , , , ,

If the pokemon series was updated to this style, i bet a lot more fans would arise. a lot more adult fans if you know what i mean. sickos…

any ways credit to reddit.com it was found there.

Posted: July 13th, 2011

Sushi Etiquette

Category: images, Japan, PLAIN
Tags: , , , , , ,

not only are you barbarians doing it wrong. stop eating all my Maguro!!!!! i agree with all of this, but i still make wasabi soup in my soy sauce as well. its cause I love wasabi so much.

Lets go and enjoy some Sushi!

Posted: May 14th, 2011

Hello Kitty got into some trouble.

Category: PLAIN

we don’t know exactly what she was doing but the fuzz is now on her case

Your Ad Here
Posted: February 23rd, 2011

Zend Framework, Subforms and organization

Category: PLAIN, technical
Tags: , , ,

Recently I have been tasked to organize some form fields into nice columns. Normally you would use display groups. Since you really can not nest display groups, subforms were the answer. I have split my elements into 2 different sections and w/in these sections are basic incarnations of forms at the basic level ( utilizing the init() and extending Zend_Form() ). w/in each form I have many elements and display groups.

so in a nut shell here’s what i have,

first off you create "empty" subforms

$left = new Zend_Form_SubForm();    

then you add the subforms you want inside of this "subform"

$left->setSubForms(array(
   ‘sub1′  => $sub1,
   ‘sub2′  => $sub2
));

you do the same thing for the other subform you want to add decorators to.

$right = new Zend_Form_SubForm();    

$right->setSubForms(array(
   ‘sub3′  => $sub3,
   ‘sub4′  => $sub4
));

then to your original form you add these new "$left" and "$right" subforms

$this->setSubForms(array(
   ‘left’  => $left,
   ‘right’ => $right
));

you can then apply decorators to the "$left" and "$right" subforms as you see fit.

since i want to drop the fieldsets that encapsulate the elements inside mine looks like this, you do the same to the other one.

    $left->setDecorators(array(
        ‘FormElements’,
        array(‘HtmlTag’, array(‘tag’ => ‘div’)),
        ));

Your Ad Here