Development

Changeset 4048

You must first sign up to be able to contribute.

Changeset 4048

Show
Ignore:
Timestamp:
05/19/07 02:09:41 (6 years ago)
Author:
Jonathan.Wage
Message:

sfDoctrineNestedSetManagerPlugin?: added usage examples.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrineNestedSetManagerPlugin/README

    r4027 r4048  
     1= Symfony Doctrine Nested Set Manager Plugin = 
     2 
     3== Installation == 
     4You must enable the module for the nested set manager in your application settings.yml 
     5{{{ 
     6all: 
     7  .settings: 
     8     enabled_modules:        [default, sfNestedSetManager] 
     9}}} 
     10 
     11== Usage == 
     12{{{ 
     13<?php 
     14// Category nested set with 1 root 
     15echo get_nested_set_manager('Category', 'name'); 
     16 
     17// Comments nested set with multiple roots 
     18// echo get_nested_set_manager('Comment', 'body', 1); // 3rd argument is the root id of the nested set tree 
     19?> 
     20}}}