Skip to content

Instantly share code, notes, and snippets.

@romaninsh
Created January 15, 2013 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romaninsh/4535001 to your computer and use it in GitHub Desktop.
Save romaninsh/4535001 to your computer and use it in GitHub Desktop.
<?php
class Form extends Form_Basic {
public $split_columns=true;
function init(){
parent::init();
$this->setFormClass('stacked atk-row');
}
function recursiveRender(){
if(count($this->elements)>8 && $this->split_columns){
$o=$this->add('Order')
->move($this->addSeparator('noborder span6'),'first')
->move($this->addSeparator('noborder span5'),'middle')
->now();
}
parent::recursiveRender();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment