Welcome Guest, Not a member yet? Register   Sign In
pagination segment lost
#1

[eluser]zenon[/eluser]
I've mapped
Code:
$config['uri_segment'] = 4,
because my controller is under a folder and it pagination itself works, but when I call under the view

Code:
<?php echo base_url() + uri_string();?>">

the last fragment of the built uri is always 0.

Why ?
#2

[eluser]InsiteFX[/eluser]
Did you try?
Code:
<?php echo base_url() + $this->uri_string();?>">

InsiteFX
#3

[eluser]Cristian Gilè[/eluser]
Code:
<?php echo current_url(); ?>

Please, post your code.


Cristian Gilè
#4

[eluser]zenon[/eluser]
I've noticed another problem still using uri :

Supposing my URI is

http://localhost/myapp/index.php/places/...page//id/1

when i call

Code:
$this->uri->uri_to_assoc(4);

a print_r of the given array produces

Quote:Array ( [page] => id [1] => )

but it's not my expected result, because page should be false and id = 1.

What can I do to handle all those params value that can be valorized or not according to the situation?
Anyway I would not to use number segment.




Theme © iAndrew 2016 - Forum software by © MyBB