I did not really 'need' the row count. That was just some piece of data I
passed to the server to prove I could pass data to the server.

Thanks.
 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of brian
Sent: Sunday, January 04, 2009 2:46 AM
To: [email protected]
Subject: Re: Adding table row with AJAX


On Sat, Jan 3, 2009 at 10:05 PM, Steven Wright <[email protected]>
wrote:
>
> In addition, just to prove I am not a complete dope. I get how this 
> works, just not with CakePHP.
>
> AJAX_TEST.PHP
>
> <?php
>
> $row_count = ($_POST['row_count'] + 1);
>
> echo "<tr id=\"row$row_count\"><td>Content for row 
> $row_count</td></tr>";
>
> ?>

With Cake, you'd find the row_count value in
$this-params['url']['row_count']

Debugger::dump($this->params);

or

debug($this-params);

or pr() or anything else to get a look at that array.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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