jQGrid with Zend Framework Updated
Recently I had some time to update the fork I have of the jQGrid encapsulation for Zend Framework.
Among the things updated is:
* Support for jQGrid 4.1.
* Support for methods in options.
* 2 new decorators
* New special decorator, a multi select element on grid search.
* Support for advanced search
And many more…
You can locate the code at my GitHub:
If you dont use jQGrid it is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web.
Thanks for posting your work.
I was able in include your code into my Zend application but I have no clue how to use it
Can you post an example: what to put in the controller and what in the view ??
Thanks
Eli Hayun
October 24, 2011 at 9:00 pm
You can always tell an eerxpt! Thanks for contributing.
Dasia
December 16, 2011 at 9:36 am
Great work!!! Congratulations!
Plese show us how to use
Regards!
alejandro
November 14, 2011 at 5:54 am
Hi! Thnaks for your work! May I see code of this “$this->Actions ();”? It is view-helper who insert into view action-controls like Magento?
Eger
December 21, 2011 at 2:28 pm
It actually is inserting action controlls into view…
I did not know about the Magento controlls never worked with them but here is my code for this helper:
view->arrActions )) {
ob_start ();
foreach ( ( array ) $this->view->arrActions as $arrAction ) {
// Check Permissions
$objAcl = Openiview_Acl::$objIntance;
$strClass = '';
$strOnClick = '';
if (! $objAcl->checkPermissions ( $arrAction ['module'],$arrAction ['controller'], $arrAction ['action'], @$arrAction['params']['LabId'],@$arrAction['params']['ProjectId'],@$arrAction['params']['stricked'] )) {
continue;
}
if (! empty ( $arrAction ['class'] )) {
$strClass = $arrAction ['class'];
}
if (! empty ( $arrAction ['onClick'] )) {
$strOnClick = $arrAction ['onClick'];
} elseif (! empty ( $arrAction ['uri'] )) {
$strOnClick = 'document.location.href="' . $arrAction ['uri'] . '"';
} else {
$arrParams = array ();
if (!empty($arrAction ['module'])){
$arrParams ['module'] = $arrAction ['module'];
} else {
$arrParams ['module'] = 'default';
}
$arrParams ['controller'] = $arrAction ['controller'];
$arrParams ['action'] = $arrAction ['action'];
if (! empty ( $arrAction ['params'] )) {
foreach ( $arrAction ['params'] as $strParamKey => $strParamValue ) {
$arrParams [$strParamKey] = $strParamValue;
}
}
$strOnClick = 'document.location.href="' . $this->view->url ( $arrParams, null, true ) . '"';
}
?>
<button type="button" onClick='' class=''>view->translate($arrAction ['name']):"";?>
view->PageDesc();?>
Actions:
view->PageDesc();
}
} else {
$htmlF = $this->view->PageDesc();
}
return $htmlF;
}
}
Alex (Shurf) Frenkel
December 21, 2011 at 4:02 pm
Alex (Shurf) Frenkel
December 21, 2011 at 4:04 pm
Where can I download???
loko tek
February 27, 2012 at 8:47 pm
You can download the source for it at:
https://github.com/sirshurf/iphp
Alex (Shurf) Frenkel
February 28, 2012 at 8:08 pm
Hi, I’m trying to figure out how to enable the CRUD operations in the records. Can you give a example?
Another thing that I want is to put links in each record to redirect to my actions of edit and delete
Cassiano
September 20, 2012 at 6:25 pm