CodeIgniter Forums

Full Version: overlapping variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Gabi3xz[/eluser]
I have page of edit dashboard/cat_edit/5(id of category)
And on the same page I have a list paginated dashboard/cat_edit/1(page of list)
$config['base_url'] = 'http://localhost/CodeIgniter/dashboard/cat_edit/';

Example i go edit cat 5 dashboard/cat_edit/5 lead me on page 5
but if I go to page 10 lead me edit cat 10.

work but give the same value to both
how do I solve?

El Forum

[eluser]Cristian Gilè[/eluser]
Your post is a bit confused. Try to fix the base_url setting:

Code:
$config['base_url'] = 'http://localhost/CodeIgniter/';

El Forum

[eluser]weboap[/eluser]
simple solution will be to dived your listing and editing methods.

dashboard/cat_list/1

dashboard/cat_edit/1