Re: Migrate from 1.3 to 2x

2013-05-06 Thread rchavik


On Monday, 6 May 2013 19:47:15 UTC+7, steve van christie wrote:
>
>
> 2.x, though, is easily upgradable using existing UpgradeShells and some 
>> minor manual tweaks
>>
>
> how to do that? is it running in phpcake cli?
>
> best regards
>

Read the book.

And it's cakephp. Not phpcake. 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Migrate from 1.3 to 2x

2013-05-06 Thread Reuben
All the instructions for performing the migration are in the 2.x Book [
http://book.cakephp.org/2.0/en/appendices.html]

CakePHP 3.x is currently in development. You can track progress on GitHub, 
or see what is currently being discussed in the cakephp-core Google Group.

On Monday, May 6, 2013 10:47:15 PM UTC+10, steve van christie wrote:
>
>
> 2.x, though, is easily upgradable using existing UpgradeShells and some 
>> minor manual tweaks
>>
>
> how to do that? is it running in phpcake cli?
>
> best regards
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cake CLI no longer works

2013-05-06 Thread steve van christie
assume you have download and extract and rename it on your home desktop in 
cakephp folder :
please try execute this on your terminal

~/Desktop/cakephp/app/Console/cake bake

another solution is using apt-get install for install cakephp, it will 
automatically add cake in bin system folder.

best regards

>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cake CLI no longer works

2013-05-06 Thread CrotchFrog
I can give that a shot but I did just download that version, not to mention 
none of the other versions I have on the server are working either. I'm 
thinking that perhaps I'm missing some sort of dependency or association? 
All other *nix commands are working okay, it's just "cake" which would lead 
me to believe the problem could be with cake itself, but it was working 
just fine before and like I mentioned, none of the versions I have on the 
server are working, not just the one in question. I'm thinking that 
something possibly changed in the server configuration. 

On Sunday, May 5, 2013 4:29:50 AM UTC-4, CrotchFrog wrote:

> I've been running Cake on Ubuntu Server 12.04 for quite some time now and 
> never a problem. I don't necessarily have a problem with CakePHP itself, 
> but more than likely something changed on my system and I can't quite 
> figure it out. 
>
> I recently tried to bake a model for a newly added table in one of my apps 
> and when I execute "cake" anywhere in my system or app all the way down to 
> /app/Console I'm greeted with *: No such file or directory*. The version 
> of Cake makes no difference, I have several versions on the server and I 
> tried two or three just to be sure. 
>
> echoing *$PATH *returns *
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/mnt/share/cake234/lib/Cake/Console
>  
> *so the problem is not there. 
>
> Everything was working just fine as recently as a couple weeks ago and the 
> only real change to the system since then was a new install of Nagios. 
>
> I'm still getting my feet wet with *nix so really unsure of where to start 
> looking for the cause of the problem. 
>
> Any help would be greatly appreciated. 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Class 'CakePlugin' not found in C:\wamp\www\pqr\app\config\bootstrap.php on line 51

2013-05-06 Thread Nyle Davis
All,

Have install of cakePHP on Windows.  Have not used Win in 5 years.  
Installed new needed plugins for my app of:

 1. Composer Plugin
 2. Upload Plugin
 3. Debug Kit Plugin
 4. Utils Plugin
 5. Users Plugin
 6. Templates Plugin
 7. Recaptcha Plugin
 8. Categories Plugin
 9. Elastic-Search Plugin
10. Migrations Plugin
11. Authsome Plugin
12. Interactive Plugin
13. HTML cache Plugin
14. Code Check Plugin

Then, per instructions added command "CakePlugin::loadAll();" to the 
"app/config/bootstrap.php" file.

Reran the app and go the error:

*

Class 'CakePlugin' not found in C:\wamp\www\pqr\app\config\bootstrap.php on 
line 51

*

Not sure where this class method is declared so hoping someone can point it 
out to me!

Cheers!

OMR (OldManRiver - Nyle)



-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




CakeDC TinyMCE issues trying to get installed properly. Seems to be unable to find css?

2013-05-06 Thread glk
 

I'm using Cake 2.2.1
My bootstrap.php loads the TinyMCE
My messages_controller adds to helpers = array('TinyMCE.TinyMCE');

My Messages edit.ctp view contains:

echo $this->Form->input('message_text');
$this->TinyMCE->editor(array('selector' => "textarea#MessageMessageText",
'theme' => 'simple',
'width' => '700px', 
'mode' => 'textareas', 
'height'=>'300px',
'editor_selector' => 'mceSimple', 
'plugins' => "advlist autolink link image lists charmap print preview hr 
anchor pagebreak spellchecker searchreplace wordcount visualblocks 
visualchars code fullscreen insertdatetime media nonbreaking save table 
contextmenu directionality emoticons template paste textcolor",
'content_css' => "css/content.css",
'toolbar' => "insertfile undo redo | bold italic | alignleft aligncenter 
alignright | bullist numlist outdent indent | preview | forecolor backcolor 
emoticons"
)
);

ALL of which gets me a TinyMCE box showing html markup which just happens 
to have Text.  So, the css is not being applied to 
the textarea?!

Where should the plugin css be located? Seems that the css/content.css is 
not correct... but where should I have it installed. It is currently .. 
\app\Plugin\TinyMCE\webroot\js\tiny_mce\themes\simple\skins\default\content.css

Now if tinymce and javascript are set up to pull the themes from here, it's 
not! 

It seems that CakePHP way (for webroot and Plugins) would like to have the 
css in \Plugin\TinyMCE\webroot\css\themes\simple\, but then the theme 
option would have to be specified in the css url?

I'm at a loss to get things working.  My Plugin tree is:



app\Plugin\TinyMCE\

  Test\

  View\

  webroot\

js\

  tiny_mce\

langs\

plugins\

themes\

  advanced\

  simple\

img\

langs\

skins\

  default\

  o2k7\

utils\



I would point out that the textarea DOES have spellchecker working... so 
it's very close to being right!

Thank you all in advance for any assistance
Greg
 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: 3.0: a peek into CakePHP's future

2013-05-06 Thread steve van christie
is version 3.x. support upgrade from previous version? just a suggestion, 
why not use something like backward compatiblity like the others framework 
have.

best regards

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Security Release - CakePHP 1.2.12, 1.3.16, 2.2.8 and 2.3.4

2013-05-06 Thread steve van christie
is it available on cakephp download page?

best regards

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Pagination->sort associated Model

2013-05-06 Thread Levavasseur Jacques
Hello,
I use cakephp 2.3.4
When I use paginator->sort on a field of model default I have no problem.
But if I want to sort on a field associated, sorting is the default.
I use the code: $this->Paginator->sort(Model.NOM','HeaderName')
when I look at $ this-> params is what I get, you can see it at the attach 
file
Thank for your help

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


params => array(
'plugin' => null,
'controller' => 'defaultModels',
'action' => 'index',
'named' => array(
'sort' => 'newModel.NOM',
'direction' => 'asc'
),
'pass' => array(),
'isAjax' => false,
'paging' => array(
'defaultModel' => array(
'page' => (int) 1,
'current' => (int) 15,
'count' => (int) 40,
'prevPage' => false,
'nextPage' => true,
'pageCount' => (int) 3,
'order' => array(
'defaultModel.NOM' => 'asc'
),
'limit' => (int) 15,
'options' => array(
'order' => array(
'defaultModel.NOM' => 'asc'
),
'sort' => 'newModel.NOM',
'direction' => 'asc'
),
'paramType' => 'named'
)
),
'models' => array(
'defaultModel' => array(
'plugin' => null,
'className' => 'defaultModel'
),
'newModel' => array(
'plugin' => null,
'className' => 'newModel'
)
)
)




Re: Migrate from 1.3 to 2x

2013-05-06 Thread steve van christie


> 2.x, though, is easily upgradable using existing UpgradeShells and some 
> minor manual tweaks
>

how to do that? is it running in phpcake cli?

best regards

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Migrate from 1.3 to 2x

2013-05-06 Thread steve van christie
when the version 3.x is released?

*

[image: 黄祥]

スティファン クリスティ (黄祥)

Stifan Kristi (Kou Shou)

ジャカルタ、 インドネシア

Jakarta, Indonesia

携帯。 +六二 八一八 七八三 一一八

Cell. +62 818 783 118

ウェブサイト : http://stevevanchristie.net

Website : http://stevevanchristie.net
*


On Mon, May 6, 2013 at 12:31 PM, Reuben  wrote:

> There are scripts in the CakePHP 2.x release that can assist with doing
> most of the search and replace required.
>
> As to how between that and when your system is fully operational again,
> that would depend on the places were you are doing non-trivial processing.
>
> You could wait until 3.x, but then you'll have to run two migrations, most
> probably, and deal with common patterns used in 2.x, and the new model
> changes for 3.x.
>
> On Sunday, 5 May 2013 12:23:40 UTC+10, Robert Gravel wrote:
>>
>> Hi I have developed a web application in cake 1.3 . I am understanding
>> that I
>> need to migrate to cake 2x at some point. I have about 25 models most
>> with
>> admin functions. some vendor and plugins. "sign me up" "upload" "twilio"
>> "MPDF" "Full calendar" and a few others.
>>
>> Any estimate on the difficulty and time it will take to migrate?  I dont
>> look forward to this.. :(
>>
>> Thanks Robert
>>
>>
>>
>> --
>> View this message in context: http://cakephp.1045679.n5.**
>> nabble.com/Migrate-from-1-3-**to-2x-tp5714774.html
>> Sent from the CakePHP mailing list archive at Nabble.com.
>>
>  --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cake CLI no longer works

2013-05-06 Thread steve . van . christie
Please try to download cakephp new version on website and then test run cake 
bake on app/Console/cake bake

Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT

-Original Message-
From: Ed Propsner 
Sender: cake-php@googlegroups.com
Date: Sun, 5 May 2013 04:29:50 
To: 
Reply-To: cake-php@googlegroups.com
Subject: Cake CLI no longer works

I've been running Cake on Ubuntu Server 12.04 for quite some time now and
never a problem. I don't necessarily have a problem with CakePHP itself,
but more than likely something changed on my system and I can't quite
figure it out.

I recently tried to bake a model for a newly added table in one of my apps
and when I execute "cake" anywhere in my system or app all the way down to
/app/Console I'm greeted with *: No such file or directory*. The version of
Cake makes no difference, I have several versions on the server and I tried
two or three just to be sure.

echoing *$PATH *returns *
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/mnt/share/cake234/lib/Cake/Console
*so the problem is not there.

Everything was working just fine as recently as a couple weeks ago and the
only real change to the system since then was a new install of Nagios.

I'm still getting my feet wet with *nix so really unsure of where to start
looking for the cause of the problem.

Any help would be greatly appreciated.

-- 
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




cakephp tutorial

2013-05-06 Thread steve van christie
hi 

i want to learn the simple cake php application that have admin (with 
login) and user default. is there any web references to learn cakephp 
tutorial like that? right now, i'm just learn the code from the code 
generated by cake bake, but i face the problem about the login admin 
separate from default user.

thank you so much in advance

best regards

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: POST form changes to PUT

2013-05-06 Thread Advantage+
I see the hidden div you mention on all forms, but they are all POST except
for the 1 form.

 

CHANGES TO PUT:









 

ALL OTHER FORMS RENDER AS POST:









 

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Mancho
Sent: Monday, May 06, 2013 5:11 PM
To: cake-php@googlegroups.com
Subject: Re: POST form changes to PUT

 

Dude, checks that cakephp adds hidden input with "_method" name and "PUT"
value, and uses this pair name/value for validate.




Murgan, Alexis Germán
Desarrollador & Diseñador
Web: german.murgan.com.ar
Email: ger...@murgan.com.ar
MSN: ger...@murgan.com.ar
Móvil: +5493424663813

 

2013/5/6 Advantage+ 

Running into a weird issue where my form as rendered the HTML shows:

 



 

This form is submitted using ajax and the function is used by many forms
thru the site:

$.ajax({

type: "POST",

url: $(sel).attr('action'),

data: $(sel).formSerialize(),

dataType: 'json',

 

And in the controller I have if($this->request->is('ajax') &&
($this->request->is('post'))

 

But it fails on this 1 form because for some reason it is changing to PUT.

 

Are there reason why this would be happening? I looked at a few of my forms
using this js function and all of the forms and all are set up the exact
same way / Form->helper standard inputs / selects.

 

I even added into the form with issues 'method' => 'POST' (upper and lower)
but it still fires off a PUT request. Renders as POST but inspecting the
request shows:

 

application/x-www-form-urlencoded

_methodPUT

 

Ideas would be welcome.

-- 
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?hl=en.
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: POST form changes to PUT

2013-05-06 Thread Advantage+
I did check / read up on that but all my forms have :


echo $this->Form->hidden('lock', array(

 'value' => $lock)); 

 

(lock is similar to the Security form['token'])

 

which is my own version of Security for AJAX / form requests and every
(ajax) form gets sent correct with POST, all but 1 form which is getting
swapped to PUT.

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Mancho
Sent: Monday, May 06, 2013 5:11 PM
To: cake-php@googlegroups.com
Subject: Re: POST form changes to PUT

 

Dude, checks that cakephp adds hidden input with "_method" name and "PUT"
value, and uses this pair name/value for validate.




Murgan, Alexis Germán
Desarrollador & Diseñador
Web: german.murgan.com.ar
Email: ger...@murgan.com.ar
MSN: ger...@murgan.com.ar
Móvil: +5493424663813

 

2013/5/6 Advantage+ 

Running into a weird issue where my form as rendered the HTML shows:

 



 

This form is submitted using ajax and the function is used by many forms
thru the site:

$.ajax({

type: "POST",

url: $(sel).attr('action'),

data: $(sel).formSerialize(),

dataType: 'json',

 

And in the controller I have if($this->request->is('ajax') &&
($this->request->is('post'))

 

But it fails on this 1 form because for some reason it is changing to PUT.

 

Are there reason why this would be happening? I looked at a few of my forms
using this js function and all of the forms and all are set up the exact
same way / Form->helper standard inputs / selects.

 

I even added into the form with issues 'method' => 'POST' (upper and lower)
but it still fires off a PUT request. Renders as POST but inspecting the
request shows:

 

application/x-www-form-urlencoded

_methodPUT

 

Ideas would be welcome.

-- 
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?hl=en.
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: POST form changes to PUT

2013-05-06 Thread Mancho
Dude, checks that cakephp adds hidden input with "_method" name and "PUT"
value, and uses this pair name/value for validate.

Murgan, Alexis Germán
Desarrollador & Diseñador
Web: german.murgan.com.ar
Email: ger...@murgan.com.ar
MSN: ger...@murgan.com.ar
Móvil: +5493424663813


2013/5/6 Advantage+ 

> Running into a weird issue where my form as rendered the HTML shows:
>
> ** **
>
>  method="post" action="/manage/profile">
>
> ** **
>
> This form is submitted using ajax and the function is used by many forms
> thru the site:
>
> $.ajax*({*
>
> **type: "POST",
>
> url: $*(*sel*)*.attr*(*'action'*)*,
>
> data: $*(*sel*)*.formSerialize*()*,
>
> dataType: 'json',
>
> ** **
>
> And in the controller I have if($this->request->is('ajax') && ($this->
> request->is('post'))
>
> ** **
>
> But it fails on this 1 form because for some reason it is changing to PUT.
> 
>
> ** **
>
> Are there reason why this would be happening? I looked at a few of my
> forms using this js function and all of the forms and all are set up the
> exact same way / Form->helper standard inputs / selects.
>
> ** **
>
> I even added into the form with issues 'method' => 'POST' (upper and
> lower) but it still fires off a PUT request. Renders as POST but inspecting
> the request shows:
>
> ** **
>
> application/x-www-form-urlencoded
>
> _methodPUT
>
> ** **
>
> Ideas would be welcome.
>
> --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




POST form changes to PUT

2013-05-06 Thread Advantage+
Running into a weird issue where my form as rendered the HTML shows:

 



 

This form is submitted using ajax and the function is used by many forms
thru the site:

$.ajax({

type: "POST",

url: $(sel).attr('action'),

data: $(sel).formSerialize(),

dataType: 'json',

 

And in the controller I have if($this->request->is('ajax') &&
($this->request->is('post'))

 

But it fails on this 1 form because for some reason it is changing to PUT.

 

Are there reason why this would be happening? I looked at a few of my forms
using this js function and all of the forms and all are set up the exact
same way / Form->helper standard inputs / selects.

 

I even added into the form with issues 'method' => 'POST' (upper and lower)
but it still fires off a PUT request. Renders as POST but inspecting the
request shows:

 

application/x-www-form-urlencoded

_methodPUT

 

Ideas would be welcome.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Pagination

2013-05-06 Thread Julien Itard
Hi folks,

i have a HTML code and i would like to use it for ma pagination : 


«
1
2
...
21
22
»


how can i configure PaginatorHelper to have the same things ?

Thx for help :)

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




cakephp 2x js helper not generating correct code?

2013-05-06 Thread incognito
Form->create('Property',array (
'id'=>'add_property'));?>
 
Js->get('#add_property')->serializeForm(
array 
(
'isForm' => true,
'inline' => true)
);?>
   Js->submit('submit.png',
array ('id'=>'submit_id',
'update' => '#right_side_content', // element to update
'data'=>$data,
'before' => $this->Js->get('#submit_busy-indicator')->effect(
'fadeIn', array ('buffer' => false)),
   'complete' => $this->Js->get('#submit_busy-indicator')->effect(
'fadeOut', array ('buffer' => false)),   

 ));?>
 
 
Generates the following code:
 
$(document).ready(function () {$("#submit_id").bind("click", function 
(event) {$.ajax({beforeSend:function (XMLHttpRequest) {$("#submit_b
usy-indicator").fadeIn();}, complete:function (XMLHttpRequest, textStatus) 
{$("#submit_busy-indicator").fadeOut();}, 
data:$("#submit_id").closest("form").serialize(), dataType:"html", 
success:function (data, textStatus) {$("#right_side_content").html(dat
a);}, type:"POST", url:"\/cakeapp\/property\/add_property"});
return false;});});
 
Shouldn't this line 
"data:$("#submit_id").closest("form").serialize(), dataType:"html"," 
be 
data:$("#add_porperty").closest("form").serialize(), dataType:"html",
 
???

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: POST from external site

2013-05-06 Thread majna
Paste your code maybe? :D

According to the docs, they are sending GET, where did you found POST?
http://developers.mercadopago.com/documentation/instant-payment-notifications#configure-api

Did you try to log IPN request?
CakeLog::write('ipn', print_r($this->params, true));

Also check your web server access logs...

2013/5/6 leydis contreras 

> No, already try with GET. What else could be???
>
>
> 2013/5/6 majna 
>
>> Perhaps you are receiving GET request for IPN, not POST?
>>
>>
>> On Sunday, May 5, 2013 2:20:14 PM UTC+2, leydis contreras wrote:
>>>
>>> I stil have the same issue :(
>>>
>>> El martes, 14 de junio de 2011 15:53:34 UTC+2, Ivan Rocha escribió:

 Hi,

 I'm trying to integrate a CakePHP website to PagSeguro (brazilian's
 Paypal) and when PagSeguro sends a POST containing the payment data,
 CakePHP don't show the POST, even if I put in the controller a
 "debug($_POST); die();".

 I have checked the network tab of Firebug and the POST is being sent
 correctly. I tried to use a pure PHP file outside CakePHP to receive the
 POST and it shows the data normaly.

 I searched a lot about CSRF protection and found nothing. Is there any
 Cake's "behaviour" that cleans the POST data?

 Thank you for helping,
 --
 Ivan Rocha

  --
>> 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?hl=en.
>> 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 a topic in the
> Google Groups "CakePHP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cake-php/oOQGGHABK04/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: POST from external site

2013-05-06 Thread leydis contreras
No, already try with GET. What else could be???


2013/5/6 majna 

> Perhaps you are receiving GET request for IPN, not POST?
>
>
> On Sunday, May 5, 2013 2:20:14 PM UTC+2, leydis contreras wrote:
>>
>> I stil have the same issue :(
>>
>> El martes, 14 de junio de 2011 15:53:34 UTC+2, Ivan Rocha escribió:
>>>
>>> Hi,
>>>
>>> I'm trying to integrate a CakePHP website to PagSeguro (brazilian's
>>> Paypal) and when PagSeguro sends a POST containing the payment data,
>>> CakePHP don't show the POST, even if I put in the controller a
>>> "debug($_POST); die();".
>>>
>>> I have checked the network tab of Firebug and the POST is being sent
>>> correctly. I tried to use a pure PHP file outside CakePHP to receive the
>>> POST and it shows the data normaly.
>>>
>>> I searched a lot about CSRF protection and found nothing. Is there any
>>> Cake's "behaviour" that cleans the POST data?
>>>
>>> Thank you for helping,
>>> --
>>> Ivan Rocha
>>>
>>>  --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Migrate from 1.3 to 2x

2013-05-06 Thread euromark
Reuben is right
If anything, you should now upgrade to 2.x

3.x will be a complete rewrite. It will have dramatic changes.

2.x, though, is easily upgradable using existing UpgradeShells and some 
minor manual tweaks



Am Montag, 6. Mai 2013 07:31:26 UTC+2 schrieb Reuben:
>
> There are scripts in the CakePHP 2.x release that can assist with doing 
> most of the search and replace required.
>
> As to how between that and when your system is fully operational again, 
> that would depend on the places were you are doing non-trivial processing.
>
> You could wait until 3.x, but then you'll have to run two migrations, most 
> probably, and deal with common patterns used in 2.x, and the new model 
> changes for 3.x.
>
> On Sunday, 5 May 2013 12:23:40 UTC+10, Robert Gravel wrote:
>>
>> Hi I have developed a web application in cake 1.3 . I am understanding 
>> that I 
>> need to migrate to cake 2x at some point. I have about 25 models most 
>> with 
>> admin functions. some vendor and plugins. "sign me up" "upload" "twilio" 
>> "MPDF" "Full calendar" and a few others. 
>>
>> Any estimate on the difficulty and time it will take to migrate?  I dont 
>> look forward to this.. :( 
>>
>> Thanks Robert 
>>
>>
>>
>> -- 
>> View this message in context: 
>> http://cakephp.1045679.n5.nabble.com/Migrate-from-1-3-to-2x-tp5714774.html 
>> Sent from the CakePHP mailing list archive at Nabble.com. 
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: POST from external site

2013-05-06 Thread majna
Perhaps you are receiving GET request for IPN, not POST?

On Sunday, May 5, 2013 2:20:14 PM UTC+2, leydis contreras wrote:
>
> I stil have the same issue :(
>
> El martes, 14 de junio de 2011 15:53:34 UTC+2, Ivan Rocha escribió:
>>
>> Hi,
>>
>> I'm trying to integrate a CakePHP website to PagSeguro (brazilian's 
>> Paypal) and when PagSeguro sends a POST containing the payment data, 
>> CakePHP don't show the POST, even if I put in the controller a 
>> "debug($_POST); die();".
>>
>> I have checked the network tab of Firebug and the POST is being sent 
>> correctly. I tried to use a pure PHP file outside CakePHP to receive the 
>> POST and it shows the data normaly.
>>
>> I searched a lot about CSRF protection and found nothing. Is there any 
>> Cake's "behaviour" that cleans the POST data?
>>
>> Thank you for helping,
>> -- 
>> Ivan Rocha
>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.