CMS MADE SIMPLE FORGE

CGSimpleSmarty

 

[#4619] help example wrong for get_children() method

avatar
Created By: Fred Polizo (fredp)
Date Submitted: Thu Feb 18 22:56:03 -0500 2010

Assigned To:
Version: 1.4.3
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
help example wrong for get_children() method
Detailed Description:
The example for the get_children() method contains incorrect argument values
and, if executed, will elicit the following Notice (debug) message:
Notice: Undefined index: children in /home/.../tmp/templates_c/... on line
3...

The example contains this errant line:

     {$cgsimple->get_children('','',$children)}
 
The method itself, however, expects the second argument to be a boolean and the
third argument to be a string containing the name of a variable to assign the
results to.

I propose the following change to the example to correct the problem:
    {$cgsimple->get_children('',false,'children')}


History

Updates

Updated: 2012-08-28 20:50
cmsms_version_id: => -1
state: Open => Closed

Updated: 2010-12-13 15:41
resolution_id: => 7