Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created April 30, 2012 17:44
Show Gist options
  • Save fritz-gerneth/2560403 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/2560403 to your computer and use it in GitHub Desktop.
<?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