Re: Weired cakePHP behavior!!

2009-07-27 Thread phpcurious
I noticed that in the frist part of your codes you indicated that you needed a recursion on the pagination, while the other, you only used read function which reads only a specific row with no recursion. That's just my guess where you are having trouble with. To know more about recursion, http://b

Re: Slug instead of ID

2009-06-16 Thread phpcurious
why do you have to use slugs, why not try using their usernames the users provided or assigned to them by the system? On Jun 17, 7:24 am, "Dave Maharaj :: WidePixels.com" wrote: > I am using custom slugs that the user creates when they sign up. > > USER: > id > slug > . > > When a User m

Re: Simple validation, required=true does not work or has preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

2009-01-15 Thread phpcurious
I just noticed another thing about your problem. The reason why you get a preg_match error is because you weren't able to follow the proper syntax for the validation rule. for simple rules, you can follow this sample code (got from book): var $validate = array( 'fieldName1' => array(

Re: Simple validation, required=true does not work or has preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

2009-01-14 Thread phpcurious
Louie, I read it somewhere in some people's blog, that the 'required' validation rule doesn't really mean the field being required. Even I don't get much the idea of it. But You might consider checking up "notEmpty" instead if you want the field not to be empty. On Jan 15, 1:52 pm, "Louie Miran

Re: How to print query...

2008-10-22 Thread phpcurious
if you don't see any debug dump, that could have been due to your $cakeDebug is either empty or not in default.ctp layout On Oct 22, 6:38 pm, xelios <[EMAIL PROTECTED]> wrote: > My debug line is as follows: > Configure::write('debug', 2); > > but still its not showing queries > > On Oct 22, 3:24 

Email Validation after registration

2008-10-07 Thread phpcurious
okay, I already did the user registration, but now, I want the user to validate the email address the user is registered with. The user will be sent an email for the validation link. now my concern here is that link to my cakephp web app will be accessible for a limited time only. because of that,

Re: SQL expressions in paginate or find

2008-09-26 Thread phpcurious
I don't know what exactly you want to achieve , but it is best that you read over the manuals on how to make paginations work. http://book.cakephp.org/view/164/Pagination On Sep 27, 2:04 am, "Eric C. Weaver" <[EMAIL PROTECTED]> wrote: > In one model's (controller's) index action, I'd like to fe

Re: Cake on rails

2008-09-17 Thread phpcurious
yep. it's not real. i think they just want to use cakephp's popularity in Search engines to make their site to earn some. On Sep 17, 9:13 pm, Donkeybob <[EMAIL PROTECTED]> wrote: > Is this real? Everything points to being a joke to me. . . I don't see > any real world code . . . . > > On Sep 17,

Re: SSL Certificate Login with CakePHP

2008-09-03 Thread phpcurious
I think what he meant was to make parts of his cakephp app secure by redirecting it to https. On Sep 4, 10:40 am, powtac <[EMAIL PROTECTED]> wrote: > The "SSL stuff" is not connected to cake! This is something your > server (apache) handles. > An certificate just encrypts the connection between b

User Model and its associations in AuthComponent

2008-08-22 Thread phpcurious
Hi guys, Let's say, I have User model and it "belongsTo" a Group Model... I use AuthComponent to authenticate users like in user login. but when I dump the $_SESSION the user object in Session doesn't have its association to the Group Model. what is the proper way to associate my user in active

RE: problem using TreeBehavior generateTreeList function...

2008-03-25 Thread phpcurious
my controller's code: -- categories->generatetreelist($this- >categories,"categories.id ASC",NULL,"{n}categories.id","{n}categories.description"); pr($treelist); } } ?> -- model's code: -

Re: start session problem in cakephp1.2 beta

2008-01-07 Thread phpcurious
I have almost the same problem as you do with regards to the Session.start. I do this in Cakephp 1.1.x when setting sessions: define('AUTO_SESSION', false); define('CAKE_SESSION_SAVE', 'database'); define('CAKE_SESSION_TABLE', 'cake_sessions'); define('CAKE_SESSION_TIMEOUT', '120')

Re: problem implementing user - session login system

2007-08-05 Thread phpcurious
e user is still allowed to access other areas > of the site without being authenticated. > > The parameters that defines how long a session is considered to be > active is different to the CAKE_SESSION_SAVE. > > On Aug 5, 4:40 am, phpcurious <[EMAIL PROTECTED]> wrote:

problem implementing user - session login system

2007-08-05 Thread phpcurious
Hi, I am getting frustrated with the session component in cakephp 1.1.xxx . I already configured core.php to define('CAKE_SESSION_SAVE', 'database'); but how do i retrieve current session to check if current session is still active ? by using $this->cake_session->findAll($id) ? how do i get the

Re: what did I do wrong to generate a PHP Notice ?

2007-08-03 Thread phpcurious
Hi, I am using Cake 1.1.xxx ... On Aug 3, 7:02 pm, francky06l <[EMAIL PROTECTED]> wrote: > Cake 1.2 ? > > echo $form->input('username'); > > On Aug 4, 3:45 am, phpcurious <[EMAIL PROTECTED]> wrote: > > > when I use $html helper, > > a

what did I do wrong to generate a PHP Notice ?

2007-08-03 Thread phpcurious
when I use $html helper, and code $html->input("username",array("type"=>"text")); it says, Notice: Undefined offset: 1 in XXX\cake\libs\view\helpers\html.php on line 947 I had to hide this by changing debug from 1 to 0... I hope somebody tells me what I am doing wrong... --~--~-