Do you have any fields added or removed from this form after the page
is rendered?
If so, this will invalidate the security token. The answer to that
problem is to add those fields into $this-Security-disabledFields so
it does not include them in the security validation process.
HTH, Paul.
On
Yeah, something wrong with your server/app configuration if google
routes are including an index.php file in URLs.
On Aug 21, 8:21 pm, Tilen Majerle tilen.maje...@gmail.com wrote:
For me it's working well..
Actually...this is maybe because you are not using .htaccess...i didn't
check this !
Is this a duplicate of
http://groups.google.com/group/cake-php/t/ebc7e3fae211161e?
On Aug 21, 8:05 am, jtan...@gmail.com wrote:
Hi,
Is this a bug? Am using latest 1.3 CakePhP, running
$this-Form-create('hello')
Gives me
Usual html form with action calling 'hellos' instead of
The problem is the value sky needs single quotes around it otherwise
MySQL tries to find a field with that name. The bigger problem is I
have no idea why Cake would take the value and not wrap it in single
quotes as it always has done for me no matter what version I have
used.
What do you get if
Yes. Sorry about that.
Sent from my BlackBerry® wireless handheld
-Original Message-
From: WebbedIT p...@webbedit.co.uk
Sender: cake-php@googlegroups.com
Date: Sun, 21 Aug 2011 23:40:12
To: CakePHPcake-php@googlegroups.com
Reply-To: cake-php@googlegroups.com
Subject: Re: Form generation
In the updateAll() section of the CakePHP Book (http://
book.cakephp.org/view/1031/Saving-Your-Data) has the following
information box:
The $fields array accepts SQL expressions. Literal values should be
quoted manually.
It's a bit terse, but basically it's saying that if you want to update
a
Thanks a lot! this worked! thanks. by the way, just ask'in, is it safe to
remove those fields via javascript in clientside?
On Mon, Aug 22, 2011 at 11:00 AM, WebbedIT p...@webbedit.co.uk wrote:
Do you have any fields added or removed from this form after the page
is rendered?
If so, this
I using cakephp email component. In my live server $this-Email-
send() return success. but mail is not receiving. what is the
problem?? i need to find whats the error ?
$this-Email-from = Mysitename no-re...@mysite.com;
$this-Email-to = sam...@gmail.com
Hi,
I know I should not take your time on this. If you are free, please kindly
help me by checking my sites security.
I just wanted to do it as a open source.
The source code is free download.
If you found any problem, please mail me at prabha.riddles at gmail dot com
Hi 3p3r,
Yes, you can safely add/remove fields in the form BUT only if you set
`$this-Security-validatePost = false` on top of the action that will
receive your form data.
Cheers,
OJ
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
Or you can those fields that you want to add/remove by JavaScript in
`$this-Security-disabledFields` as suggested by WebbedIT. :)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
The best way is to fix that warnings and notices. Good app never
throws this kind of shit.
On 18 авг, 20:18, p r perab...@googlemail.com wrote:
yes the Requesthandler is in use and the debug level is set correctly
to 0 but errors and notices doesn't care.
It seems the backtrace is added before
maybe you have forgot to configure smtp settings in your cakephp.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from
hi!
Am Sonntag, den 21.08.2011, 15:14 -0700 schrieb Seth Barrett:
When I add that I get error 500 page.
what is logged in the webserver's error log?
bye,
Sebastian
Am Freitag, den 19.08.2011, 05:26 -0700 schrieb Seth Barrett:
[...]
Root .htaccess -
AddType x-mapp-php5 .php
IfModule
I am currently using 11 shared hosting for a website with cake and it is
running perfectly.
First thing you have to do is *let the URL point to the applications webroot
directory.*
Then modify you .htaccess file in the webroot directory to:
IfModule mod_rewrite.c
RewriteEngine On
What am I doing wrong? It must be something. Keep in mind this is all
I have in the .htaccess files. There is nothing else as I started with
blank text pages. Any direction would be greatly appreciated.
Sometimes when u give write permission to folder .. it will show 500
internal server
tnx :D
On Mon, Aug 22, 2011 at 12:30 PM, O.J. Tibi ojt...@gmail.com wrote:
Or you can those fields that you want to add/remove by JavaScript in
`$this-Security-disabledFields` as suggested by WebbedIT. :)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
no dude... other mail functions from this controller are working fine
On Mon, Aug 22, 2011 at 2:05 PM, abhimanyu bv vmabhi...@gmail.com wrote:
maybe you have forgot to configure smtp settings in your cakephp.
--
Our newest site for the community: CakePHP Video Tutorials
Thanks for the replies guys but I still don't know how I go about
making them safe. What would I need to do?
thanks
On Aug 20, 6:03 pm, WebbedIT p...@webbedit.co.uk wrote:
On Aug 19, 3:08 pm, Ryan Schmidt google-2...@ryandesign.com wrote:
Hopefully your database server is only accessible
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on the query Type I would like to make different checks.
If it is not possible, then I have to do it in the controller in several
actions.
As always: Thanks in
Look at Model::findQueryType :-)
Am 22.08.2011 15:56, schrieb Anja Liebermann:
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on the query Type I would like to make different checks.
If it is not possible,
did that. It is always NULL :(
Anja
Am 22.08.2011 16:25, schrieb Thomas Ploch:
Look at Model::findQueryType :-)
Am 22.08.2011 15:56, schrieb Anja Liebermann:
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on
The findQueryType is reset before afterFind() is executed. So assigning
the value to a class var in beforeFind() and reading it in afterFind()
should work.
:-)
Am 22.08.2011 16:33, schrieb Anja Liebermann:
did that. It is always NULL :(
Anja
Am 22.08.2011 16:25, schrieb Thomas Ploch:
Look
Woops, actually Model::findQueryType is __not__ reset before afterFind()
is triggered. You should normally be able to check for
Model::findQueryType in the afterFind() Callback.
Are you using custom find types?
Regards,
Thomas
Am 22.08.2011 16:33, schrieb Anja Liebermann:
did that. It is
But I need the value IN the afterFind method. Not before or after.
Well I do the checks now in the index and view methods of the controller.
Anja
Am 22.08.2011 16:39, schrieb Thomas Ploch:
The findQueryType is reset before afterFind() is executed. So assigning
the value to a class var in
As Thomas said, $this-findQueryType should definitely work in the
afterFind().
Which version of cakephp are you using ?
Can you show us the afterFind code ?
On Mon, Aug 22, 2011 at 5:55 PM, Anja Liebermann
anja.lieberm...@platinnetz.de wrote:
But I need the value IN the afterFind method. Not
I use the pagination, but there is quite a weird condition in the query:
Here is the query going to the database:
SELECT `Article`.`id`, `Article`.`author_id`, `Article`.`cat_id`,
`Article`.`last_comment_id`, `Article`.`title`, `Article`.`teaser`,
`Article`.`created`, `Article`.`published`,
that maybe true but i cant get that to work using the simple mail and
wizard components. I dont necessarily need it to save to the database
but just be able to send the name for the state as a email instead of
a number
On Aug 17, 2:08 am, WebbedIT p...@webbedit.co.uk wrote:
I know Irun the risk
Well, the default findQueryType for Controller::paginate() is 'all'.
Unless you set a different type in the paginate options array, you
should get 'all' as the findQueryType. If you want to set a different
findType to paginate, use:
$this-paginate[0] = 'yourCustomFindType'; // or
I am using Cake 1.2. .
I put $this-findQueryType as debug output at the begin of the the afterFind
method and it showed me only null before I did anything in the method.
Anja
Am Montag, 22. August 2011, um 16:59:09 schrieb Teddy Zeenny:
As Thomas said, $this-findQueryType should definitely
I guess you'll need to upgrade to v 1.3 because it seems
Model::findQueryType is resetting before the afterFind method. (check this
link: http://groups.google.com/group/tickets-cakephp/msg/5ed5fd51805bd232)
or you can maybe do something like this:
var _tempFindQueryType;
function beforeFind()
In order to test the result of the complete request cycle you need to use
the second parameter of testAction as follows :
$this-testAction(('/admin/posts/add', array('return' = false))
This way you will be able to assert headers, and text from the layout, the
other possible value for 'return'
You need to specify which methods you need to mock for the components. For
instance, you could only mock the user() method on the AuthComponent, and
supply any return value for each of your calls on the method, in other to
test authorization on it.
$this-generate('MyController',
Hi all, my UI developer and I are interested to know if anyone has come
across an issue within the framework (making a facebook app under the
facebook php sdk + cake) where iframe apps has rather unstable results when
it comes to showing scrollbars.
We have everything set to fluid, and he is
1.You can cover the state array to be an array of key=value
OR
2.Use the id to fetch the state name before saving.
On Mon, Aug 22, 2011 at 6:15 PM, arron w...@wwisinc.com wrote:
that maybe true but i cant get that to work using the simple mail and
wizard components. I dont necessarily need it
35 matches
Mail list logo