<?php
class AlbumsController extends AppController {
var $name = 'Albums';
function view($id = null) {
$this->Album->id = $id;
$this->set('tracks', $this->Album->read());
}
}
?>
I'm wondering how I would apply paginating to the view function. I've got it worked out for things like:
var $paginate = array(
'limit' => 8,
'order' => array(
'Album.catalog_no' => 'ASC'
)
);
function index() {
$this->Album->recursive = 0;
$this->set('albums', $this->paginate());
}
But applying it to the above view function I'm at a bit of a loss. Thanks!