verb in URL Management


I have this rule in the url management:

array('site/test30', 'pattern'=>'bubu/test30', 'caseSensitive'=>false, 'verb'=>'DELETE'),

But im having two problems:

1)i can access the method through both URL’s. How do i limit to just the second one?

2)I can invoke the function using all verbs instead of just the DELETE. How to limit to just that one?

Thanks in advance


come on…i didn’t find any topic about this subject…

is it that hard? :confused:

Ok, i found out by myself.

Turns out that, after you define the rules for one function of a controller, you have the original route and the new one. Only the new route will have the rules applied.

can u please explain this? i am having the same problem.