Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Pagination Modules

Accor   ( User )

Commented 3 years ago

Hello, i found an error undefined variable $limits from partials.admin.pagination. i created a module with index page which i include pagination (partials.admin.pagination) inside the index page. how can we fix this?

Thank you

Juan Zarolas   ( User )

Commented 3 years ago

I'm facing the same error. Did you find the solution?

Accor   ( User )

Commented 3 years ago

Yes,
1. copy the index.php file from app\Http\ViewComposers and put the file to Modules\{modules_name}\ViewComposers\

2. create new module provider and put this code
View::composer(
'{modules_name}::index', 'Modules\{modules_name}\Http\ViewComposers\index'
);

3. add the new module provider path into module's module.json file

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions