Skip to content

Instantly share code, notes, and snippets.

@evgheni7
Created July 25, 2012 17:54
Show Gist options
  • Select an option

  • Save evgheni7/3177529 to your computer and use it in GitHub Desktop.

Select an option

Save evgheni7/3177529 to your computer and use it in GitHub Desktop.
inject controller
<?php
namespace Blog\Controller;
use Zend\Mvc\Controller\AbstractRestfulController,
Zend\View\Model\ViewModel;
class PageController extends AbstractRestfulController
{
/**
* @var \Blog\Model\Page
*/
protected $model;
/**
* @param \Blog\Model\Page $model
*/
public function __construct(\Blog\Model\Page $model)
{
$this->model = $model;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment