1
0

Added Pagination to Programs/index

This commit is contained in:
2014-06-02 19:31:14 +02:00
parent ad5226a1d1
commit 94c006f371
9 changed files with 241 additions and 187 deletions

View File

@@ -141,7 +141,15 @@ class ProgramsController extends Controller
{
$this->layout = '//layouts/main';
$this->render('index');
$data = array();
if (isset($_GET['page']) && is_numeric($_GET['page'])) {
$data['page'] = $_GET['page'];
} else {
$data['page'] = 1;
}
$this->render('index', $data);
}
/**