WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : Treeview 
loaded from path

Tutorials

>

Tutorial Treeview

>

Tutorial : Treeview loaded from path


Treeview-02: Tutorial of the composant Treeview of the PHP FrameWork WebSite-PHP.

Tutorial : Treeview loaded from path:



Go back to tutorial of the componant Treeview



Source code

Source code


File: /pages/tutorials/treeview/treeview-02.php

<?php
class Treeview02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Treeview 
                    loaded from path"
;
        
        
$tree = new TreeView("tree02");
        
        
// To display a dialog box with file information
        // you can use {#file} to display all the path
        
$dialog = new DialogBox('File''You click on the file {#filename}');
        
        
// Create the tree from the current folder
        
$tree->loadFromPath(dirname(__FILE__), $dialog);
        
        
$this->render $tree;
    }
}
?>


Go back to tutorial of the componant Treeview


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker