Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created January 20, 2012 15:58
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 fideloper/1647997 to your computer and use it in GitHub Desktop.
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