CodeIgniter Forums

Full Version: pager->links() not work in view layouts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using beta-1 and try to print pagination links using "pager->links()" or "pager->simpleLinks()" but nothing comes out if I do that within "this->section('content')" .

NOTE: Without View layouts works fine.

Same code as the one used in the user guide:
<!-- LAYOUT -->
<!doctype html>
<?= $this->renderSection('content') ?>

<!-- TEMPLATE -->
<?= $this->extend('layout') ?>
<?= $this->section('content') ?>
<?= pager->links() ?>
<?= $this->endSection() ?>

Kind regards and congratulations for this best jobs!
Fixed succesfully by lonnieezell see