In this short tutorial I will illustrate how can you send and read custom HTTP headers using php.
First let’s start by sending a custom HTTP header to the server. I will be using cURL library to send HTTP requests.
Read more…
After going here and there and implementing alot of solutions, I found that every post request is getting redirected to get even if it was with HTTPS because of the implementation of the ForceSSL in the manual, so my word to you, save your time and implement this simple solution. I have tested it on cakephp 2.0 however I think it wouldn’t mind to work on cakephp 1.3
Read more…
I came across a problem while developing with cakephp 2.0.
Suppose that you have got a Post model and a Category model, and you have a grid, with all posts and the category title they belong to. In order to sort by the category title you will need to do as the following in your view.
echo $this->Paginator->sort('Category.title','labelForTheTableHeader');
Hope that helps anyone
Cheers