The save & new code is really simple
in view form add
if ($access->get('core.edit') || ($isNew && $access->get('core.create') || $access->get('core.edit.own')))
$bar->appendButton( 'Standard', "save-new", "JTOOLBAR_SAVE_AND_NEW", "save2new", false);
then in controller add
in constructor
$this->registerTask( 'save2new', 'save' );
in save function
$task = $this->getTask();
if ($cid = parent::_save($post))
{
$vars = array();
if ($task == 'save2new') {
JRequest::setVar( 'cid', 0 );
JRequest::setVar( 'view' , 'clubitem');
JRequest::setVar( 'layout', 'clubitem' );
}
else
{
JRequest::setVar( 'view' , 'clubs');
JRequest::setVar( 'layout', 'default' );
JRequest::setVar( 'cid', null );
}
$this->setRedirect(LpadHelper::urlRequest($vars));
}
else
//Keep the post and stay on page
parent::display();