Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2015-07-05 Thread DJ Far
SessionHelper is deprecated; use $this->request->session()->read('Auth.User.id'); On Monday, December 8, 2014 at 2:29:35 AM UTC-8, euromark wrote: > > if ($this->Session>check('Auth.User.id') {} > > > Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco: >> >> I want to check in my default l

Re: Advice for a newbie?

2015-03-23 Thread DJ Far
Definitely go with CakePHP 3.0. The ORM and query builder is awesome. Don't ramp up two learning curves, just start with 3.0. On Sunday, March 22, 2015 at 5:37:30 AM UTC-7, Jim_1993z wrote: > > Hello, > > I am an occasional database programmer, going way back to dBase days and I > want to wean

Re: CakePHP 2.3.8 and MySQL's YEAR Type

2014-03-12 Thread DJ Far
Will was referring to the data type, not the input type. Cake handles all kinds of data types that are not also input types (decimal, float, etc.). The benefit of Cake is that it has some smarts about creating inputs based on the data types in your model, but with the YEAR data type, which I a