• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination Detection

#3
[eluser]wowdezign[/eluser]
Exactly.

I am trying to find out if the pagination library is loaded.

Here's why.... (and maybe I have this all wrong)

I don't normally pass variables around like your example illustrates (and maybe I should, I don't know). Instead, since there is a uri segment available to each part of the application, I base my logic on results from testing the uri segments.

HOWEVER, now that I have built a good portion of this project, I am needing to see if the current page is using pagination even if it is page 1

I normally do checks like:

Code:
if(!$this->uri->segment(3)){
  redirect('some_page');
}
if($this->uri->segment(3)){
  // do stuff
}else...

Obviously, I might need to re-assess this structuring for the future, but now I need to jump this hurdle to move forward on this project.

Thanks for the input.

Any comments are appreciated.


Messages In This Thread
Pagination Detection - by El Forum - 12-31-2009, 09:45 AM
Pagination Detection - by El Forum - 12-31-2009, 09:54 AM
Pagination Detection - by El Forum - 12-31-2009, 10:32 AM
Pagination Detection - by El Forum - 12-31-2009, 04:10 PM
Pagination Detection - by El Forum - 12-31-2009, 04:30 PM
Pagination Detection - by El Forum - 01-01-2010, 09:19 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.