Skip to content

Instantly share code, notes, and snippets.

@jamband
Last active September 28, 2015 10:38
Show Gist options
  • Save jamband/1426072 to your computer and use it in GitHub Desktop.
Save jamband/1426072 to your computer and use it in GitHub Desktop.
<?php
class HogeController extends Controller
{
/**
* Lists all models.
*/
public function actionIndex()
{
list($pages, $models) = Hoge::model()->getAll();
$this->render('index', compact('pages', 'models'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment