Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created May 23, 2011 19:39
Show Gist options
  • Save eminetto/987406 to your computer and use it in GitHub Desktop.
Save eminetto/987406 to your computer and use it in GitHub Desktop.
$cache = Zend_Registry::get('cache');
if(!$form = $cache->load('LoginForm')) {
        $form = new LoginForm;
        //salva o form renderizado no cache
        $cache->save($form->render(), 'LoginForm');
}
$this->view->form = $form;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment