CodeIgniter Forums
pager->links() not work in view layouts - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: pager->links() not work in view layouts (/thread-72967.html)



pager->links() not work in view layouts - elephpantech - 03-06-2019

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:
Code:
<!-- LAYOUT -->
<!doctype html>
<html>
<body>
<?= $this->renderSection('content') ?>
</body>
</html>

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

Kind regards and congratulations for this best jobs!


RE: pager-&gt;links() not work in view layouts - elephpantech - 03-14-2019

Fixed succesfully by lonnieezell see https://github.com/codeigniter4/CodeIgniter4/commit/ebeb635ed3ebd9e4c583a73d29132005e1a2c259

Thanks.