On 9/17/06, bicephale <[EMAIL PROTECTED]> wrote:

Je n'arrive pas à comprendre l'usage et l'utilisation du deuxième
paramètre de la renderElement.  Dans la documentation c'est un
array().  J'envoie un array().
Dans le fichier élément je peux lire le premier argument mais le
second argument ($params) contient rien dans sa partie Array().

Yes, it would help to post in english, at least on this list.

He is having trouble understanding what the second parameter for renderElement does.

The second parameter is an array.  Within the array you are to pass data to your element.

So in your view you would call something like this...

<?php
    echo $this->renderElement('test_element', array('my_variable_name' => 'data for variable') );
?>

In your /app/views/test_element.thtml you would then have access to $my_variable_name

<?php echo $my_variable_name; ?>

will output the text "data for variable".



--~--~---------~--~----~------------~-------~--~----~
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