Sunday, January 22, 2012

Re: captcha problem

I have enough you and your problems...use Recaptcha where all works fine !!!


And stop coding with cakephp if you don't know to set this up to work !!

--
Lep pozdrav, Tilen Majerle



2012/1/22 xparmand@yahoo.com <xparmand@yahoo.com>
I will try this. However I get a new captcha every time. That is not
the issue. So the image is ok. But in the file i got a line saying
$_SESSION['captcha'] = value;
The issue is that I cannot  access in any way the captcha session
variable from cakephp.

On Jan 21, 9:24 am, Daniel <danwgr...@gmail.com> wrote:
> Why are you putting the captcha in the img directory?  You should have
> the image source as an action, in your view (ctp) file:
>
> <?php echo $this->Html->image($this->Html->url(array('controller'=>'yourcontoroller', 'action'=>'captcha',
>
> time()),true), array('style'=>'','vspace'=>2)); ?>
>
> ... that way you can have a new captcha drawn every time from
> 'yourcontroller'.  If you are using the Auth component then remember
> to allow the 'captcha' action.

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: