Re: cakePHP beginner: first app; some questions

2013-09-05 Thread lowpass
Also, you'll need to put the 'present' column in a separate table. Otherwise, you'll be continually overwriting the one field. Instead, consider a table wherein each row points back to a specific User. This table would, at a minimum, have the date (use 'created' and it will be filled in

cakePHP beginner: first app; some questions

2013-09-04 Thread Florian Beijers
Hi, For my very first cakePHP app I'd like to do the following: - I have a table in a db which contains columns for a person's name, and two integer columns named Present and NotPresent. - What I wish to do is give the app the possibility to a. Add new users (which would add 0 in both present

Re: cakePHP beginner: first app; some questions

2013-09-04 Thread Simon Males
You should be able to scaffold A, B and C. D you'll have to code yourself. Just a tip, setup the boolean column(s) as TINYINT(1) in your database. Then CakePHP will treat them as Booleans (either true or false). Which allows you to have a single Present column, and if false, the user is