Hello

I want to view the image Path (country flag ) from my database when
i'm edititing my language but the value attribute dont show.

I want to have something like this :
<input type="file" value="image_path_from_database" />

in my view i try to do this :

<?php echo $html->file('File', array('value' => 'Language/picture')); ?
>

languages table have 3 fields id , name and picture . I want to edit
my picture field in my file upload tag.

function edit($id = null)
{
    $category = $this->Language->findById($id);
    $this->set('language', $language);

    if (empty($this->data))
    {
        $this->Language->id = $id;
        $this->data = $this->Language->read();
    }
    else
    {
        if ($this->Language->save($this->data['Language']))
        {
            $this->flash('Jezyk zostala zaktualizowany','/languages/
language_list');
        }
    }
}

Any ideas ?

Stanley


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

Reply via email to