Welcome Guest, Not a member yet? Register   Sign In
Parent Page Link Not Working Correct.
#4

(This post was last modified: 03-05-2016, 06:47 PM by wolfgang1983.)

(03-05-2016, 03:45 PM)InsiteFX Wrote: If you just want to go back to the beginning with a parent button you can use something like this.

PHP Code:
$_SESSION['org_referer'] = $_SERVER['HTTP_REFERER']; 

I would convert it to CI.

I tried that not do what I am after.

The code below now works fine with out adding the pagination query


PHP Code:
$parent_url ''

$input_get_directory $this->input->get('image_directory');            

if (isset($input_get_directory)) {
    $pos strrpos($input_get_directory'/');
    if ($pos) {
        $parent_url .= '&image_directory=' urldecode(substr($input_get_directory0$pos));
    }
}

$data['parent'] = site_url('c=filemanager')  $parent_url


But when I add the code below: It will block my image directory get query from work.

PHP Code:
if ($this->input->get('per_page')) {
 
  $backpagecount $this->input->get('per_page') - 6;
 
  $parent_url .= '&per_page=' $backpagecount;

Like

PHP Code:
$parent_url ''

$input_get_directory $this->input->get('image_directory');            

if (isset(
$input_get_directory)) {
    
$pos strrpos($input_get_directory'/');
    if (
$pos) {
        
$parent_url .= '&image_directory=' urldecode(substr($input_get_directory0$pos));
    }
}

if (
$this->input->get('per_page')) {
 
  $backpagecount $this->input->get('per_page') - 6;
 
  $parent_url .= '&per_page=' $backpagecount;
}

$data['parent'] = site_url('c=filemanager' $parent_url
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Parent Page Link Not Working Correct. - by wolfgang1983 - 03-05-2016, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB