Re: REST API server with Cakephp

2015-02-25 Thread Rafael Queiroz
Yes, it's possible, see: http://book.cakephp.org/2.0/en/development/rest.html http://book.cakephp.org/2.0/en/core-libraries/components/request-handling.html Use ResquetHandler::respondAs('json') in your AppController::beforeFilter, all requests results a json. You need define response using $thi

cakephp 3.0 supporting web hosting list

2015-02-25 Thread Cake Developer
Hello experts, Please provide the web hosting list that support cakephp 3.0. thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscr

Manual login with Auth->login()

2015-02-25 Thread Chauncey Starkey
I am getting a successful login with Opauth, and sending results to Auth for login, which is returning true, yet when I continue into the protected area I am notified "You are not authorized to access that location." and redirected to the login page. I'm sure I'm missing something obvious... Co

Re: CakePhp 3.0 unable to login

2015-02-25 Thread jadb
You aren't defining the custom models you are using. By default Auth expects Users table not Usarios. Read more here: http://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers On Sunday, 22 February 2015 11:05:53 UTC-5, s.m.s...@gmail.com w

Custom method in custom LogEngine

2015-02-25 Thread LDSign
Hi Ive created a custom DatabaseLog Engine which logs to the database. I would like to save the user too, so I have this method: public function write($type, $message,$user_id = null) { if (empty($user_id)) { $user_id = CakeSession::read('Auth.User.id'); } $log['action'] = $type; $log['user_id'

REST API server with Cakephp

2015-02-25 Thread Sven Mäurer
What are the best REST API server plugins? First of all I don't want to have the API methods in the controller I use for my web application and I want an URL like www.mydomain.de/api/v1/posts/ If possible also no view files, just directly encoded json. -- Like Us on FaceBook https://www.facebo

Re: Still having trouble with saving BelongsToMany data

2015-02-25 Thread heavyKevy
Joe, Here is what I did: In the attribute entity: protected $_accessible = [ 'id' => true, 'name' => true, 'listings' => true, ]; In the Listings_Attributes Table: public function validationDefault(Validator $validator) { $validator ->add(