Welcome Guest, Not a member yet? Register   Sign In
HMVC + Admin pagination (SOLVED)


I hope someone can help me figure this out... I am currently using HMVC in my application and I applied Phil's Sturgeon 3rd method of setting up an admin panel instead of my usual 2 applications. I can get the pagination to work well on the front end of my application but I am having major issues with getting it to work with the backend.

I have tried everything I could think with the routes, but cant seem to get pagination to work on my admin items. Can anyone help?

This is the default routing for admin in the global config folder:

$route['admin/([a-zA-Z_-]+)/(:any)'] = '$1/admin_$1/$2';
$route['admin/([a-zA-Z_-]+)'] = '$1/admin_$1/index';
$route['admin/(:any)']        = 'admin/$1';
$route['admin']               = 'admin';

The modules do have their own routes.php file but I cant seem to get the pagination working. Any help will be appreciated.


Found the solution to my problem...

[eluser]kamal lamichhane[/eluser]
would you please share. i have the same problem too.

When setting you your admin pagination, simply make sure you include "index" in your urls.
For example, set your pagination base_url to:

$config['base_url'] = base_url() . 'admin/module/index';

Theme © iAndrew 2016 - Forum software by © MyBB