Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to make single form sumbit two action files.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Suriyakala Govindaraj  
View profile  
 More options Sep 5 2012, 10:04 pm
From: Suriyakala Govindaraj <vksuriya2...@gmail.com>
Date: Thu, 6 Sep 2012 10:04:18 +0800
Local: Wed, Sep 5 2012 10:04 pm
Subject: how to make single form sumbit two action files.

Hi everybody,

anybody ple help me,

how can i make one form post two action files.

plz help me.

<form action ="<?php echo url_for('@meetnewpeople_edit') ?>"
id="meetnewpeople"  ..... method="post"  enctype="multipart/form-data" >

public function executeedit(sfWebRequest $request)

{
if($request->isMethod('post'))
      {

}
}

public function excuteprivacy(sfWebRequest $request)

{


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Parijat Kalia  
View profile  
 More options Sep 5 2012, 10:49 pm
From: Parijat Kalia <kaliapari...@gmail.com>
Date: Wed, 5 Sep 2012 19:49:13 -0700
Local: Wed, Sep 5 2012 10:49 pm
Subject: Re: [symfony1] how to make single form sumbit two action files.

Make executePrivacy private and call the method from within executeEdit.
This is an Object Oriented design question than a Symfony related question.

Sent from my iPhone

On Sep 5, 2012, at 7:04 PM, Suriyakala Govindaraj <vksuriya2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suriyakala Govindaraj  
View profile  
 More options Sep 5 2012, 11:02 pm
From: Suriyakala Govindaraj <vksuriya2...@gmail.com>
Date: Thu, 6 Sep 2012 11:02:53 +0800
Local: Wed, Sep 5 2012 11:02 pm
Subject: Re: [symfony1] how to make single form sumbit two action files.

hai,
thnks for ur reply
 i maked private function after that call executeedit.
 but records are  store in only one table.

public function executeEdit(sfWebRequest $request)
  {
    $meetnewpeople=Doctrine_Core::getTable('Meetnewpeople')->find(array($reques t->getParameter('id')));
    $this->form = new MeetnewpeopleForm();
    $create_meetnewpeople = new Meetnewpeople();
    $this->layers = $this->personal->getLayer();
    if($request->isMethod('post'))
    {
    $this->layers = $this->personal->getLayer();
    $create_record = $request->getParameter('meetnewpeople');
       $create_record['personal_id'] =
$this->getUser()->getAttribute('detail')->getId();
         //var_dump($create_record['personal_id']);
        if($request->hasParameter('_doneplan'))
        {
         $create_record['draft'] = 1;
         if(is_array($create_record))
        $obj_meetnewpeople=$create_meetnewpeople->saveRecord($create_record);
        //$create_meetnewpeople->setDraft(1);
        }
        else if($request->hasParameter('_saveplan'))
        {
           $create_record['draft'] = 2;
         if(is_array($create_record))
        $obj_meetnewpeople=$create_meetnewpeople->saveRecord($create_record);
                }
        else
        {
             $create_record['draft'] = 0;
         if(is_array($create_record))
        $obj_meetnewpeople = $create_meetnewpeople->saveRecord($create_record);
                        }
         $meetnewpeople =
Doctrine::getTable("Meetnewpeople")->find($request->getParameter("id"));

         $create_meetnewpeople = $create_meetnewpeople->getDataInArray();
         $peopleprivacy=$request->getParameter('Peopleprivacy');
         $relativeId=$request->getParameter("friendId");
        //if(isset($peopleprivacy))
       // {
        // if($peopleprivacy[2] =="layerpeople")
        // {
         $creatorId=$this->getUser()->getAttribute('detail')->getId();
         $relativeId=$request->getParameter("friendId");
         $meetnewpeopleId=$obj_meetnewpeople['id'];
         var_dump($meetnewpeopleId);
         $type="plan";
         $is_allowed="1";
         $privacypeople=
Doctrine::getTable("PrivacyProfilePlanpeople")->savePlanPrivacy($creatorId, $meetnewpeopleId,$relativeId,$type);

         //$privacypeople_obj=
Doctrine_Query::create()->select('p.id,p.relativeId')->from('PrivacyProfile Planpeople
p');
          //var_dump($privacypeople_obj);
        //}
        //}
        }

        }

this is my code.

plz help me.

what can i missed.

On Thu, Sep 6, 2012 at 10:49 AM, Parijat Kalia <kaliapari...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Parijat Kalia  
View profile  
 More options Sep 6 2012, 12:10 am
From: Parijat Kalia <kaliapari...@gmail.com>
Date: Wed, 5 Sep 2012 21:10:04 -0700
Local: Thurs, Sep 6 2012 12:10 am
Subject: Re: [symfony1] how to make single form sumbit two action files.

Dude, don't post your entire code. Can you show me only the code where you attempt to insert this information in two different tables ?
Thanks,
Parijat

Sent from my iPhone

On Sep 5, 2012, at 8:02 PM, Suriyakala Govindaraj <vksuriya2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suriyakala Govindaraj  
View profile  
 More options Sep 6 2012, 12:19 am
From: Suriyakala Govindaraj <vksuriya2...@gmail.com>
Date: Thu, 6 Sep 2012 12:19:08 +0800
Local: Thurs, Sep 6 2012 12:19 am
Subject: Re: [symfony1] how to make single form sumbit two action files.

hai,

saverecord function and  saveplanprivacy

        $obj_meetnewpeople =
$create_meetnewpeople->*saveRecord*($create_record);
                        }

        //if(isset($peopleprivacy))
       // {
        // if($peopleprivacy[2] =="layerpeople")
        // {
         $creatorId=$this->getUser()->getAttribute('detail')->getId();
         $relativeId=$request->getParameter("friendId");
         $meetnewpeopleId=$obj_meetnewpeople['id'];
         var_dump($meetnewpeopleId);
         $type="plan";
         $is_allowed="1";
         $privacypeople=
Doctrine::getTable("PrivacyProfilePlanpeople")->*savePlanPrivacy*($creatorI d,$meetnewpeopleId,$relativeId,$type);

On Thu, Sep 6, 2012 at 12:10 PM, Parijat Kalia <kaliapari...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Parijat Kalia  
View profile  
 More options Sep 6 2012, 12:33 am
From: Parijat Kalia <kaliapari...@gmail.com>
Date: Wed, 5 Sep 2012 21:33:36 -0700
Local: Thurs, Sep 6 2012 12:33 am
Subject: Re: [symfony1] how to make single form sumbit two action files.

Which of the two is not working ?

Sent from my iPhone

On Sep 5, 2012, at 9:19 PM, Suriyakala Govindaraj <vksuriya2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »