> I personally would be happy with:
>  - 5.1 reflection to transparently pass all smarty parameters that
> don't match in helper method in the methods array parameter
>  - allowed direct setting of array parameters with delimiter parsing
>  - allowed direct setting using assign_adv (or other array-setting plugin)

Whoops!

My understanding of ReflectionParam->isArray was incorrect it's not
availible in php userspace.  I have an example of name-matching (which
isn't so bad within a single helper, html esp.) and the cleaner
checking of $param->isDefaultValueAvailable() &&
is_array($param->getDefaultValue())

Unfortunately some helper methods have array parameters defined as ' =
null' instead of '= array()'.  This should be a reasonable request to
get into a ticket though.
To test it out now change = null to = array in the relevant function
declarations.

This is approximately what I described above if an array parameter
isn't set directly (and i have param=>value&param=>value parsing
available) then the first unset array parameter is populated with the
remaining parameters passed to the smarty function.

I also implemented assign.

This is largely untested, just wanted to bounce something back.

http://cakeforge.org/snippet/download.php?type=snippet&id=257

Travis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to