Phpgrid + smarty.

QuestionsPhpgrid + smarty.
Sebastián Esteller asked 11 years ago

I can use phpgrid whith smarty templates? I think not works correctly!
Thanks!

2 Answers
Abu Ghufran answered 11 years ago

There are few considerations.

1) The $g->render() function must be called before anything is rendered to output.
2) You can use $out variable from ( $out=$g->render() ) as a variable placeholder in smarty and print it where you wish to show grid.

Many developers are using grid with CI,Yii,etc which uses similar templating approach.

Sebastián Esteller answered 11 years ago

the problem was not the template engine, but when combined with a submit button. I already found the solution to this in another post >> https://phpgrid.desk.com/customer/portal/questions/1434960-blank-row-on-submit-button

Thanks!

Your Answer

7 + 15 =

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 0 / 5. Vote count: 0

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?