Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: The index.before render hook, or a page for a separate screen.

How To Add More Button At Top Of Grid Data ​

Some cases you need to add extra button at top of grid data. For example you need to add a custom print button. And you've created a method to print.

Open the module controller, and find $this->index_button .

php
$this->index_button[] = ['label'=>'Advanced Print','url'=>CRUDBooster::mainpath("print"),"icon"=>"fa fa-print"];

What's Next ​

Table Of Contents ​

Released under the MIT License.