Wednesday, February 5, 2014

DerEuroMark - Ajax and CakePHP Tutorial Question

First off great article!

http://www.dereuromark.de/2014/01/09/ajax-and-cakephp/


Very informative.

 

My only question is there a way to remove the .json extension in the url?
Or is it needed to differentiate between views?

 

Only other thing I came across was my AppController isAuthorized() I have based on user logged in or not

$this->layout = 'admin'; so initially I was getting errors /app/View/Layouts/json/admin.ctp', missing.

But just added $this->layout = false; to solve that.

 

Thanks,

Dave

No comments: