PHP Classes

File: zray/Panels/views.phtml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/Panels/views.phtml   Download  
File: zray/Panels/views.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: 2 years ago
Size: 784 bytes
 

Contents

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

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

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

    // create main table
    var maintable = zray.createTable(storage, jQuery('#<?php echo $tableParams['tableId']; ?>'));
    maintable.setColumns([
        {
            "label": "Name",
            "propertyName": "name",
            "sortable": true,
        },
        {
            "label": "Path",
            "propertyName": "path",
            "sortable": false,
            "getHtml": function(value, record) {
                return value;
            }
        }
    ]);
    // create main table - end
    zray.registerDataHandler('CodeIgniter', 'views', function(extensionData, requestData) {

        storage.setData(extensionData);
    });
})();
</script>