i am using cake1.1.12.4205 give me example codin this is my controller
coding


var $helpers = array('Html', 'Form' );
 function add()
 {
  $this->set('catArray', $this->Product->Category-
>generateList(null,null,null,'{n}.Category.id','{n}.Category.catname'));
  if (!empty($this->data))
  {
   if($this->data["Category"]["catid"] == "" || $this->data['Product']
['prodname'] == ""|| $this->data['Product']['description'] == "" ||
$this->data['Product']['imgpath'] == "" || $this->data['Product']
['price'] == "" )
         {
    $this->Session->setFlash('Please correct errors below.');
   }
   else
   {
    $currentFile = $this->params['data']['File']['imgpath'];
    $filePath ="C:/www/gadgets/app/views/img/".$currentFile['name'];
    if(!file_exists($filePath))
    {
     if (is_uploaded_file($currentFile['tmp_name']) &&
     move_uploaded_file($currentFile['tmp_name'], $filePath))
     {
      echo "No Error";
     }
    }
   }
  }

    }

Please Give me an sample coding.

Thanks and Regards,


On Feb 23, 2:44 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote:
> anandrv wrote:
> > I have Developed by Registration Page.I need After Registration
> > Completed the Thank you mail was send to the user and the Admin also
> > received one mail.Please Give me examples.
>
> Which version of Cake do you use? In 1.2 there is a very nice email
> component, what is easy to use.
>
> --
> Ámon Tamáshttp://linkfelho.amon.hu


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