How to reach a page of the grid by a link?

QuestionsHow to reach a page of the grid by a link?
Denis Fontaine asked 2 years ago

Hello,

Is it possible to reach a page of the grid by an external link, for example : https://www.mysite.com/grid_1/page_11 ?

Thanks

3 Answers
Denis Fontaine answered 2 years ago

Hello Abu,

I would just like to know if you have an answer for this question.

Thanks,

Abu Ghufran Staff answered 2 years ago

Hello,

You can set any querystring param, e.g. ‘p’ and pass it to grid option ‘page’.
Now accessing grid.php?p=2 will open page number 2.

$opt["page"] = $_GET["p"];
$g->set_options($opt);
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Denis Fontaine answered 2 years ago

Hello Abu,

It works perfectly.

A big thank you for helping me once again successfully.

Your Answer

20 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?