Yii Framework Forum: Http Request with parameters2 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Http Request with parameters2 Rate Topic: -----

#1 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 30 July 2012 - 11:46 AM

Here's the http request:
http://localhost/agr...{sender_number}

and here's my accept controller:

<?php


/*
*This will handle $_Post requests
*/
class PostController extends Controller{

public function actionEdit($sender_number)
{


$ourFileName = "c:\\xampp\\htdocs\\test\\zzzz.txt";
$ourFileHandle = fopen($ourFileName, 'a') or die("can't open file");
fwrite($ourFileHandle, $sender_number."lollers\n");
fclose($ourFileHandle);
}

}

?>

Is there something wrong? it says edit?$sender_number=${sender_number}is in error
0

#2 User is offline   Sler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 97
  • Joined: 17-July 12

Posted 30 July 2012 - 12:07 PM

resolved issue. sorry2x.

new http request: http://localhost/agr...{sender_number}
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users