Created
April 30, 2012 17:44
-
-
Save fritz-gerneth/2560403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyController extends Zend_Controller_Action | |
{ | |
private $_modelA; | |
private $_modelB; | |
public function doSomethingAction() | |
{ | |
$this->_modelA->create(); | |
} | |
public function doAnotherThingAction() | |
{ | |
$this->_modelB->read(); | |
} | |
public function setModelA($model) | |
{ | |
$this->_modelA = $model; | |
} | |
public function setModelB($model) | |
{ | |
$this->_modelB = $model; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment