how to load a page with GET parameters in grid exp

2019-08-07 01:02发布

问题:

As you know we can load a Page in expander in this way:

 $g->addColumn('expander','tickets');

But in my situation, the Tickets page have some parameters like this:

?page=tickets&tid=1

how can I load this page with tid parameter?

回答1:

Make those parameters sticky at the start of your page:

$this->api->stickyGET('tid');

This parameter will be passed to sub-pages.

See also:

  • https://github.com/atk4/docs/blob/master/application/routing/sticky.md