Re: CakePHP 2.x and ajax

2012-11-02 Thread Karey Powell
Checkout this video: http://www.youtube.com/watch?v=dQ71psonQx0&feature=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 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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(
'authenticate' => array(
'Digest' => array(
'userModel' => 'User',
'realm' => 'somerealm',
'fields' => array ('password' => 'digest_hash')
)
), 
'authorize' => array('Controller')
)

beforeFilter functions are not defined in Users/App controller

in UsersController I'v added a 'whoami' function to show currently logged 
on user name

Using curl --digest --user  "user:pass" 
"http://127.0.0.1/cake/Users/whoami"; 

problem is : I can never get the user to login ! 
hashes and all are fine, same user can login user forms auth. if I allow it.

curl gets 302 redirect to /Users/login

The only time I can get 'whoami' to work is if I Auth->allow it in 
beforeFilter but then I naturally don't have the user logged in.

Any suggestions ?

Thanks, Nir.



-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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

--- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 
> > 
> wrote: 
> > How to pass data two or more fields from view to controller by usin 
> > ajax in cakephp ? 
>
> Serialize. 
>
> ... 
> , 'with'=> 'Form.serializeElements(new 
> Array($("MyField1"), $("MyField2")))' 
>
> -- 
> MARCELO F ANDRADE 
> Belem, Amazonia, Brazil 
>
> "I took the red pill" 
>
> Check out the new CakePHP Questions site http://cakeqs.org and help 
> others with their CakePHP related questions. 
>
> 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  For more options, 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 end <= time() 
and car_id = $car_id limit 0,1) as rent-time from car

is it possible to modify original statement to add a subquery?

M.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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(
> 'mustNotEmpty'=>array(
> 'rule' => 'notEmpty',
> 'message'=> 'Please enter to email(s)',
> 'last'=>true),
> 'mustBeEmail'=> array(
> 'rule' => 'validateEmails',
> 'message'=> '',
> 'last' => true)),
>
> and put following function in same model
>
> public function validateEmails($check) {
> $emails = array_values($check);
> $key = array_keys($check);
> $emails = explode(',', $emails[0]);
> foreach($emails as $email) {
> $email = trim($email);
> if(!empty($email)) {
> $valid = Validation::email($email);
> if(!$valid) {
> $this->validationErrors[$key[0]][0]= 'You have an error 
> near '.$email;
> break;
> }
> }
> }
> return true;
> }
>
>
> nothing to do in controller. only call validation method from controller.
>
> good luck
>
> On Fri, Nov 2, 2012 at 8:05 PM, Chris >wrote:
>
>> 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' => array(
>>   'rule' => 'notEmpty',
>>   'message' => 'user must be valid',
>>  ),
>> 'email'=> array(
>> 'mustNotEmpty'=>array(
>> 'rule' => 'notEmpty',
>> 'message'=> 'Please enter email',
>> 'last'=>true),
>> 'mustBeEmail'=> array(
>> 'rule' => array('email'),
>> 'message' => 'Please enter valid email',
>> 'last'=>true)  
>> ),
>>
>>  );
>>
>> and this is what I have in a invitations controller: 
>> $emails = array();
>> 
>> if(!empty($this->data['Invitation']['emails']))
>> {
>>   $raw_emails = explode(',', $this->data['Invitation']['emails']);
>>   foreach($raw_emails as $email)
>>   {
>> $email = trim($email);
>> if(preg_match('VALID_EMAIL', $email)) // This is where I'm 
>> getting an error... 
>>   $emails[] = $email;
>>   }
>>
>>  debug($email);
>>
>> I placed the debug in,... and I'm reading test email in the view,... but 
>> steel getting an error 
>>
>>
>>
>> On Friday, November 2, 2012 6:52:42 AM UTC-7, chetan varshney wrote:
>>
>>> For email validation you should use-
>>>
>>> 'email'=> array(
>>> 'mustNotEmpty'=>array(
>>> 'rule' => 'notEmpty',
>>> 'message'=> __('Please enter email'),
>>> 'last'=>true),
>>> 'mustBeEmail'=> array(
>>> 'rule' => array('email'),
>>> 'message' => __('Please enter valid email'),
>>> 'last'=>true)  
>>> ),
>>>
>>> and for deep checking
>>>
>>> 'email'=> array(
>>> 'mustNotEmpty'=>array(
>>> 'rule' => 'notEmpty',
>>> 'message'=> __('Please enter email'),
>>> 'last'=>true),
>>> 'mustBeEmail'=> array(
>>> 'rule' => array('email', true),
>>> 'message' => __('Please enter valid email'),
>>> 'last'=>true)  
>>> ),
>>>
>>>
>>>
>>>  On Fri, Nov 2, 2012 at 7:05 PM, Chris  wrote:
>>>
 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 have in a Model: 

 var $validate = array(
   'email' => array(
   'rule' => 'alphaNumeric',
'required' => true,
   'allowEmpty' => false,
  ),
  );

 thanks in advance,... 
  chris

 -- 
 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...@**
 googlegroup

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'=> '',
'last' => true)),

and put following function in same model

public function validateEmails($check) {
$emails = array_values($check);
$key = array_keys($check);
$emails = explode(',', $emails[0]);
foreach($emails as $email) {
$email = trim($email);
if(!empty($email)) {
$valid = Validation::email($email);
if(!$valid) {
$this->validationErrors[$key[0]][0]= 'You have an error
near '.$email;
break;
}
}
}
return true;
}


nothing to do in controller. only call validation method from controller.

good luck

On Fri, Nov 2, 2012 at 8:05 PM, Chris  wrote:

> 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' => array(
>   'rule' => 'notEmpty',
>   'message' => 'user must be valid',
>  ),
> 'email'=> array(
> 'mustNotEmpty'=>array(
> 'rule' => 'notEmpty',
> 'message'=> 'Please enter email',
> 'last'=>true),
> 'mustBeEmail'=> array(
> 'rule' => array('email'),
> 'message' => 'Please enter valid email',
> 'last'=>true)
> ),
>
>  );
>
> and this is what I have in a invitations controller:
> $emails = array();
>
> if(!empty($this->data['Invitation']['emails']))
> {
>   $raw_emails = explode(',', $this->data['Invitation']['emails']);
>   foreach($raw_emails as $email)
>   {
> $email = trim($email);
> if(preg_match('VALID_EMAIL', $email)) // This is where I'm
> getting an error...
>   $emails[] = $email;
>   }
>
>  debug($email);
>
> I placed the debug in,... and I'm reading test email in the view,... but
> steel getting an error
>
>
>
> On Friday, November 2, 2012 6:52:42 AM UTC-7, chetan varshney wrote:
>
>> For email validation you should use-
>>
>> 'email'=> array(
>> 'mustNotEmpty'=>array(
>> 'rule' => 'notEmpty',
>> 'message'=> __('Please enter email'),
>> 'last'=>true),
>> 'mustBeEmail'=> array(
>> 'rule' => array('email'),
>> 'message' => __('Please enter valid email'),
>> 'last'=>true)
>> ),
>>
>> and for deep checking
>>
>> 'email'=> array(
>> 'mustNotEmpty'=>array(
>> 'rule' => 'notEmpty',
>> 'message'=> __('Please enter email'),
>> 'last'=>true),
>> 'mustBeEmail'=> array(
>> 'rule' => array('email', true),
>> 'message' => __('Please enter valid email'),
>> 'last'=>true)
>> ),
>>
>>
>>
>>  On Fri, Nov 2, 2012 at 7:05 PM, Chris  wrote:
>>
>>> 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 have in a Model:
>>>
>>> var $validate = array(
>>>   'email' => array(
>>>   'rule' => 'alphaNumeric',
>>>'required' => true,
>>>   'allowEmpty' => false,
>>>  ),
>>>  );
>>>
>>> thanks in advance,...
>>>  chris
>>>
>>> --
>>> 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 

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  wrote:

> 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' => array(
>   'rule' => 'notEmpty',
>   'message' => 'user must be valid',
>  ),
> 'email'=> array(
> 'mustNotEmpty'=>array(
> 'rule' => 'notEmpty',
> 'message'=> 'Please enter email',
> 'last'=>true),
> 'mustBeEmail'=> array(
> 'rule' => array('email'),
> 'message' => 'Please enter valid email',
> 'last'=>true)
> ),
>
>  );
>
> and this is what I have in a invitations controller:
> $emails = array();
>
> if(!empty($this->data['Invitation']['emails']))
> {
>   $raw_emails = explode(',', $this->data['Invitation']['emails']);
>   foreach($raw_emails as $email)
>   {
> $email = trim($email);
> if(preg_match('VALID_EMAIL', $email)) // This is where I'm
> getting an error...
>   $emails[] = $email;
>   }
>
>  debug($email);
>
> I placed the debug in,... and I'm reading test email in the view,... but
> steel getting an error
>
>
>
> On Friday, November 2, 2012 6:52:42 AM UTC-7, chetan varshney wrote:
>
>> For email validation you should use-
>>
>> 'email'=> array(
>> 'mustNotEmpty'=>array(
>> 'rule' => 'notEmpty',
>> 'message'=> __('Please enter email'),
>> 'last'=>true),
>> 'mustBeEmail'=> array(
>> 'rule' => array('email'),
>> 'message' => __('Please enter valid email'),
>> 'last'=>true)
>> ),
>>
>> and for deep checking
>>
>> 'email'=> array(
>> 'mustNotEmpty'=>array(
>> 'rule' => 'notEmpty',
>> 'message'=> __('Please enter email'),
>> 'last'=>true),
>> 'mustBeEmail'=> array(
>> 'rule' => array('email', true),
>> 'message' => __('Please enter valid email'),
>> 'last'=>true)
>> ),
>>
>>
>>
>>  On Fri, Nov 2, 2012 at 7:05 PM, Chris  wrote:
>>
>>> 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 have in a Model:
>>>
>>> var $validate = array(
>>>   'email' => array(
>>>   'rule' => 'alphaNumeric',
>>>'required' => true,
>>>   'allowEmpty' => false,
>>>  ),
>>>  );
>>>
>>> thanks in advance,...
>>>  chris
>>>
>>> --
>>> 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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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' => array(
  'rule' => 'notEmpty',
  'message' => 'user must be valid',
 ),
'email'=> array(
'mustNotEmpty'=>array(
'rule' => 'notEmpty',
'message'=> 'Please enter email',
'last'=>true),
'mustBeEmail'=> array(
'rule' => array('email'),
'message' => 'Please enter valid email',
'last'=>true)  
),

 );

and this is what I have in a invitations controller: 
$emails = array();

if(!empty($this->data['Invitation']['emails']))
{
  $raw_emails = explode(',', $this->data['Invitation']['emails']);
  foreach($raw_emails as $email)
  {
$email = trim($email);
if(preg_match('VALID_EMAIL', $email)) // This is where I'm 
getting an error... 
  $emails[] = $email;
  }

 debug($email);

I placed the debug in,... and I'm reading test email in the view,... but 
steel getting an error 



On Friday, November 2, 2012 6:52:42 AM UTC-7, chetan varshney wrote:
>
> For email validation you should use-
>
> 'email'=> array(
> 'mustNotEmpty'=>array(
> 'rule' => 'notEmpty',
> 'message'=> __('Please enter email'),
> 'last'=>true),
> 'mustBeEmail'=> array(
> 'rule' => array('email'),
> 'message' => __('Please enter valid email'),
> 'last'=>true)  
> ),
>
> and for deep checking
>
> 'email'=> array(
> 'mustNotEmpty'=>array(
> 'rule' => 'notEmpty',
> 'message'=> __('Please enter email'),
> 'last'=>true),
> 'mustBeEmail'=> array(
> 'rule' => array('email', true),
> 'message' => __('Please enter valid email'),
> 'last'=>true)  
> ),
>
>
>
> On Fri, Nov 2, 2012 at 7:05 PM, Chris >wrote:
>
>> 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 have in a Model: 
>>
>> var $validate = array(
>>   'email' => array(
>>   'rule' => 'alphaNumeric',
>>'required' => true,
>>   'allowEmpty' => false,
>>  ),
>>  );
>>
>> thanks in advance,... 
>> chris
>>
>> -- 
>> 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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(
'rule' => array('email'),
'message' => __('Please enter valid email'),
'last'=>true)
),

and for deep checking

'email'=> array(
'mustNotEmpty'=>array(
'rule' => 'notEmpty',
'message'=> __('Please enter email'),
'last'=>true),
'mustBeEmail'=> array(
'rule' => array('email', true),
'message' => __('Please enter valid email'),
'last'=>true)
),



On Fri, Nov 2, 2012 at 7:05 PM, Chris  wrote:

> 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 have in a Model:
>
> var $validate = array(
>   'email' => array(
>   'rule' => 'alphaNumeric',
>   'required' => true,
>   'allowEmpty' => false,
>  ),
>  );
>
> thanks in advance,...
> chris
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 have in a Model: 

var $validate = array(
  'email' => array(
  'rule' => 'alphaNumeric',
  'required' => true,
  'allowEmpty' => false,
 ),
 );

thanks in advance,... 
chris

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 

> iI am using jquery datatable. successfully ..
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.