On 11/3/06, sbarre <[EMAIL PROTECTED]> wrote:
>
> That's pretty slick actually.. I never really thought about extending
> the compiler to accept some sort of native array parameter..
>
> I'm a broken record on this, but I would have to extend this to support
> nested arrays like:
>
> {helper html->select('Model/field', Array('tabindex' => 1, 'options' =>
> Array(0 => 'No', 1 => 'Yes'), 'class' => 'selector' ))}
I'd like to see multi-level support with the compiler plugin as well
-- I think that approach is the most viable for php4 users.
Rene, could you post that as a snippet so I can point to it in the
SmartyView bakery article?
Sorry about the delay on getting things out.
I've taken in your changes sbarre but have retained my functionality as well.
For example:
{html func=image path='url/to/image.png' class='image old' border='0'}
or
{html func=radio fieldName='Model/field' options_value1='option1'
options_value2='option2' inbetween='<hr />' class='radioclass'}
You can also use direct assignment from controller or from
assign_adv/assign_assoc as well.
http://cakeforge.org/snippet/detail.php?type=package&id=31
http://cakeforge.org/snippet/download.php?type=snippet&id=277
I also added an optional __show_call=true parameter to var_dump
$parameters before the call.
I put some initial doc here (feel free to email me with
additions/changes to the article):
http://bakery.cakephp.org/articles/view/138
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?hl=en
-~----------~----~----~----~------~----~------~--~---