Cakephpdocs 58

CategoryHTML helper functions - nestedList
Code ExamplesnestedList( list[array], attributes[array], itemAttributes[array], tag[string] ) $posts = array( 'Post 1'=>array( 'Jan 1, 2008', 'No Author'), 'Post 2'=>array( 'Jan 2, 2008', 'Administrator') ); By placing this array in the list parameter of the $html->nestedList() function, the following HTML would be returned:
  • Post 1
    • Jan 1, 2008
    • No Author
  • Post 2
    • Jan 2, 2008
    • Administrator
Test Code
Links
Remarks
Cancel