Please change your code part from:
} else { pr('this->data not set!'); }
to
} else {
pr('this->data not set!');
pr($this->data);
}
So that we may be sure that $this->data is not set with anything
Enjoy,
John
On
/users/view/. When I submit it and check $_POST and
> $this->data at the very beginning of AppController->beforeFilter(),
> the form data appears in the $_POST array but $this->data does not
> have any data. In fact, $this->data is not even set by Cake!
>
> The Auth component
> HTH,
> Nick
>
> On Nov 29, 11:56 am, amfriedman wrote:
>
>
>
>
>
>
>
> > Hey folks
>
> > This is a very strange issue indeed, and at its root it is NOT related
> > to this post that declares a similar
> > symptom:http://groups.goo
am, amfriedman wrote:
> Hey folks
>
> This is a very strange issue indeed, and at its root it is NOT related
> to this post that declares a similar
> symptom:http://groups.google.com/group/cake-php/browse_thread/thread/840eaa08...
>
> I have a form in /users/view/. When I sub
Hey folks
This is a very strange issue indeed, and at its root it is NOT related
to this post that declares a similar symptom:
http://groups.google.com/group/cake-php/browse_thread/thread/840eaa08732904a1/6b214b69ad0980d4?lnk=gst&q=$_POST#6b214b69ad0980d4
I have a form in /users/view/. Wh
en though it's set in $_POST fine. Here's debug from
> $_POST (first array) and $this->data:
>
> Array
> (
> [_method] => POST
> [data] => Array
> (
> [User] => Array
> (
>
some reason, even though it's set in $_POST fine. Here's debug from
> $_POST (first array) and $this->data:
>
> Array
> (
> [_method] => POST
> [data] => Array
> (
> [User] => Array
> (
>
When trying to login to my app using auth component and form helper in
1.3.4, the password value is not being populated in $this->data for
some reason, even though it's set in $_POST fine. Here's debug from
$_POST (first array) and $this->data:
Array
(
[_method] => POST
ID in a
request header on my rest client (tried many of them) but nothing
shows in the $_POST variable. I've done a few print_r() calls for
that variable in various locations to see what pops up (pre-auth and
post-auth) but nothing seems to be passed. Am I looking in the wrong
location for inform
This is the answer ! :)
Thanks a lot :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
c
Hello,
> I need your help for another one time :)
>
> I'm creating an Application with CakePHP and ExtJS.
>
> The problem that I have is that the ExtJS send the Data to CakePHP
> with the $_POST http methos and when I save new users to my database
> the password is n
Hello all :)
I need your help for another one time :)
I'm creating an Application with CakePHP and ExtJS.
The problem that I have is that the ExtJS send the Data to CakePHP
with the $_POST http methos and when I save new users to my database
the password is not hashed with the default
7 am, mario vallejo wrote:
>> > Hello and thank you for your time and attention. I am building a
>> > Facebook app and I want to use CakePHP to build it. The problem is the
>> > following
>> >
>> > I have tried to translate this into cake to no avail:
>>
nt_r($_GET);
> echo '';
> exit;
>
>
> On Jul 16, 9:57 am, mario vallejo wrote:
> > Hello and thank you for your time and attention. I am building a
> > Facebook app and I want to use CakePHP to build it. The problem is the
> > following
> >
> >
ention. I am building a
> Facebook app and I want to use CakePHP to build it. The problem is the
> following
>
> I have tried to translate this into cake to no avail:
>
> $is_tab = isset($_POST['fb_sig_in_profile_tab']);
>
> if( !$is_tab ) $user = $fb->require_login();
>
ntinue to help .
>
> On Jul 16, 4:57 am, mario vallejo wrote:
>
> > Hello and thank you for your time and attention. I am building a
> > Facebook app and I want to use CakePHP to build it. The problem is the
> > following
>
> > I have tried to translate thi
k app and I want to use CakePHP to build it. The problem is the
>> following
>>
>> I have tried to translate this into cake to no avail:
>>
>> $is_tab = isset($_POST['fb_sig_in_profile_tab']);
>>
>> if( !$is_tab ) $user = $fb->require_login();
>&g
thank you for your time and attention. I am building a
> Facebook app and I want to use CakePHP to build it. The problem is the
> following
>
> I have tried to translate this into cake to no avail:
>
> $is_tab = isset($_POST['fb_sig_in_profile_tab']);
>
> if( !$is_
Hello and thank you for your time and attention. I am building a
Facebook app and I want to use CakePHP to build it. The problem is the
following
I have tried to translate this into cake to no avail:
$is_tab = isset($_POST['fb_sig_in_profile_tab']);
if( !$is_tab ) $user = $fb->
On Mar 11, 1:58 am, Casey Stark wrote:
> I've been searching for the best way to do this for a while and I
> agree with Martin now. I really wish cake had a more elegant solution,
> but this one is definitely the cleanest and fastest.
What is hard about doing:
function index() {
if ($this->da
$this->redirect('search/name:'.$this->params['url']['name']);
> }
>
> }
>
> On Feb 11, 9:40 am, Miles J wrote:
>
> > So I have a search/browse system thats pluggedintopagination.
> > Everything works fine as a $_POST, th
Would I need to add on to it for each get variable in the query?
&name=asds&age=&ad=34234234 etc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegr
RewriteCond %{QUERY_STRING} ^q=(.*)$
RewriteRule ^(products/search(/[^/]+)*)/?$ /$1/q:%1? [R=301,L]
Will rewrite (for example) `/products/search/page:2/?q=bacon` to `/
products/search/page:2/q:bacon`
hth
grigri
On Feb 11, 9:08 pm, Miles J wrote:
> Anyone have an idea how to do the .hta
Anyone have an idea how to do the .htaccess?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email t
ything works fine as a $_POST, the data is returned and paginated
> BUT the second I resort the results using the pagination, I lose all
> the search queries/terms.
>
> How can I turn $_GET or $_POST into named params so that they are
> continually
Giang Son Dat
Mobile: +84 988114164
Email giangson...@gmail.com, giangson...@yahoo.com
On Wed, Feb 11, 2009 at 12:40 AM, Miles J wrote:
>
> So I have a search/browse system thats plugged into pagination.
> Everything works fine as a $_POST, the data is returned and paginated
> BUT the
@majina - I know that, but I need to CREATE the named params from the
get or post.
@martin - Yeah thats what I was thinking, just wondering if theres
another way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake
tem thats plugged into pagination.
> Everything works fine as a $_POST, the data is returned and paginated
> BUT the second I resort the results using the pagination, I lose all
> the search queries/terms.
>
> How can I turn $_GET or $_POST into named params so that they a
On Feb 11, 9:40 am, Miles J wrote:
> So I have a search/browse system thats plugged into pagination.
> Everything works fine as a $_POST, the data is returned and paginated
> BUT the second I resort the results using the pagination, I lose all
> the search queries/terms.
>
> How
So I have a search/browse system thats plugged into pagination.
Everything works fine as a $_POST, the data is returned and paginated
BUT the second I resort the results using the pagination, I lose all
the search queries/terms.
How can I turn $_GET or $_POST into named params so that they are
Martin, you were spot on! For my submit buttons I was adding a
method: 'post' parameter and for all other links I wasn't.
Turns out that ModalBox will carry apply GET as default (if no method
parameter specified) but once you do specify a method it will continue
to use it. Now that I added meth
In that case it sounds to me like the problem might be in the
javascript, not on the server-side. It is at least not a general bug
in CakePHP (for example I have several forms submitted over and over
via ajax working fine).
Are you sure that when you go from "index" to "add" in your modal that
it
Arggh ... same problem when using redirect!
1. Open my modal window which runs 'index' action
2. Click on 'Add' link which runs 'add' action and displays the form
3. Fill in and submit the form which runs 'add' action, saves the data
and redirects to 'index' action
4. Click on 'Add' link which
Arggh ... same problem when using redirect!
1. Open my modal window which runs 'index' action
2. Click on 'Add' link which runs 'add' action and displays the form
3. Fill in and submit the form which runs 'add' action, saves the data
and redirects to 'index' action
4. Click on 'Add' link which
Martin,
Looks like I've been banging my head against a brick wall for
nothing! Your advice to simply use redirect(), and my semi belief
that I couldn't, made me search the group for 'ajax redirect' and I
came across the following post
http://groups.google.com/group/cake-php/browse_thread/thread
Thanks for your reply Martin, but a redirect() would create a new http
request (loading a whole new page) rather than an ajax call to update
the content within my modal window. On normal pages I do use redirect
() after a successful form post, it's just when working with ajax
calls that I need to
edit again $this->data gets repopulated with the
> previously posted data and rather than display the form the add/edit
> action processes the request with the previous data.
>
> I have tried unsset($this->data) which is pointless as my index action
> resets this anyway, and I
ed unsset($_POST) to no
avail.
I thought that each Ajax request was unique so I am confused as to how
previous POST data is available in subsequent add/edit requests?!?
Can anyone shed light on this?
For reference I am using ModalBox using a javascript call from onclick
events as follows:
$h
27;s
> routes.
>
> However, this is where I have the disconnect. The external website
> that calls my cake code will alway just call www.example.net/posts.
> It will never call www.example.net/posts/add/5, www.example.net/posts/add,
> or www.example.net/posts/5. It would store the acti
.net/posts/add/5,www.example.net/posts/add,
> orwww.example.net/posts/5. It would store the action & id in the
> $_POST array. I believe the only way that I can do this is to have the
> posts->index() (default controller action) and parse the $_POSTS and
> then recall the dispatche
d store the action & id in the
$_POST array. I believe the only way that I can do this is to have the
posts->index() (default controller action) and parse the $_POSTS and
then recall the dispatcher with a posts/add/5 as url.
Being new with this framework. I just wanted to know if I'
On Mon, Nov 3, 2008 at 10:09 AM, Todd M <[EMAIL PROTECTED]> wrote:
>
> I'm a newbie here, but I think I understand the whole url/controller/
> action/parm1/parm2 routing convention. However is there a way that
> you use the _POST array to rout to the correct action/parm
I'm a newbie here, but I think I understand the whole url/controller/
action/parm1/parm2 routing convention. However is there a way that
you use the _POST array to rout to the correct action/parm's
For instance, I'll always be using the www.example.net/my_controller,
which
Hi David,
I checked the post_max_size, it says its 8M
The wierd thing is, if I look at my $_POST any time before that line
in controller.php its fine.
The post is there in its entirety and I can access it.
It seemed to be specific to cake's bootstrap/startup process.
cheers,
Tony.
On A
Hi there
Could it be something to do with your php.ini's post_max_size
directive value?
David
On Aug 27, 4:55 pm, neverlosty <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having an issue where I'm trying to post a very large (1M) string
> through http $_POST
Hi,
I'm having an issue where I'm trying to post a very large (1M) string
through http $_POST
For some reason when cake is starting up, in
cake/libs/controller/controller.php
[line 387] $this->Component->init($this);
After that it just dies. When I try to debug the Component.p
FF2 and WinXP here, and it is working fine - repeated submits (new or
same data) always comes through.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@
ith a random value, and adding a random number as a parameter
> to the end of my URL. I'm still getting the same outcome. What's
> weird, even if $_POST isn't being populated, I can refresh Firefox,
> and the popup box that says "The page you are trying to view contai
I'm not sure what the trick is. I tried sticking in my , adding the hidden
field with a random value, and adding a random number as a parameter
to the end of my URL. I'm still getting the same outcome. What's
weird, even if $_POST isn't being populated, I can refresh Firefo
Okay, I tried using Galeon a few more times.
1) Enter "abc" / "def"
2) Submit
3) Page draws with post
4) Sumbit again.
5) Page draws with no post (clears fields)
6) Enter "abc" / "def"
7) Submit
8) Page draws with post
9) add "d" to the end of "abc"
10) Submit again
11) Page draws with post
So m
Wierd.
>
> Jeff
>
> On Sep 26, 3:59 pm, Jon Hinson <[EMAIL PROTECTED]> wrote:
>
> > How many times did you try submitting the form? This is very odd. What
> > browser are you using? I tried to reproduce the problem on my iPhone
> > using Safari, and it took many
ore submittions, but out of about 20
> submittions, $_POST was not populated 3 times. I know that doesn't
> sound like much, but when it's almost EVERY time after the second
> submission with IE 6 and Firefox, it's very frustrating and I want to
> know what I'm doing w
How many times did you try submitting the form? This is very odd. What
browser are you using? I tried to reproduce the problem on my iPhone
using Safari, and it took many more submittions, but out of about 20
submittions, $_POST was not populated 3 times. I know that doesn't
sound like much
>From what I can tell Jon, $_POST populated as expected.
It was only empty when I loaded the page the first time.
Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
When I try to submit any forms multiple times in a row(if I've entered
incorrect login information, for example), after the first or second
submission, it's as if I just loaded the page without my form posting.
I broke my code down to simplify it and try to find the problem, but
I'm having no luck
No.
http://us.php.net/json_decode
On Jun 27, 2:54 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> > Data is escaped properly when it is inserted into the db which
> > prevents sql injection. You then escape output so to remove unexpected/
> > malicious output.
>
> Is there any chance of mal
> Data is escaped properly when it is inserted into the db which
> prevents sql injection. You then escape output so to remove unexpected/
> malicious output.
Is there any chance of malicious PHP code inserted as input that would
get executed during the massaging of data to get it into $this->dat
Data is escaped properly when it is inserted into the db which
prevents sql injection. You then escape output so to remove unexpected/
malicious output.
1. function beforeFilter() {
2. if(isset($this->params['form']['json'])) {
3. $this->data = json_decode($this->params['form'
> you dont need to sanitize. I can see the beforeFilter being about 4
> lines of code max. Seems pretty painless to me
1) Why don't I need to sanitize. I don't trust this data as it is
coming from a form.
2) Would you mind posting these "4 lines of code" or pseudo code?
--~--~-~--~~
you dont need to sanitize. I can see the beforeFilter being about 4
lines of code max. Seems pretty painless to me
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Hi,
I'm considering using GWT for my UI with my existing cakephp backend.
To communicate with the server I encode all my post variables into one
JSON variable and perform an asynchronous post. I would then like
cakephp to decode the JSON and assign it to $_POST before it does
anything else.
I knew about this way but as I didn't use it, was forgotten about it.
Without .htaccess files and with "define ('BASE_URL', env('SCRIPT_NAME'));"
everything works just fine.
Thanks, at least something now is working.
On 16/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Why don't you try
Why don't you try to take off .htaccess files and change core.php
configuration to use the index.php directly. See if that works that
way without mod_rewrite and then you will know for sure.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
r and mod_rewrite is not ok.
I'll let know what was solution.
Andris
On 16/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> If the $_POST isn't getting set by a form, then that almost seems like
> an webserver issue. Now, if the $_POST wasn't being put into C
If the $_POST isn't getting set by a form, then that almost seems like
an webserver issue. Now, if the $_POST wasn't being put into CakePHP's
$this->params['form'] it would be a CakePHP thing.
I have had problems if I didn't explicitly put the method="post&
Helo there,
I've been playing with CakePhp for some time and so far it was easy and great.
But now this problem arises - project is moved to production server,
to which i have only limited ftp access and after moving forms return
empty $_POST array.
mod_rewrite, as I guess, is working -
66 matches
Mail list logo