#267: Nested Render Partial Collection: miss object within nested, and fail when
collection is empty
----------------------------------------------+-----------------------------
Reporter: firodj | Owner:
Type: patch | Status: new
Priority: major | Milestone: 1.0
Component: Action Controller | Resolution:
Keywords: nested render partial collection |
----------------------------------------------+-----------------------------
Comment (by firodj):
1. Nested partial with empty() object:
{{{
$Template->render(array('partial' => 'item', 'object' => array());
}}}
It should use given 'object' for $item, instead getting from controller's
$item!
2. Partial with empty() collection:
{{{
$Template->render(array('partial' => 'item', 'collection' => array()));
}}}
It should go to renderPartialCollection, instead renderPartial!
--
Ticket URL: <
http://trac.akelos.org/ticket/267#comment:1>