Hi,
I'm trying to add a little user authentification to my product
controller.
My code is:
class ProductsController extends AppController
{
var $protectedActions = array('add', 'edit', 'delete');
function beforeFilter(){
if (in_array($this-action,
Hi Carlosrg,
I would suggest putting
else
{
pr ($this-action); die;
}
In your before filter and calling the delete method, seeing what it
says and go from there.
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi Carlosrg,
Your post indicates that the checkSession method is run for a delete
call.
What does checkSession do?
*If it does not contain a die statement your code will continue to
run.
*If checkSession returns a value, it is not passed to beforeFilter
*If beforeFilter does not return False,