Which book is best in CakePhp..
On Sat, May 5, 2012 at 9:41 AM, Miles J wrote:
> I believe it has changed so if you are doing an edit it sends a PUT, else
> if you are doing a create it sends a POST.
>
> I ran into that same issue today.
>
>
> On Friday, May 4, 2012 1:17:31 PM UTC-7, SigalX
I believe it has changed so if you are doing an edit it sends a PUT, else
if you are doing a create it sends a POST.
I ran into that same issue today.
On Friday, May 4, 2012 1:17:31 PM UTC-7, SigalX wrote:
>
> I've seen that cake had sent "PUT" in the "_method" variable but it was
> POST and I
What version are you using?
On Thursday, May 3, 2012 9:49:21 AM UTC-7, Xoubaman wrote:
>
> This is my behavior setup:
>
> public $actsAs = array(
> 'Uploader.Attachment' => array(
> 'image_upload' => array(
> 'name'=> 'formatFileName',
>
Hello. I've been using cakephp for 2 years, but now I'm working with a kind of
huge database almost 600,000 , With this system the user need to be able to
download a pdf file can reach 100,000 so with these creating a script for
writing the pdf file would crash with the server. But I have put a
Html form supports just GET and POST methods, thats why CakePHP (and
others) uses workaround with _method to fake PUT and DELETE. If you
want/need true PUT request from web browser, use XMLHttpRequest (ajax).
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Hello, guys.
I'm working with CakePHP 2.1.2 stable.
I search about this problem, but i don't found any solution.
This is the models-relationship:
Usuarios (Users)
UsuarioEmails (UserEmails)
UsuarioEndereco (UserAddress)
A User hasMany UserEmail and UserAddress.
In add method, i create the Use
After further investigation, the black square only apperas when the first
resize operation actually takes place. If the source image is smaller than
the max hegith and width, the thumb is correctly generated.
If I add a third transform, with the same params as the second changing the
append val
After further investigation, the black square only apperas when the first
resize operation actually takes place. If the source image is smaller than
the max hegith and width, the thumb is correctly generated.
If I add a third transform, with the same params as the second changing the
append val
http://book.cakephp.org/2.0/en/index.html
--
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 this group, send email to
ca
Just in case anyone found this useful here is an update. This finally
worked:
$ssns = $this->User->query("SELECT id, ssn_temp FROM users as User ORDER BY
id");
foreach ($ssns as $i) {
$this->User->id = $i['User']['id'];
$this->User->saveField('ssn', $i['User']['ssn_temp']);
}
Also be sure to pu
Yes, it's ok.
The point is, you can use __('User %s was not found.', $username) and the
%s will be replaced with the value in $username, or with __('User %s from
%s was not found.', $username, $country) you'll get, for example, "User
John from Jamaica was not found".
El viernes, 4 de mayo de 2
I'm using Cake 2.0, so this is OK, right?
$this->Session->setFlash(__('User was not found.'));
--
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 question
When I found that there is such a way to ask for help, I start to use it
and answer the questions I know how to, moving my "help activity" from this
group to Q&A.
But, after some time, I realized that the Q&A service is quite "abandoned",
much less healthy than the google group and almost hidde
Mmmm... sad that after try lots of things I missed one so obvious.
But, now that the naming problem is solved, the thumb generation is
producing an unexpected result, wrapping the image with smaller width and
height into a black square of the passed mesaures
Here is a capture: http://i.minus.co
In Cake >= 2.0 the second (and further) params are used to replace the %s
present in the first one, like in the sprintf PHP function.
In Cake <= 1.3 if you omit the second parameter the function will echo the
first one, if you set it to true will return it as a string.
El viernes, 4 de mayo de
go to http://api21.cakephp.org
--
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 this group, send email to
cake-php+unsu
I was told that I should use cakePHP for a project involving a database for
input from multiple forms. Can someone start me in the right direction
from scratch. I only know HTML.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Qu
I'm just starting to use Phpunit with CakePhp2.0 when I run my first
controller test against a very simple Model Items (id, title)
./Console/cake test app Controller/ItemsController
I haven't added any other tests than those from 'cake bake;. The tests
pass, however, it blows away the associate
Use apache of windows will return the results:
Array(
[0]=>Array([product]=>Array([id]=>123,[title]=>'this is title')),
[1]=>Array([product]=>Array([id]=>124,[title]=>'this is title2'))
)
Use apache of linux will return the results:
Array(
[0]=>Array([0]=>Array([id]=>123,[title]=>'this is title'))
Plz send me cakephp books link.its mean download cakephp book.
On Fri, May 4, 2012 at 5:48 PM, luca capra wrote:
> Hi,
> probably you have to configure the SecurityComponent (and eventually use
> the FormHelper) to permit those types of request to happen.
>
> See:
> - http://en.wikipedia.org/wi
What is the 2nd parameter for in the __ function? I don't understand
what it says in the manual.
For example should I use:
$this->Session->setFlash(__('User was not found.', true));
or just:
$this->Session->setFlash(__('User was not found.'));
?
Thanks,
Daniel
--
Our newest site for the communi
Try looking at http://en.wikipedia.org/wiki/Make_%28software%29
--
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 this g
Hi,
probably you have to configure the SecurityComponent (and eventually use
the FormHelper) to permit those types of request to happen.
See:
- http://en.wikipedia.org/wiki/Cross-site_request_forgery
-
http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html#restricting
Hi!
I've got application which I am translating from other technology to
CakePHP. Application is in about 60% written with AJAX.There are a lot of
cross controller sends :/ So I've got a problem because when I am trying to
make something similar with Cake I get error 400 - bad request. Of cours
That's prepared statements http://php.net/manual/en/pdo.prepare.php
used for better performance (compiled query plan can be cached)
On Thursday, May 3, 2012 5:37:22 PM UTC+2, johnericsutton wrote:
>
> At the end of
> http://book.cakephp.org/2.0/en/models/retrieving-your-data.html are some
> exam
25 matches
Mail list logo