E
E
EVOSandru62015-01-12 14:35:58
Yii
EVOSandru6, 2015-01-12 14:35:58

How to pull the parent in Yii Nested Set behavior?

I tried this webnotes.by/docs/php/yii/derevo-kategoriy-v-yii-s-... I downloaded the extension from here: https://github.com/yiiext/nested-set-behavior id - shnik is not involved. Then 1. How to pull out the parent all the same? (I also tried $parent=$category->parent; - but as I understand it, the property was meant; Taken from here www.yiiframework.com/extension/nestedsetbehavior ) 2. What is meant by getRoot (which function is not in the behavior)
$root = Category::getRoot(new Category);


Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question