Yii Framework Forum: [EXTENSION] sFileTree - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] sFileTree Rate Topic: -----

#1 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 08 October 2009 - 02:03 AM

This is a wrapper for the jquery file tree plugin

Extension:
http://www.yiiframew...nsion/sfiletree

Homepage:
http://abeautifulsit....php?article=58
Demo:
http://abeautifulsit..._files/58/demo/

Usage:
<?php
$this->widget('application.extensions.filetree.SFileTree',
    array(
    "div"=>"filetree",
    "root"=>"/my/path/",
    "expandEasing"=>"easeOutBounce",
    "collapseEasing"=>"easeOutBounce",
    "multiFolder"=>"false",
    "callback"=>"callback",
    )
);
?>
 <div id="filetree"> </div>

1

#2 User is offline   Snakeo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 14-January 10

Posted 14 January 2010 - 09:50 AM

Hi i make widget and have many of this notices:
Notice: Undefined variable: root in...

can somebody take me a tip how to fix this ?
thx
0

#3 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 14 January 2010 - 10:03 AM

Could you please copy paste the errors here?
0

#4 User is offline   Snakeo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 14-January 10

Posted 14 January 2010 - 10:28 AM

Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 21

Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 22


      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 28
    * untitled folder

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34
    * avatar.jpg

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34
    * DSC00031.JPG

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34
    * DSC00032.JPG

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34

      Notice: Undefined variable: root in /var/www/jqft/assets/3caddf9c/jqueryFileTree.php on line 34


you can see there that i can see and work with directories and files correctly but still i have notices
0

#5 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 14 January 2010 - 10:42 AM

Please check if the first line in filetree/resources/jqueryFileTree.php is
$root = isset($root) ? $root : "";

If it's not there add it
Then delete your the sfiletree folder in assets and try again
1

#6 User is offline   Snakeo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 14-January 10

Posted 14 January 2010 - 10:45 AM

View PostSpyros, on 14 January 2010 - 10:42 AM, said:

Please check if the first line in filetree/resources/jqueryFileTree.php is
$root = isset($root) ? $root : "";

If it's not there add it
Then delete your the sfiletree folder in assets and try again



thx it helps... i added there that condition but i didnt del assests.
0

#7 User is offline   mongoose76 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 13-January 11

Posted 27 January 2011 - 09:08 AM

Hi,

Does anybody know how to refresh the tree after it has been created? I am using this extension to view files in a upload folder on the server. As soon as I finish uploading the files I want to refresh the tree (without reloading the page of course). Anybody know how to do that? I am having trouble understanding how to access the jQuery created object and what method to call to re-fetch the file list in the server.
0

#8 User is offline   sowmya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 19-August 11

Posted 08 September 2011 - 05:13 AM

hi i am not getting any error in sfiletree, but the controll is not passing from sfiletree.php to jqueryFileTree.php.
can any one tel how it can be done.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users