Voila ce que dit l'api.
Tu as bien utilisé le Helper, mais c'est les navigauteur qui ne suivent pas.
Est-ceque ce lien repond à ta question ?

http://www.cs.tut.fi/~jkorpela/forms/file.html (voir "Setting the
default filename")




00321 /**00322  * Creates file input widget.00323  *00324  * @param
string $fieldName Name of a field, like this
"Modelname/fieldname"00325  * @param array $htmlAttributes Array of
HTML attributes.00326  * @param boolean $return Wheter this method
should return a valueor output it. This overrides AUTO_OUTPUT.00327  *
@return mixed Either string or echos the value, depends on AUTO_OUTPUT
and $return.00328  * @access public00329  */00330
<http://api.cakephp.org/class_html_helper.html#5fe3c35e571b2b9305c175b0dbe6fa84>
    function file
<http://api.cakephp.org/class_html_helper.html#5fe3c35e571b2b9305c175b0dbe6fa84>($fieldName,
$htmlAttributes = array(), $return = false) {
00331         if (strpos($fieldName, '/')) {
00332             $this->setFormTag
<http://api.cakephp.org/class_html_helper.html#304af1b7830d51e2f7a7e404d8e8b1ea>($fieldName);
00333             if (!isset($htmlAttributes['id'])) {
00334                 $htmlAttributes['id'] = $this->model .
Inflector::camelize
<http://api.cakephp.org/class_inflector.html#73daaf41938234f46c4b9beb1d339ba8>($this->field);
00335             }
00336             return $this->output
<http://api.cakephp.org/class_helper.html#bec896c5714166e8495d1bfd02d61054>(sprintf($this->tags['file
<http://api.cakephp.org/class_html_helper.html#5fe3c35e571b2b9305c175b0dbe6fa84>'],
$this->model, $this->field, $this->_parseAttributes
<http://api.cakephp.org/class_html_helper.html#1fbd16e99496c01b468e184557748c03>($htmlAttributes,
null, '', ' ')), $return);
00337         }
00338         return $this->output
<http://api.cakephp.org/class_helper.html#bec896c5714166e8495d1bfd02d61054>(sprintf($this->tags['file_no_model'],
$fieldName, $this->_parseAttributes
<http://api.cakephp.org/class_html_helper.html#1fbd16e99496c01b468e184557748c03>($htmlAttributes,
null, '', ' ')), $return);
00339     }



On 4/11/07, valinoir <[EMAIL PROTECTED]> wrote:
>
>
> Bonjour,
>
> J'ai un petit probleme avec $html->file();. En effet, je souhaiterai
> afficher le nom de mon fichier dans le champ file ds ma vue. J ai
> fait : $html->file('CommonProfile/picture', array('value' =>
> $view_picture), true); mais cela ne fonctionne. Ma variable
> $view_picture contient une valeur mais rien ne s affiche ds le champ.
>
> Pouvez-vous m'aider?
> Merci
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~

Groupe "Cakephp-fr".
Adresse : [email protected]
Pour résilier  : [EMAIL PROTECTED]
Pour les options : http://groups.google.com/group/cakephp-fr?hl=fr
-~----------~----~----~----~------~----~------~--~---

Répondre à