Can HTTP POST response size be minimized?

2014-02-12 Thread Sam


I have an application which sends plenty of HTTP POST to add records to a 
cakephp 2.3 application which was cake baked. I noticed that the HTTP 
response from cakephp is quite big. Can HTTP POST response size be 
minimized? I don't really care about the response. Please note that I am 
not sending HTTP POST through a form but through an external app written in 
python.


Thank you.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Can HTTP POST response size be minimized?

2014-02-12 Thread Matt Murphy
Have you looked at what is specifically in the response?  And have you read
about CakeResponse?
http://book.cakephp.org/2.0/en/controllers/request-response.html#CakeResponse




On Wed, Feb 12, 2014 at 8:24 AM, Sam lightai...@gmail.com wrote:

 I have an application which sends plenty of HTTP POST to add records to a
 cakephp 2.3 application which was cake baked. I noticed that the HTTP
 response from cakephp is quite big. Can HTTP POST response size be
 minimized? I don't really care about the response. Please note that I am
 not sending HTTP POST through a form but through an external app written in
 python.


 Thank you.

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Using ORM Entity mutators to change value doesn't work

2014-02-12 Thread mark_story
Nope that is how they should work. I can take a look tongiht and see if I can 
reproduce that issue.

-mark

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


cakephp 3 ORM find and foreach

2014-02-12 Thread mark_story
Yes you need to make sure the property is not empty. The orm doesn't set empty 
arrays when an association has no records.

-mark

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.