PHPGrid and Codeigniter

QuestionsPHPGrid and Codeigniter
Wagner asked 4 years ago

The tool does not work properly with MVC. Can anyone help me?

5 Answers
Abu Ghufran answered 4 years ago

Can you explain the issue?
You must have checked the faq item,
"Q) How can i integrate PHPGrid in MVC based frameworks like Yii, Codeignitor, Zend Framework, CakePHP and others."

If not it would help. http://phpgrid.org/faqs

Wagner answered 4 years ago

Dear Abu,
Thank you for your concern and help.
Please, your FAQ does not answer my doubts.
Your lines on FAQ are:

1 – include("inc/jqgrid_dist.php");
2 – $g = new jqgrid();
3 – …
4 – $out = $g->render("list1");

Line One, Where is the program inc/jqgrid_dist.php – I don't have it on my zip file
Line Two, you have no parameter on your function example, but on PHPGrid example they use: dg = new C_DataGrid("SELECT * FROM Orders", "orderNumber", 'Orders');
Who is right?
Line 3 – No meaning
Line 4 – Your code says: render and list1. How do I get list1, is it an result? on PHPGrid they say: $dg->display(); Who is right render or display?

I'm sorry, but for me the FAQ did not help. Is it possible to have a full example with MVC? Like your full example on folder phpGridexamples.

Abu Ghufran answered 4 years ago

Our product does not support c_datagrid class.
Please download package from http://phpgrid.org/download

Wagner answered 4 years ago

Hi Abu,

I read your FAQ and it does not seem to clear as your site documentation (see http://phpgrid.com/example/phpgrid-and-codeigniter-integration/).

At your FAQ you need a program: include("inc/jqgrid_dist.php"). I don't have it on muy phpGrid.zip. You use a comand RENDER and at your on line documentation you use DISPLAY. Who is right?

If you need my code, I can send it. This is the erro I'm getting:

Notice: Undefined index: _oPHPGRID_tipo_sql inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1

Notice: Undefined index: _oPHPGRID_tipo_sql_key inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1

Notice: Undefined index: _oPHPGRID_tipo_sql_fkey inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1

Notice: Undefined index: _oPHPGRID_tipo_sql_table inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1

Notice: Undefined index: _oPHPGRID_tipo_sql_filter inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1

Notice: Undefined index: _oPHPGRID_tipo_db_connection inD:DocumentswwwobraapplicationlibrariesphpGriddata.php(1) : eval()'d code on line 1
PHPGRID_DEBUG: C_Database->_6219D1B2881E5CF155E18DB89970A532() – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 1

Best Regards,

Wagner answered 4 years ago

Sorry, I underestood what was happing, Thank you for your time and support.

Best regards,

Wagner

Your Answer

10 + 10 =

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

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

Let us improve this post!