Re: Authentication issue

2013-03-06 Thread David Camerotto
Thanks, that worked, much appreciated

On Tuesday, 5 March 2013 11:29:02 UTC+10:30, David Camerotto wrote:
>
> My apologies in advance, i am still relatively new to CakePHP.
>
> I took over a site a number on months ago and have slowly worked out how 
> thing operate. (http://www.musicformywedding.com.au/)
>
> One issue that has me stumped is access to a custom plugin for FAQs, you 
> can only access this page if logged in.
>
> I cannot work out where the code is to control this, i have looked in the 
> plugins controller but it seems to only affect the admin page for creating 
> the FAQs.
>
> I even created a new plugin that was identical to the FAQ plugin apart 
> from the naming conventions (called it questions) and it still asks you to 
> login, does this mean that all plugins need authentication.
>
> Any help much appreciated
>
> Regards
> David
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Authentication issue

2013-03-04 Thread David Camerotto
My apologies in advance, i am still relatively new to CakePHP.

I took over a site a number on months ago and have slowly worked out how 
thing operate. (http://www.musicformywedding.com.au/)

One issue that has me stumped is access to a custom plugin for FAQs, you 
can only access this page if logged in.

I cannot work out where the code is to control this, i have looked in the 
plugins controller but it seems to only affect the admin page for creating 
the FAQs.

I even created a new plugin that was identical to the FAQ plugin apart from 
the naming conventions (called it questions) and it still asks you to 
login, does this mean that all plugins need authentication.

Any help much appreciated

Regards
David

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




cakephp and ajax

2012-12-17 Thread David Camerotto


Hi, I am relatively new to Cake, I took over a web site that uses it and am 
still learning the ropes, but slowly getting there.

One issue has do have is with the image shown below.

I want to be able to retrieve data from the DB when clicking on the Apply 
link.

I have create a model and controller and have added this code to the click 
event for the link.

$('#go').click(function(){
$.ajax({
url:'/discount/index',
type:'POST',
data:data
});

What I'm unsure about is how to retrieve the the data from the DB and how 
to put it into the input box - table is called settings and field is 
discount_code.

Any help would be greatly appreciated




-- 
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.