Re: cakephp with jquery datatable

2012-11-02 Thread Tilen Majerle
what..if you want to use datatables, than do not use pagination in cake -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/1 Panda Taruma pandaso...@gmail.com iI am using jquery datatable. successfully .. but the data show a maximum of 100 rows.. anybody can share to me?? -- Like Us

preg_match Warning on Email

2012-11-02 Thread Chris
hi guys,... I'm getting this preg_match Warning on Email issue no matter what I do, can anyone help me please, Warning (2): preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash [APP/controllers/invitations_controller.php, line 83] and this is what I

Re: preg_match Warning on Email

2012-11-02 Thread Chetan Varshney
For email validation you should use- 'email'= array( 'mustNotEmpty'=array( 'rule' = 'notEmpty', 'message'= __('Please enter email'), 'last'=true), 'mustBeEmail'= array(

Re: preg_match Warning on Email

2012-11-02 Thread Chris
thank you for your reply chetan,... I'm steel getting an error: Warning (2): preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash [APP/controllers/invitations_controller.php, line 83] this is my invitations model: var $validate = array( 'user_id' =

Re: preg_match Warning on Email

2012-11-02 Thread Jonathan Sundquist
Chris, Your issue is 'VALID_EMAIL' is not a valid regular expression. Take a look here for how to use regular expressions to validate the email address. http://www.developphp.com/view_lesson.php?v=224 - Jon On Fri, Nov 2, 2012 at 9:35 AM, Chris chris...@yahoo.com wrote: thank you for your

Re: preg_match Warning on Email

2012-11-02 Thread Chetan Varshney
Now I assume you are taking input as comma separated multiple emails. If yes use code like. In Model email = array( 'mustNotEmpty'=array( 'rule' = 'notEmpty', 'message'= 'Please enter to email(s)', 'last'=true), 'mustBeEmail'= array( 'rule' = 'validateEmails', 'message'= '',

Re: preg_match Warning on Email

2012-11-02 Thread euromark
instead of explode I would use Cake's String method: $emails = String::tokenize($emails[0]); Am Freitag, 2. November 2012 15:47:54 UTC+1 schrieb chetan varshney: Now I assume you are taking input as comma separated multiple emails. If yes use code like. In Model email = array(

add subquery to every find-statement in beforeFind

2012-11-02 Thread Mathias R
Hi, i have a model which belongs to another like model car belongs to rent-time. in table for rent-time there are two timestamps (start and end). now i want to modify every find-statement for model car and add a subquery like this: select *, (select id from rent-time where start = time() and

Re: Many-to-many ACL

2012-11-02 Thread rchavik
On Friday, 2 November 2012 06:57:13 UTC+7, Daniel Hdez wrote: Hello, hey i have the same problem, do you find a solution yet? greetings! :) If you read the thread, you'll find the solution in front of you :p -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: pass data from view to controller using ajax

2012-11-02 Thread DimanG
Many thanks to you! среда, 28 апреля 2010 г., 18:21:07 UTC+4 пользователь Marcelo F Andrade написал: On Tue, Apr 27, 2010 at 8:57 AM, MANOJ DHAMAL manoj@gmail.comjavascript: wrote: How to pass data two or more fields from view to controller by usin ajax in cakephp ? Serialize.

Looking for work in central London?

2012-11-02 Thread Jeremy Burns
I've had a call from an agent looking for someone to do a six to eight week CakePHP contract in central London for £300-350 per day. Private reply if you are interested and I'll connect you. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Issues with digest authentication - need some help

2012-11-02 Thread Nir Regev
Hi all ! I'm rather mew to cake and trying to create a set of REST services with the need for DIGEST auth. configuration : - I'm using cake 2.2.3 - in AppController I've got this setup : public $components = array( 'RequestHandler', 'Session', 'Auth' = array(

Re: CakePHP 2.x and ajax

2012-11-02 Thread Karey Powell
Checkout this video: http://www.youtube.com/watch?v=dQ71psonQx0feature=plcp. Hope it helps. On Thursday, 1 November 2012 04:18:57 UTC-4, franscelstain wrote: is there someone who can teach me to use ajax in cakephp 2.x, because I am still very novice thanks -- Like Us on FaceBook