Reputation: 134483
I am a front-end designer/code trying to style up pagination for a web app. It is called in one section of the application and called it with the following:
<?php echo $pagination;?>
And I used CSS + the Pagination JS file to style it up.
In another section of the application, which I have just been asked to style, it is called with this:
<?php echo $pages;?>
And looks entirely unstyled. When I replace $pages
with $pagination
the page control no longer appears. When I run a search for $pages
through our repository I see no matches for $pages
(not even in the pagination file).
Anyone have any idea why pagination breaks the control?
Thanks!
EDIT: I did a really bad job of explaining this. The problem is that I can find a reference to the variable $paginate
in the repository (in paginate.js) and I was able to assign a CSS class to it through that JavaScript file, but I can't find any references to $pages
, which I just can't wrap my head around. If I change the variable to something else that I think is defined (such as $paginate
) it no longer displays the pagination.
EDIT: Figured it out, it was in the controller in CodeIgniter.
Upvotes: 1
Views: 401
Reputation: 1076
Well, I'm not quite sure if I my answer will help, but as far as I undertood your question
for ex.
<div class="smth">
<div class="your_$page_div">
<ul>
<li>text</li>
etc...
In your CSS do smth like div.smth div.your_$page_div ul li {some stile} so you won't have to replace anything and assign smth in core file.
I hope I correctly understood what you were asking :P Cheers!
I just saw you figured out the problem
Upvotes: 1