Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created January 20, 2012 15:58
Show Gist options
  • Select an option

  • Save fideloper/1647997 to your computer and use it in GitHub Desktop.

Select an option

Save fideloper/1647997 to your computer and use it in GitHub Desktop.
Controller
<?php
class IndexController extends Zend_Controller_Action
{
private $lang;
public function init() {
$this->lang = Zend_Registry::get('Zend_Translate');
}
public function indexAction() {
$this->view->lang = $this->lang;
}
public function thanksAction() {
$this->view->lang = $this->lang;
}
public function thankssubmitAction() {
$this->view->lang = $this->lang;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment