Re: Bug?

2009-09-15 Thread Vladiq

  UNIQUE KEY `username` (`username`),
  UNIQUE KEY `email` (`email`,`username`),

You right.

But why validation doesn't work?

On 15 сен, 14:48, Martin Westin martin.westin...@gmail.com wrote:
 If you really did set username, email to unique and not username
 unique and email unique (see the difference?) all is as it should be.
 In the first instance (one index combining the two fields) would have
 to have the same username and email combination for MySQLs index to
 throw an error.

 Is that it, you think?

 /Martin

 On Sep 15, 12:28 pm, vla...@gmail.com vla...@gmail.com wrote:



  Cake PHP 1.2.5, MySQL 5.*

  What I have:

  model user (all default) and:

   var $validate = array(
            'username' = 'alphaNumeric',
            'password' = 'notEmpty',
            'name' = 'notEmpty',
            'email' = 'email',
          );

  In MySQL I set for this table (users) fields: username, email - unique

  Also add Security component for security ;-)

  Now, I add ticket component for password remainding. And make a
  mistake:

  /users/remind.ctp:

  div class=users form
  ?php echo $form-create('User');?
          ?php
                  echo $form-input('email');
          ?
  ?php echo $form-end('Submit');?
  /div

  As you see form-create - I generate form /users/add

  So. I write in one field my email (already present in DB) and got
  message User was added

  I don't believe it. But in Mysql table I see record with email (which
  was present second time!) and other empty fields.

  How it possible???
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Virtual Hosting for CakePHP sites

2009-09-09 Thread Vladiq

thanks, I'll try to work a2hosting. Also I found in help: Yes we
working with CakePHP
;-)

On 8 сен, 20:23, Changoso mmosc...@gmail.com wrote:
 I use A2Hostingand Works great with vhosting and CakePHP

 Have lots of cakeprojects working without problem ;)

 A2 say they are programmers friendly and so far they have been indeed!

 On Sep 8, 3:25 am, vla...@gmail.com vla...@gmail.com wrote:



  Hi!

  Can you tell me about good (nice|normal) virtualhostingfor website
  based on CakePHP?

  I trying hostmonster.com, but get MySQL Error 1104 (MAX JOIN) - not
  work with CakePHP ACL/ACO systems.

  Any idea where I can get host?

  Thank you
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---