Last active
August 29, 2015 14:01
-
-
Save swthate/0affd8047a86e0372453 to your computer and use it in GitHub Desktop.
Baked JobsController
This file contains hidden or 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 | |
/** | |
* Components | |
* | |
* @var array | |
*/ | |
public $components = array('Paginator', 'Session'); | |
public $pagiante = array( | |
'order' => array( | |
'Job.id' => 'desc' | |
) | |
); | |
/** | |
* index method | |
* | |
* @return void | |
*/ | |
public function index() { | |
$this->Paginator->settings = $this->paginate; | |
$this->set('jobs', $this->Paginator->paginate('Job')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment