tags:

views:

25

answers:

1

Hi all, I have a table like this:

CREATE TABLE `availabilities` (
  `id` int(11) NOT NULL auto_increment,
  `structure_id` int(11) NOT NULL,
  `day` date NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
)

I need to create a calendar which would let me change the status of each day, i.e., set the status of each structure to available or not available. Is there a way to do this easily, such as an helper? Or can cake manage this automatically with an input? I don't pretend the correct formatting of the calendar, but only the correct input with checkboxes, something similar to HABTM relations.

Thanks

A: 

Hello Pau,

I suggest you try, if scaffolding can provide you with an easy solution, e.g. already populated select boxes for formulars.

Kind regards, Benjamin.

benjamin
Thanks, but I think I managed to modify this helper,http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/, and adapt it to my needs!
Pau