On Thu, Mar 19, 2009 at 4:55 AM, Daniel Lima <cont...@daniellima.info> wrote:
> Hi,

Try to rewrite following option

>         <option value=""
>                 tal:repeat="item grid/pager/viewOptions"
>                 tal:content="item/label"
>                 tal:attributes="value item/value; selected php: item.value
> == grid.resultsPerPage">100</option>

as

<tal:block repeat="item grid/pager/viewOptions">
  <option value=""
    tal:content="item/label"
    tal:define="val item/value"
    tal:attributes="value item/value; selected php:(val ==
grid.resultsPerPage)">100</option>
</tal:block>

It seems php cannot access iterating variable (item) and gives notice
about trying to access (non-object).value...

Could someone please tell more about "php:" and iterating variables?

--
kaaposc

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to