cakephp shell not recognized

2011-08-25 Thread Özgür Demir
Hi everybody,

I'm having a weird problem using the beanstalkd plug in from david
pearson.
Adding jobs to the queue from my controllers works fine. But I cannot
use the provided shell scripts.
Calling

 ../cake/console/cake

the provided shells do not occur. All my other shells are displayed
properly. The folder structure seems to be ok. The shells are located
in

app/plugins/queue/vendors/shells/queue.php

Anyone got a hint?

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


Re: security component

2011-08-15 Thread Özgür Demir
Thanks a lot Jens,

I think I'll model it this way. Perhaps using a small ajax popup which
contains the token instead of a new frame just asking if the record
should be deleted.

On 13 Aug., 13:03, Jens Dittrich  wrote:
> No or it depends on what you want to happen when a delete link is clicked.
> No one forces you to commit a delete on a click on a link. As an example,
> you could always display a page requesting a confirm for the delete request,
> which could carry a token for that request. That way you could not delete by
> just firing a get request.

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


Re: security component

2011-08-12 Thread Özgür Demir
I was able to solve the first question myself:

In my controller actions I allways check if(this->data) before saving
or editing a record.
If variables are passed via get (harmfull link for example), $this-
>data is empty and nothing harmfull can happen.
In other words, without using post method its not possible to add or
edit a record.
Hence, security->requirePost just seems to be neccessary for the
delete actions.

Still, do I have to replace all delete links
with small forms which contain the authentication token?

On Aug 11, 5:54 pm, Özgür Demir  wrote:
> Hi every body,
>
> I'm pretty sure this must have been answered somewhere. However I
> wasn't able to find an answer yet. I have two question regarding the
> security component.
>
> 1. Authentification tokens seem to be checked by the security
> component only if data is passed via post. I assume this since my
> delete action is performed through a delete link even if the action is
> protected by the security component. This makes the security component
> useless for CSRF without the use of security->requirePost(). Am I
> right with this?
>
> 2. Its obvious that my "add/edit" links are not working if using
> requirePost('add','edit'), I could solve this by adding
> requirePost('add','edit') only if data is submitted by the user like
> this:
>
> in beforeFilter
> if(this->data){
> security->requirePots('add,'edit')
>
> }
>
> But how do I handle the delete links? Do I have to replace all of them
> with small forms which contain the authentication token?
>
> Thanks for your help...

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


security component

2011-08-11 Thread Özgür Demir
Hi every body,

I'm pretty sure this must have been answered somewhere. However I
wasn't able to find an answer yet. I have two question regarding the
security component.

1. Authentification tokens seem to be checked by the security
component only if data is passed via post. I assume this since my
delete action is performed through a delete link even if the action is
protected by the security component. This makes the security component
useless for CSRF without the use of security->requirePost(). Am I
right with this?

2. Its obvious that my "add/edit" links are not working if using
requirePost('add','edit'), I could solve this by adding
requirePost('add','edit') only if data is submitted by the user like
this:

in beforeFilter
if(this->data){
security->requirePots('add,'edit')
}

But how do I handle the delete links? Do I have to replace all of them
with small forms which contain the authentication token?

Thanks for your help...

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


Re: User specific Routing

2011-03-14 Thread Özgür Demir
thanks a lot cricket. this is exactly what I was looking for.

On 13 Mrz., 19:29, cricket  wrote:
> On Sun, Mar 13, 2011 at 8:33 AM, Özgür Demir  wrote:
> > Hi there,
>
> > I have a routing question. My website should display content depending
> > on a username. I can achieve this using something like:
>
> >www.mysite.com/controller/action/username:peter
>
> > i can then just show all information specific to user: peter.
> > however this is quite complex to remember for the user. Many other
> > sites do something like this:
>
> >www.mysite.com/peter/controller/action/
>
> > how can i achieve this with cake routing.
> > Thanks for helping
>
> Have a look at this article, which explains exactly 
> that.http://bakery.cakephp.org/articles/Frank/2009/11/02/cakephp-s-routing...

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


User specific Routing

2011-03-13 Thread Özgür Demir
Hi there,

I have a routing question. My website should display content depending
on a username. I can achieve this using something like:

www.mysite.com/controller/action/username:peter

i can then just show all information specific to user: peter.
however this is quite complex to remember for the user. Many other
sites do something like this:

www.mysite.com/peter/controller/action/

how can i achieve this with cake routing.
Thanks for helping

Ö

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