Wednesday, October 31, 2012
cakephp with jquery datatable
but the data show a maximum of 100 rows.. anybody can share to me??
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ajax link with unique ID
Jeremy Burns
http://www.classoutfit.com
THANKS Chetan,... you are the MAN !it works,...
On Wednesday, October 31, 2012 11:07:05 AM UTC-7, chetan varshney wrote:Why are you php tag inside php tag??
use it as-
<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id'] ), array('update' => "friend_".$friend[' FriendRequest']['id']));?>
On Wed, Oct 31, 2012 at 11:11 PM, Chris <chri...@yahoo.com> wrote:hi guys,... I'm having a problem placing unique ID in a ajax link 'update':'update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>'here is the link:<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id'] ), array('update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>') );?>I'm getting an error no matter what I do by placing in echo '(', ')' , <?php echo ($friend['FriendRequest']['id']) ?> .... Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/xachkaa/hamayk.com/html/app/views/friends/requests.ctp on line 83can anyone help please,...?thanks in advancechris--
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 post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
--
Chetan Varshney
Ektanjali Softwares Pvt Ltd
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
xml tag with one attribute and one value
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ajax link with unique ID
On Wednesday, October 31, 2012 11:07:05 AM UTC-7, chetan varshney wrote:
Why are you php tag inside php tag??
use it as-
<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id'] ), array('update' => "friend_".$friend[' FriendRequest']['id']));?>
On Wed, Oct 31, 2012 at 11:11 PM, Chris <chri...@yahoo.com> wrote:hi guys,... I'm having a problem placing unique ID in a ajax link 'update':'update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>'here is the link:<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id'] ), array('update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>') );?>I'm getting an error no matter what I do by placing in echo '(', ')' , <?php echo ($friend['FriendRequest']['id']) ?> .... Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/xachkaa/hamayk.com/html/app/views/friends/requests.ctp on line 83can anyone help please,...?thanks in advancechris--
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 post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
--
Chetan Varshney
Ektanjali Softwares Pvt Ltd
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: ajax link with unique ID
use it as-
<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id']), array('update' => "friend_".$friend['FriendRequest']['id']));?>
hi guys,... I'm having a problem placing unique ID in a ajax link 'update':'update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>'here is the link:<?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 'friends', 'action' => 'accept', $friend['FriendRequest']['id']), array('update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>'));?>I'm getting an error no matter what I do by placing in echo '(', ')' , <?php echo ($friend['FriendRequest']['id']) ?> ....Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/xachkaa/hamayk.com/html/app/views/friends/requests.ctp on line 83can anyone help please,...?thanks in advancechris--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Chetan Varshney
Ektanjali Softwares Pvt Ltd
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
ajax link with unique ID
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: JQuery save success/error
Jeremy Burns
http://www.classoutfit.com
Is your goal to output some message if they have successfully filled out your form and possibly add a little extra data to the success message? If so just hide the success message by default, add some selectors that you can populate with the json that's returned on success, and then show the message.As far as the failure is concerned again have hidden elements on the form that you can select and add the validation messages to. Or there are also plenty of jQuery validation plugins out there that you could do your validation on the fly using onBlur or onFocus for that matter.On Wed, Oct 31, 2012 at 10:33 AM, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:
Completely - but how do I render the element as json? As soon as I do $this->render('/elements/whatever'); it's returned as straightforward html.
Class Outfit
Jeremy Burns
http://www.classoutfit.comOn 31 Oct 2012, at 15:28:01, Tilen Majerle <tilen.majerle@gmail.com> wrote:in both cases return json value and have keys eg. "success" (true/false) and "data". If "success" == true, just "print" data, if "success" == false, than use data as json, and decode that string and print validation errors, or generate string in controller for errors and print it..understand ?
--Lep pozdrav, Tilen Majerle
2012/10/31 Jeremy Burns <jeremyburns@classoutfit.com>Not an expert at jQuery, but getting there.I'm submitting data to a controller function that saves a record via ajax. If the save works, I'm rendering an element, which then appears back in the ajax form as html ready to be placed into a dom element. All good - that works fine. But if the save fails I want to return an array that includes the validation errors - that really ought to be json. So on success I want html, on error I want json - and I can't have both.How do I either (i) render the element but have it returned as json (and ideally tack in a 'success' key that I can check in the jQuery) or (ii) otherwise determine the success/error state when html has been returned to the jQuery?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: How to?
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: using SSL login leads to 404 Error
change function forceSSL() to function forceSSL($type) and pr($type)
that will show you some info
On Sunday, April 15, 2012 9:05:09 PM UTC+8, luftlinie wrote:
hi everyone,--
i want to secure the login with SSL and use the Security Component for
that. cake seems to swith to HTTPS
but has trouble calling the new URL
https://server/users/login
giving me a 404 error. I understand this is fixable with $this-
>Security->blackHoleCallback????
but how? what am i doing wrong?
CODE: controller users
================================
function beforeFilter()
{
$this->Security->blackHoleCallback = 'forceSSL';
$this->Security->requireSecure('login');
parent::beforeFilter();
$this->Auth->allow('*');
}
function forceSSL()
{
$this->log('Redirecting user from HTTP to HTTPS', 'https');
$this->redirect('https://' . $_SERVER['SERVER_NAME'] . $this-
>here);
}
================================
appreciate your help. thanks a lot :)
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: JQuery save success/error
Completely - but how do I render the element as json? As soon as I do $this->render('/elements/whatever'); it's returned as straightforward html.
Class Outfit
Jeremy Burns
http://www.classoutfit.comOn 31 Oct 2012, at 15:28:01, Tilen Majerle <tilen.majerle@gmail.com> wrote:in both cases return json value and have keys eg. "success" (true/false) and "data". If "success" == true, just "print" data, if "success" == false, than use data as json, and decode that string and print validation errors, or generate string in controller for errors and print it..understand ?
--Lep pozdrav, Tilen Majerle
2012/10/31 Jeremy Burns <jeremyburns@classoutfit.com>Not an expert at jQuery, but getting there.I'm submitting data to a controller function that saves a record via ajax. If the save works, I'm rendering an element, which then appears back in the ajax form as html ready to be placed into a dom element. All good - that works fine. But if the save fails I want to return an array that includes the validation errors - that really ought to be json. So on success I want html, on error I want json - and I can't have both.How do I either (i) render the element but have it returned as json (and ideally tack in a 'success' key that I can check in the jQuery) or (ii) otherwise determine the success/error state when html has been returned to the jQuery?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: JQuery save success/error
--
Completely - but how do I render the element as json? As soon as I do $this->render('/elements/whatever'); it's returned as straightforward html.Class Outfit
Jeremy Burns
http://www.classoutfit.comOn 31 Oct 2012, at 15:28:01, Tilen Majerle <tilen.majerle@gmail.com> wrote:in both cases return json value and have keys eg. "success" (true/false) and "data". If "success" == true, just "print" data, if "success" == false, than use data as json, and decode that string and print validation errors, or generate string in controller for errors and print it..understand ?
--Lep pozdrav, Tilen Majerle
2012/10/31 Jeremy Burns <jeremyburns@classoutfit.com>Not an expert at jQuery, but getting there.I'm submitting data to a controller function that saves a record via ajax. If the save works, I'm rendering an element, which then appears back in the ajax form as html ready to be placed into a dom element. All good - that works fine. But if the save fails I want to return an array that includes the validation errors - that really ought to be json. So on success I want html, on error I want json - and I can't have both.How do I either (i) render the element but have it returned as json (and ideally tack in a 'success' key that I can check in the jQuery) or (ii) otherwise determine the success/error state when html has been returned to the jQuery?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: JQuery save success/error
Jeremy Burns
http://www.classoutfit.com
in both cases return json value and have keys eg. "success" (true/false) and "data". If "success" == true, just "print" data, if "success" == false, than use data as json, and decode that string and print validation errors, or generate string in controller for errors and print it..understand ?
--Lep pozdrav, Tilen Majerle
2012/10/31 Jeremy Burns <jeremyburns@classoutfit.com>Not an expert at jQuery, but getting there.I'm submitting data to a controller function that saves a record via ajax. If the save works, I'm rendering an element, which then appears back in the ajax form as html ready to be placed into a dom element. All good - that works fine. But if the save fails I want to return an array that includes the validation errors - that really ought to be json. So on success I want html, on error I want json - and I can't have both.How do I either (i) render the element but have it returned as json (and ideally tack in a 'success' key that I can check in the jQuery) or (ii) otherwise determine the success/error state when html has been returned to the jQuery?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: JQuery save success/error
Not an expert at jQuery, but getting there.I'm submitting data to a controller function that saves a record via ajax. If the save works, I'm rendering an element, which then appears back in the ajax form as html ready to be placed into a dom element. All good - that works fine. But if the save fails I want to return an array that includes the validation errors - that really ought to be json. So on success I want html, on error I want json - and I can't have both.How do I either (i) render the element but have it returned as json (and ideally tack in a 'success' key that I can check in the jQuery) or (ii) otherwise determine the success/error state when html has been returned to the jQuery?--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
JQuery save success/error
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: How to?
--
How to move cake app outside public_htmlfolders- public_html:--webroot files here-Controller-Model- rest of Cake App Structure??--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
How to?
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
CakePHP 2 with normal Form Authentication + Basic for API access
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Tuesday, October 30, 2012
Override UsersController method
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Error Debugging Help
On Friday, 4 November 2011 09:51:57 UTC+5:30, zuha wrote:
It sure doesn't seem right to throw a missing controller error for a a missing image call. Does anyone else have an idea about how to find where this exception is being thrown? Or what CakeRequest is asking for which causes this exception?
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
regarding RTf to HTML conversion in cakephp
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: CakePHP 2.x implement edit form in ajax in a popup
You are use facebox jquery this is very nice....
On Wednesday, October 3, 2012 10:00:22 AM UTC-4, Kiran wrote:
--I have read other posts and searched google before posting this here.I have a jquery popup in a view where I intend to show EDIT form and then submit using ajax.Further DetailsThere is a reservation controller. reservations on a particular date are shown in the index ctp in a table . When user clicks on edit button a div pops up. Now I need to show Edit form and submit it via Ajax.Please can somebody point me in the right direction , may be some help or some tutorial.Thanks in advance,Kiran
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Error: Index.phpController could not be found
Jeremy Burns
http://www.classoutfit.com
Hi,<?php
class IndexController extends AppController {
}
you are use this code...
On Wednesday, February 22, 2012 6:46:08 PM UTC-5, amg55nj wrote:Completely new to CakePHP. Tried doing a search with no results.
I installed CakePHP to my localhost Apache directory. Other programs such as PHPMyAdmin work just fine. I am getting this error:
Missing Controller
Error: Index.phpController could not be found.
Error: Create the class Index.phpController below in file: app\Controller\Index.
phpController.php <?php
class Index.phpController extends AppController {
}
Notice: If you want to customize this error message, create app\View\Errors\missing_
controller.ctp
What do I do? I tried creating that PHP file and putting it in the app\Controller directory but that did not work.
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Error: Index.phpController could not be found
<?php
class IndexController extends AppController {
}
you are use this code...
On Wednesday, February 22, 2012 6:46:08 PM UTC-5, amg55nj wrote:
--Completely new to CakePHP. Tried doing a search with no results.
I installed CakePHP to my localhost Apache directory. Other programs such as PHPMyAdmin work just fine. I am getting this error:
Missing Controller
Error: Index.phpController could not be found.
Error: Create the class Index.phpController below in file: app\Controller\Index.
phpController.php <?php
class Index.phpController extends AppController {
}
Notice: If you want to customize this error message, create app\View\Errors\missing_
controller.ctp
What do I do? I tried creating that PHP file and putting it in the app\Controller directory but that did not work.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: form value in cake 1.3
Hey you are use $this->User->save($this->data);
That is very nice
On Tuesday, October 9, 2012 3:19:34 PM UTC-4, Chris wrote:
hi guys,... I'm in cake 1.3,... please help,...--I can't read form value from inplace editor in a controller,... any other approch,...?$user['User']['short_status'] = $this->params['form']['value']; $this->User->save($user);echo $user['User']['short_status'];die();thanks in advance
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: How to read an item from an array
On Thursday, October 18, 2012 5:12:42 AM UTC-4, Cody Sortore wrote:
Okay, I'm a bit of a noob, but I've been messing with this all night and cannot figure it out. I've had this problem before, but just figured out what my problem is, and although this particular issue isn't pressing, because I plan to use a similar item in the future I would like to understand what I'm missing here.--
I'm looking for a way to read a single item from the database, I can pass it to the view rather easily, but reading it in the same controller is confounding me.
I've tried:
$title = $this->Project->read('title');$title = $this->Project->find('first', array('fields' => array('Project.title'), 'conditions' => array('Project.id' => $id)));$title = $this->Project->query("SELECT `title` FROM `Projects` WHERE `id`=$id");
All I'm trying to do is display a message that says "Hey you deleted this project" later I have
$this->Session->setFlash(__("Project $title deleted"));
However, when the message flashes all I see "Project Array deleted" with all three examples. I understand what it's doing... I just don't understand why... how do I select the actual "title" from the array, instead of the entire array?
Using CakePHP 2.x if it makes a difference in this instance.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Error: Call to a member function find() on a non-object
You are use this code so this error not show again. Please add this code "
var $uses = array('Address');
}
?>
"
On Monday, October 15, 2012 7:58:52 PM UTC-4, Russell Brown wrote:
--Error: Call to a member function find() on a non-objectFile: c:\wamp\www\cake222\app\Controller\ AddressesController.php I get the error on the $this->set('address_list', $this->Address->find('all')) line below:Partial listing of my AddressesController file:<?phpclass AddressesController extends AppController {var $name = 'addresses';function index($id = null) {$this->set('address_list', $this->Address->find('all'));}I have a controller called AddressesController.php. I have a Model called Address.php. The table is called addresses.I am using Cake 2.2.2 and PHP 5.3.8 and Apache 2.2.21 and MySQL 5.5.16
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Paginate with associated model conditions
The pagination works well if I unbind all the models and if I bind some models then even find query is working fine but not with 'count(*)' query in pagination. Kindly help.
On Monday, July 9, 2012 12:14:25 AM UTC+5:30, Michael wrote:
No on knows how to solve this issue? I have a few very complicated work arounds, but every time I end up implementing such work arounds, it always comes back to the fact that I was doing it wrong originally.--~MichaelOn Fri, Jul 6, 2012 at 12:09 AM, Michael Gaiser <mjga...@gmail.com> wrote:So I am having some issues getting Paginate to recognize its associated models when handling its conditions. Some events have a location_id, but others (like the feeding event) have their location id specified in the associated model. From the Events Index page I want to do a search for all events that have the location_id = 87. Heres my setup.Event hasMany Feeding (EventsFeeding table)$conditions['OR'] = array('Event.location_id'=>87,'Feeding.location_id'=>87,);$this->paginate = array('limit'=>$count,'contain' =>array('Feeding'=>array('id', 'event_id', 'location_id'),),'fields'=>array('id', 'event_type_id', 'location_id', 'start_date', 'end_date', 'created', 'modified'),'order'=>array('Event.start_date ASC') );$events = $this->paginate($conditions);
This is the error I get:Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Feeding.event_id' in 'field list'I have looked around, some solutions I have found try to make use of a fake hasOne bind, others try to setup a virtual field others play around with the 'joins' array. I have tried all of these but cannot seem to get them to work. Any help would be greatly appreciated.~Michael
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Monday, October 29, 2012
unlink error from FileEngine when many requests happen frequently
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: CakePHP 1.3 and AMFPHP
On Sunday, April 10, 2011 8:15:34 PM UTC-7, sams wrote:
there is this article--
http://bakery.cakephp.org/articles/vernerd/2009/06/28/ flex-remoting-with-cakephp- cpamf-plugin-1
in the comments someone says it works well with 1.3 when changing routes
- S
On 10 April 2011 06:58, R0ckET <leohi...@gmail.com> wrote:I found only one plugin that list was last updated in 2008
On 10 abr, 02:53, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On Apr 10, 2011, at 00:45, R0ckET wrote:
>
> > hello, someone has used AMFPHP with cakephp 1.3?
>
> Did you try Google? There appear to be several results.
--
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+u...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Testing database connection on the fly
// Connection settings
// connects to database
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: HABTM and user login
Auth doesn't automatically store. IIRC, you can write to the Auth.User
key; the data will then be available from the user() method.
$this->Session->write('Auth.User.group', $group_data);
Retrieve with $this->Auth->user('group')
On Fri, Oct 26, 2012 at 5:45 AM, Álvaro G. Vicario
<alvaro@demogracia.com> wrote:
> I have a User model to use built-in authentication. The model has several
> $hasOne relationships and all linked models get saved automatically into
> session, which is great because I can call AuthComponent::user() whenever I
> need to perform an action based on user data.
>
> Now, I've added a $hasAndBelongsToMany relationship to indicate that a user
> can belong to zero or more groups. However, information about the Group
> model doesn't show up anywhere in the Auth component. I can definitively
> perform a manual User->find() and groups will be there but
> AuthComponent::user() does not contain group information. I've tried
> everything I could think of, including the contain option. I know I'm using
> contain right because it makes valid models appear and it complains for
> non-existant models, but Group is simply ignored.
>
> In the end I had to write a hack in my login function: make a manual find()
> and incorporate the 'Group' key to session data.
>
> Is this a known limitation?
>
> --
> 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 post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.