Yii Framework Forum: Extension Nestedtree - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Extension Nestedtree Complex solution to handle Nested set in tree view Rate Topic: -----

#21 User is offline   yonghan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 28-January 13

Posted 20 February 2013 - 09:51 AM

Sorry,i got it working already.thanks. :)
0

#22 User is offline   Szincsák András 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 20-June 11
  • Location:Hungary, Győr

Posted 20 February 2013 - 06:43 PM

View Postyonghan, on 20 February 2013 - 09:51 AM, said:

Sorry,i got it working already.thanks. :)


I'm happy to hearing is it working already.
Please vote my extension.
Thanks for testing!
0

#23 User is offline   shaneshka 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-June 12
  • Location:Russian

Posted 24 February 2013 - 11:53 AM

Hi
Undefined variable: owner - NestedTreeActiveRecord.php(235)
Thanks
0

#24 User is offline   shaneshka 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-June 12
  • Location:Russian

Posted 24 February 2013 - 01:30 PM

And (502) Undefined variable: owner
(385),(407) $this->getOwner(),
0

#25 User is offline   Dariusz Męciński 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 04-March 09

Posted 27 February 2013 - 11:14 AM

Hello,
Good job,

But why only non-root nodes can perform action ?


 

if ($url && !$node->isRoot())
  $NodeArray['data'][$i]['href'] = $url . $node->primaryKey;



is there git for this ext ?
0

#26 User is offline   Szincsák András 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 20-June 11
  • Location:Hungary, Győr

Posted 27 February 2013 - 01:53 PM

Hi Kazio,
Thank You for your post!

As you find, there are some differences between NestedTreeActiveRecord and NestedTreeBehavior classes. It is my fault, not to compare and syncronize them.
The right solution is in the NestedTreeActiveRecord class.

if ($url)
      $NodeArray['data'][$i]['href'] = $url . $node->primaryKey;




I'm working on the next version of the extension, and if it is ready, I'm going to do git for this extension.

András
1

#27 User is offline   Szincsák András 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 20-June 11
  • Location:Hungary, Győr

Posted 28 February 2013 - 02:30 AM

View Postshaneshka, on 24 February 2013 - 01:30 PM, said:

And (502) Undefined variable: owner
(385),(407) $this->getOwner(),


Thank you for bug report!

To fix them:
in line 235 $owner->{$this->rootAttribute} change to $this->{$this->rootAttribute}
in line 385, 407 $this->getOwner() change to $this
in line 502 $Owner change to $this

András
0

#28 User is offline   Anonymouse 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 13-March 13

Posted 10 April 2013 - 08:05 AM

Being an absolute newbie I'm having a hard time following the installation and usage instructions.
Is it possible to have a Folder/File structure in zip as an example?
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • 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