Re: POST form changes to PUT

2013-05-09 Thread Irvin Huang
According to CakePHP lib Cake View Helper FormHelper.php Look up to this function public function create($model = null, $options = array()) and the following is the conditions the FormHelper will change PUT to POST: 1. Either $this-request-data[ the model name same as you specified for

Re: POST form changes to PUT

2013-05-09 Thread Irvin Huang
and how about POST vs PUT. I think there is a good answer on this page http://stackoverflow.com/questions/630453/put-vs-post-in-rest Irvin Huang tfir...@gmail.com 於 2013/5/9 下午9:43 寫道: According to CakePHP lib Cake View Helper FormHelper.php Look up to this function public function

Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
set the userModel and set $sessionKey as $sessionKey = 'Auth.YourModelName'; then you can separate your log-in sessions and login with models respectively. 2013/4/23 Alex Bovey a...@bovey.co.uk On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey a...@bovey.co.uk wrote: Hi all, What's the best

Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
sorry, let me correct, it should be: AuthComponent::$sessionKey = 'Auth.YourModelName'; 2013/4/23 Irvin Huang tfir...@gmail.com set the userModel and set $sessionKey as $sessionKey = 'Auth.YourModelName'; then you can separate your log-in sessions and login with models respectively