Welcome Guest, Not a member yet? Register   Sign In
How to use the pagination with view parser?
#4

(This post was last modified: 07-02-2021, 06:24 AM by eternity6. Edit Reason: beautiful formatting )

Well...You can simple put HTML result of pager inside an array with a specific label in your control and then parser it with a {  code } in the template.

For example

Controller:

PHP Code:
$this->data['page_pagination'] = $data['pager']->links();

//than call view template
//i have write a library for parser a page splitted in multiple file
echo $this->TemplateParser->_render_page('your_template_to_parser'$this->datatruefalse);

//if you don't like use original C4 
echo $this->parser->setData($data)->render('your_view_file'); 



In your template view use code with ! for don't print HTML code

Code:
<div class="pagination">{! page_pagination !}</div>
Reply


Messages In This Thread
RE: How to use the pagination with view parser? - by eternity6 - 07-02-2021, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB