Cake 3 Cookie - not persistent

2015-05-28 Thread erikober
Hello, I think I must be missing something simple. On just a simple view action in the controller: $this-loadComponent('Cookie'); $this-Cookie-config('path', '/'); $this-Cookie-config([ 'expires' = '+10 days', 'httpOnly' = true ]); $this-Cookie-write('name', 'Larry'); echo

Re: CakePHP 2.6.6 and 3.0.6 Released (security fixes)

2015-05-28 Thread mark_story
Earlier today, we announced the release of 2.6.6. This version contained a syntax error in PHP 5.4. This error has been corrected in 2.6.7. If you are running PHP 5.4.0 you should upgrade to 2.6.7 instead of 2.6.6. In doing the security release, I did not follow our normal process of ensuring

How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Hi All, I want to set an authorization in the registration of a form using CakePHP 3.0. Before asking here, i tried below things but no luck in my favor. Suppose i have role field in the usersTable like 'superuser', 'admin', 'user'. I want to provide permission superuser to make all the things

Re: How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread euromark
check() and comparison is really a bad idea the first returns bool, how should that ever === to a string? wrapping that with !empty() makes this completely wrong if(!empty($this-request-session()-check('Auth.User.role') === 'superadmin')){ Try if

CakePHP 2.6.6 and 3.0.6 Released (security fixes)

2015-05-28 Thread mark_story
The CakePHP core team is ready to announce the immediate availability of CakePHP 2.6.6 and 3.0.6. These are maintenance releases that contain important security fixes. ## Security Fixes Earlier this week we were notified that RequestHandlerComponent had a vulnerability that would allow well

Re: How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Thanks a lot. its working now. Is there any other easiest way to do so? On Thu, May 28, 2015 at 8:50 PM, euromark dereurom...@gmail.com wrote: check() and comparison is really a bad idea the first returns bool, how should that ever === to a string? wrapping that with !empty() makes this