Skip to content
Browse files

continue tenants

  • Loading branch information...
1 parent a078861 commit b89c4c532589cbe1045b7683507236749f8af031 @elihayun1 elihayun1 committed Nov 21, 2011
Showing with 6 additions and 1 deletion.
  1. +1 −1 application/controllers/TenantsController.php
  2. +5 −0 library/Vaad/Controller/Action.php
View
2 application/controllers/TenantsController.php
@@ -51,7 +51,7 @@ public function deleteAction() {
public function editAction() {
$this->viewAction(true);
- $this->renderScript('tenants/view.phtml');
+ $this->renderScript($this->_control . '/view.phtml');
}
}
View
5 library/Vaad/Controller/Action.php
@@ -4,6 +4,8 @@ class Vaad_Controller_Action extends Zend_Controller_Action {
protected $_page = 1;
protected $_paginator = null;
+ protected $_control = '';
+ protected $_action = '';
private function isVaad() {
$auth = Zend_Auth::getInstance();
@@ -20,6 +22,9 @@ public function preDispatch() {
$cnt = $this->getRequest()->getControllerName();
$act = $this->getRequest()->getActionName();
+
+ $this->_control = $cnt;
+ $this->_action = $act;
$ucnt = str_replace(' ', '', ucwords(str_replace('_', ' ', $cnt)));
$this->view->topPageTitle = $translator->_($ucnt);

0 comments on commit b89c4c5

Please sign in to comment.
Something went wrong with that request. Please try again.