PHP Classes

File: zray/Panels/models.phtml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/Panels/models.phtml   Download  
File: zray/Panels/models.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 1 year ago
Size: 753 bytes
 

Contents

Class file image Download
<?php
$tableParams
= array(
   
'tableId' => 'codeigniter-models-table',
   
'tableWidth' => '4',
);

echo
$this->zrayTable($tableParams);
?>

<script type="text/javascript">
(function() {

    var storage = zray.getStorage('CodeIgniterModels');

    // create main table
    var maintable = zray.createTable(storage, jQuery('#<?php echo $tableParams['tableId']; ?>'));
    maintable.setColumns([
        {
            "label": "Name",
            "propertyName": "name",
            "sortable": true,
            "width" : "100%"
        }
    ]);
    // create main table - end
    zray.createSearch(storage, jQuery('#<?php echo $params['searchId']; ?>'), maintable);
    zray.registerDataHandler('CodeIgniter', 'models', function(extensionData, requestData) {
        storage.setData(extensionData);
    });
})();
</script>