<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: CakePHP Calendar Helper</title>
	<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/</link>
	<description>Stuff</description>
	<pubDate>Thu, 08 Jan 2009 11:55:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Richard@Home</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9285</link>
		<author>Richard@Home</author>
		<pubDate>Wed, 09 Apr 2008 09:55:21 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9285</guid>
					<description>Nice job! :-)</description>
		<content:encoded><![CDATA[<p>Nice job! <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Web 2.0 Announcer</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9291</link>
		<author>Web 2.0 Announcer</author>
		<pubDate>Thu, 10 Apr 2008 09:35:53 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9291</guid>
					<description>&lt;strong&gt;Flipflops.org » Blog Archive » CakePHP Calendar Helper...&lt;/strong&gt;

[...][...]...</description>
		<content:encoded><![CDATA[<p><strong>Flipflops.org » Blog Archive » CakePHP Calendar Helper&#8230;</strong></p>
<p>[&#8230;][&#8230;]&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9293</link>
		<author>Darfuria</author>
		<pubDate>Sun, 13 Apr 2008 20:11:48 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9293</guid>
					<description>Nicely done - this will be really great once you've added the final things to it. I would have thought Prototype would be the way to go with it. Keep us updated anyway.

I've just redesigned our blog, and the sort of approach we both have with designs currently is very similar, it's quite amusing.</description>
		<content:encoded><![CDATA[<p>Nicely done - this will be really great once you&#8217;ve added the final things to it. I would have thought Prototype would be the way to go with it. Keep us updated anyway.</p>
<p>I&#8217;ve just redesigned our blog, and the sort of approach we both have with designs currently is very similar, it&#8217;s quite amusing.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9294</link>
		<author>Flipflops</author>
		<pubDate>Sun, 13 Apr 2008 20:59:39 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9294</guid>
					<description>I know - its a hard choice I like jquery - but will probably use prototype as it comes out of the box with cake...</description>
		<content:encoded><![CDATA[<p>I know - its a hard choice I like jquery - but will probably use prototype as it comes out of the box with cake&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: William</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9297</link>
		<author>William</author>
		<pubDate>Sun, 27 Apr 2008 18:19:55 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9297</guid>
					<description>Hi, I'm relatively new to CakePHP and I'm having a bit of trouble figuring out where all these files should go and what conventions they should follow. I'm using CakePHP 1.2, and I have the files here:

Calendar Helper: /app/views/helpers/calendar.php
Calendar View: /app/views/calendar.php
Event Model: /app/models/event.php
Calendar Controller: /cakebox/app/controllers/events_controller.php

When I go to /events/calendar in my browser I get the following error:
Class 'Event' not found in /home/httpd/html/cake/libs/class_registry.php

If you have any advice or insights they would be appreciated. Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m relatively new to CakePHP and I&#8217;m having a bit of trouble figuring out where all these files should go and what conventions they should follow. I&#8217;m using CakePHP 1.2, and I have the files here:</p>
<p>Calendar Helper: /app/views/helpers/calendar.php<br />
Calendar View: /app/views/calendar.php<br />
Event Model: /app/models/event.php<br />
Calendar Controller: /cakebox/app/controllers/events_controller.php</p>
<p>When I go to /events/calendar in my browser I get the following error:<br />
Class &#8216;Event&#8217; not found in /home/httpd/html/cake/libs/class_registry.php</p>
<p>If you have any advice or insights they would be appreciated. Thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9298</link>
		<author>Flipflops</author>
		<pubDate>Mon, 28 Apr 2008 15:08:50 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9298</guid>
					<description>Hi William

Calendar Controller: /cakebox/app/controllers/events_controller.php looks a bit weird - the cakebox part of the address - I am guessing though that this is just your development directory and you edited all the other paths for clarity.

When something goes wrong I always firstly check for Typos, then clear the app/tmp/cache/models

Also what debug level have you got set in core/config.php ? 

Other than that I'm not sure - but I will have a think about it. I'll also try and zip up all the files as a working download over the next few days.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi William</p>
<p>Calendar Controller: /cakebox/app/controllers/events_controller.php looks a bit weird - the cakebox part of the address - I am guessing though that this is just your development directory and you edited all the other paths for clarity.</p>
<p>When something goes wrong I always firstly check for Typos, then clear the app/tmp/cache/models</p>
<p>Also what debug level have you got set in core/config.php ? </p>
<p>Other than that I&#8217;m not sure - but I will have a think about it. I&#8217;ll also try and zip up all the files as a working download over the next few days.</p>
<p>Hope this helps.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9299</link>
		<author>Flipflops</author>
		<pubDate>Tue, 29 Apr 2008 08:12:30 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9299</guid>
					<description>I've just zipped up all the files and uploaded them, so it should now be very easy to get it up and running.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just zipped up all the files and uploaded them, so it should now be very easy to get it up and running.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: TommyO</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9300</link>
		<author>TommyO</author>
		<pubDate>Tue, 29 Apr 2008 15:17:07 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9300</guid>
					<description>Very nice.

I wrote a DateHelper and CalendarHelper 2 years ago specifically for cake, which is of course dearly in need of a refactoring, that does a lot of what you plan on adding.

I'm going to dive in this week on it, as I need an international calendar for a project.  Feel like merging resources? :)

Love it, well done!</description>
		<content:encoded><![CDATA[<p>Very nice.</p>
<p>I wrote a DateHelper and CalendarHelper 2 years ago specifically for cake, which is of course dearly in need of a refactoring, that does a lot of what you plan on adding.</p>
<p>I&#8217;m going to dive in this week on it, as I need an international calendar for a project.  Feel like merging resources? <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Love it, well done!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9301</link>
		<author>Flipflops</author>
		<pubDate>Thu, 01 May 2008 07:55:20 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9301</guid>
					<description>Hi Tommy

Thanks for getting in touch - potentially I am definitely up for joining forces, but I am am really snowed under at the moment and wouldn't be able to contribute that much at the moment.

I've been giving it a lot of thought though recently and have decided that I want in this kind of direction - how does this tie in with your ideas?

I want to extend the helper so you can specify how many calendars you want to show at a time - so you could show say 12 little calendars one for each month or 1 or 4 or whatever - I quite like some of the things you can do with Yahoo YUI, just not the implementation - and I have thought of this very much in terms of a server rather than client side thing.

The main change from that would be the input data array would have to change from a just an array with key 0-31 to a more complex array probably [year][month][day]

I thought it would be good to hive off all the code for checking the validity of a month (from the url) into a component and also functions for generating the data array, so you have a very clean controller.

Then integrating built in AJAX support for scrolling back and forth between calendar months that you can toggle on / off.

I'm still uming and ahhhing about whether to leave the actual content for a given day as just a container where people can put what they want into it....

On the internationalisation front - especially in Cake 1.2 shouldn't be that hard should it ? (not that I've ever had call to do any) - the main thing would just be the elements in month names array...

Cheers

BTW - I think the first thing I'm going to do is add support for multiple calendars.</description>
		<content:encoded><![CDATA[<p>Hi Tommy</p>
<p>Thanks for getting in touch - potentially I am definitely up for joining forces, but I am am really snowed under at the moment and wouldn&#8217;t be able to contribute that much at the moment.</p>
<p>I&#8217;ve been giving it a lot of thought though recently and have decided that I want in this kind of direction - how does this tie in with your ideas?</p>
<p>I want to extend the helper so you can specify how many calendars you want to show at a time - so you could show say 12 little calendars one for each month or 1 or 4 or whatever - I quite like some of the things you can do with Yahoo YUI, just not the implementation - and I have thought of this very much in terms of a server rather than client side thing.</p>
<p>The main change from that would be the input data array would have to change from a just an array with key 0-31 to a more complex array probably [year][month][day]</p>
<p>I thought it would be good to hive off all the code for checking the validity of a month (from the url) into a component and also functions for generating the data array, so you have a very clean controller.</p>
<p>Then integrating built in AJAX support for scrolling back and forth between calendar months that you can toggle on / off.</p>
<p>I&#8217;m still uming and ahhhing about whether to leave the actual content for a given day as just a container where people can put what they want into it&#8230;.</p>
<p>On the internationalisation front - especially in Cake 1.2 shouldn&#8217;t be that hard should it ? (not that I&#8217;ve ever had call to do any) - the main thing would just be the elements in month names array&#8230;</p>
<p>Cheers</p>
<p>BTW - I think the first thing I&#8217;m going to do is add support for multiple calendars.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Fred</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9336</link>
		<author>Fred</author>
		<pubDate>Fri, 23 May 2008 12:38:26 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9336</guid>
					<description>Very useful Flipflops ! Thanks for sharing your work :)

I just add the possibility to check if an event is private or public so you can both have a public or private events.
Add a 'private' field in your events table : TINYINT (NOT NULL,0)
And in your event controller :

$fields = array('id', 'name', 'DAY(event_date) AS event_day','private');
		
$varPublic = $this-&#62;Event-&#62;findAll('MONTH(Event.event_date) = ' . $month_num . ' AND YEAR(Event.event_date) = ' . $year . ' AND (private=0)', $fields, 'Event.event_date ASC');
$varPrivate = $this-&#62;Event-&#62;findAll('MONTH(Event.event_date) = ' . $month_num . ' AND YEAR(Event.event_date) = ' . $year . ' AND (private=1 OR private=0)', $fields, 'Event.event_date ASC');

[...]
Check if a session exist or not :
if (!$this-&#62;Session-&#62;check('User')) {$check = $varPublic;} else {$check = $varPrivate;}</description>
		<content:encoded><![CDATA[<p>Very useful Flipflops ! Thanks for sharing your work <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I just add the possibility to check if an event is private or public so you can both have a public or private events.<br />
Add a &#8216;private&#8217; field in your events table : TINYINT (NOT NULL,0)<br />
And in your event controller :</p>
<p>$fields = array(&#8217;id&#8217;, &#8216;name&#8217;, &#8216;DAY(event_date) AS event_day&#8217;,'private&#8217;);</p>
<p>$varPublic = $this-&gt;Event-&gt;findAll(&#8217;MONTH(Event.event_date) = &#8216; . $month_num . &#8216; AND YEAR(Event.event_date) = &#8216; . $year . &#8216; AND (private=0)&#8217;, $fields, &#8216;Event.event_date ASC&#8217;);<br />
$varPrivate = $this-&gt;Event-&gt;findAll(&#8217;MONTH(Event.event_date) = &#8216; . $month_num . &#8216; AND YEAR(Event.event_date) = &#8216; . $year . &#8216; AND (private=1 OR private=0)&#8217;, $fields, &#8216;Event.event_date ASC&#8217;);</p>
<p>[&#8230;]<br />
Check if a session exist or not :<br />
if (!$this-&gt;Session-&gt;check(&#8217;User&#8217;)) {$check = $varPublic;} else {$check = $varPrivate;}</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mzee.richo</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9498</link>
		<author>mzee.richo</author>
		<pubDate>Thu, 09 Oct 2008 10:08:45 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9498</guid>
					<description>Nice stuff bro . Been trying to re-do but hitting walls , op ill shoot it . can u explain why you use the $base_url = $this-&#62;webroot. Think its the one giving me hell .</description>
		<content:encoded><![CDATA[<p>Nice stuff bro . Been trying to re-do but hitting walls , op ill shoot it . can u explain why you use the $base_url = $this-&gt;webroot. Think its the one giving me hell .</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9499</link>
		<author>Ron</author>
		<pubDate>Sun, 12 Oct 2008 17:45:50 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9499</guid>
					<description>Hey 'FlipFlop',

I would 1st like to say I really enjoyed your helper! I also wanted to let you knw i've converted the calendar to work 100% in Ajax form, you can switch months via 'Ajax', you can view an event in a 'pop-up modal' and even click edit in there and edit in a different modal. Once i have it on the internet I can share it you. Well thank you very much for such a nice calnendar!

-Ron</description>
		<content:encoded><![CDATA[<p>Hey &#8216;FlipFlop&#8217;,</p>
<p>I would 1st like to say I really enjoyed your helper! I also wanted to let you knw i&#8217;ve converted the calendar to work 100% in Ajax form, you can switch months via &#8216;Ajax&#8217;, you can view an event in a &#8216;pop-up modal&#8217; and even click edit in there and edit in a different modal. Once i have it on the internet I can share it you. Well thank you very much for such a nice calnendar!</p>
<p>-Ron</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9503</link>
		<author>Flipflops</author>
		<pubDate>Tue, 14 Oct 2008 19:01:46 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9503</guid>
					<description>@Ron Cheers - glad you liked it, are you using any particular framework for the Ajax? One of the (many) reasons I never did this was because I couldn't decide whether to go jQuery or Prototype...

For the record I'm now firmly in the jQuery camp, I use it almost every day, it makes the little things so much easier. Giod it makes me shudder when I think of the hoops I used to jump through only a couple of years ago... thinking in particular of a car booking system I wrote about 2 1/2 years ago for a car share club - looping through a table with every hour for an entire week and adding event listeners to watch for clicks... hundreds of lines of javascript and all that browser forking code - in jQuery the whole thing would probably be 10 lines.

p.s. any links back to the site greatly appreciated.</description>
		<content:encoded><![CDATA[<p>@Ron Cheers - glad you liked it, are you using any particular framework for the Ajax? One of the (many) reasons I never did this was because I couldn&#8217;t decide whether to go jQuery or Prototype&#8230;</p>
<p>For the record I&#8217;m now firmly in the jQuery camp, I use it almost every day, it makes the little things so much easier. Giod it makes me shudder when I think of the hoops I used to jump through only a couple of years ago&#8230; thinking in particular of a car booking system I wrote about 2 1/2 years ago for a car share club - looping through a table with every hour for an entire week and adding event listeners to watch for clicks&#8230; hundreds of lines of javascript and all that browser forking code - in jQuery the whole thing would probably be 10 lines.</p>
<p>p.s. any links back to the site greatly appreciated.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9504</link>
		<author>Flipflops</author>
		<pubDate>Tue, 14 Oct 2008 19:05:39 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9504</guid>
					<description>@mzee

Sorry the $base_url is a kind of orphan from the &lt;a href="http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/" rel="nofollow"&gt;previous version&lt;/a&gt; - in some ways it should have been re factored out but I left in because I thought I  might end up needing it so I just left a comment in there.</description>
		<content:encoded><![CDATA[<p>@mzee</p>
<p>Sorry the $base_url is a kind of orphan from the <a href="http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/" rel="nofollow">previous version</a> - in some ways it should have been re factored out but I left in because I thought I  might end up needing it so I just left a comment in there.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mzee.richo</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9506</link>
		<author>mzee.richo</author>
		<pubDate>Thu, 16 Oct 2008 09:48:18 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9506</guid>
					<description>sure . thks bro</description>
		<content:encoded><![CDATA[<p>sure . thks bro</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Max</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9516</link>
		<author>Max</author>
		<pubDate>Tue, 04 Nov 2008 17:32:08 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9516</guid>
					<description>I installed everything on my application.
Where should I go to get the calendar? if I write myroot/events I get an error. I need to go to myroot/events/calendar/November/2008 to get the page. And even in this case in the end of the page i receive this error:
Notice: Array to string conversion in C:\Programmi\EasyPHP 2.0b1\www\cake\libs\view\helpers\html.php on line 179
And when I click on "add" i get:
Fatal: Confirm you have created the EventsController::Array() in file : app\controllers\events_controller.php



All the file are in the right folders. What' s the matter?</description>
		<content:encoded><![CDATA[<p>I installed everything on my application.<br />
Where should I go to get the calendar? if I write myroot/events I get an error. I need to go to myroot/events/calendar/November/2008 to get the page. And even in this case in the end of the page i receive this error:<br />
Notice: Array to string conversion in C:\Programmi\EasyPHP 2.0b1\www\cake\libs\view\helpers\html.php on line 179<br />
And when I click on &#8220;add&#8221; i get:<br />
Fatal: Confirm you have created the EventsController::Array() in file : app\controllers\events_controller.php</p>
<p>All the file are in the right folders. What&#8217; s the matter?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9522</link>
		<author>Brian</author>
		<pubDate>Mon, 10 Nov 2008 19:38:51 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9522</guid>
					<description>Flipflops,

This looks like a great solution to my problem, but I'm new to cakePHP and I was wondering what you meant when you said "slot it into place" as far as installing the app is concerned. 

Thanks,
Brian</description>
		<content:encoded><![CDATA[<p>Flipflops,</p>
<p>This looks like a great solution to my problem, but I&#8217;m new to cakePHP and I was wondering what you meant when you said &#8220;slot it into place&#8221; as far as installing the app is concerned. </p>
<p>Thanks,<br />
Brian</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9527</link>
		<author>Flipflops</author>
		<pubDate>Wed, 12 Nov 2008 09:45:24 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9527</guid>
					<description>@Brian - Slot it into place kinda means it shouldn't be too hard to get working - but you also have to bear in mind that Cake on the whole is a little more involved than something like say Joomla or Wordpress where you litterally can just get a plugin or component and drop it into place.

I would say download the example and get it running as a first step. I just checked and the vesion it uses is 1.2.0.6311 beta - so I would initially try installing it on a test server like that.</description>
		<content:encoded><![CDATA[<p>@Brian - Slot it into place kinda means it shouldn&#8217;t be too hard to get working - but you also have to bear in mind that Cake on the whole is a little more involved than something like say Joomla or Wordpress where you litterally can just get a plugin or component and drop it into place.</p>
<p>I would say download the example and get it running as a first step. I just checked and the vesion it uses is 1.2.0.6311 beta - so I would initially try installing it on a test server like that.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9528</link>
		<author>Flipflops</author>
		<pubDate>Wed, 12 Nov 2008 14:25:27 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9528</guid>
					<description>@Max - I'm guessing that this is because it makes uses of depreceated code - hi try just downloading the example and setting that up - but also download a copy of Cake 1.2.0.6311 beta - as this is the version the example online uses - so it really should 'just work' when you have set up a site on your dev machine. Then I would recommend downloading the latest version of Cake and fixing the errors that come up.

However thanks for pointing out the error - I'll look at this and update the example to run on RC3.</description>
		<content:encoded><![CDATA[<p>@Max - I&#8217;m guessing that this is because it makes uses of depreceated code - hi try just downloading the example and setting that up - but also download a copy of Cake 1.2.0.6311 beta - as this is the version the example online uses - so it really should &#8216;just work&#8217; when you have set up a site on your dev machine. Then I would recommend downloading the latest version of Cake and fixing the errors that come up.</p>
<p>However thanks for pointing out the error - I&#8217;ll look at this and update the example to run on RC3.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mark Roy</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9810</link>
		<author>Mark Roy</author>
		<pubDate>Tue, 30 Dec 2008 18:09:05 +0000</pubDate>
		<guid>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-9810</guid>
					<description>Hello John,

I thought I'd mention that I liked your calendar helper, but needed something slightly different, so I modified your  helper so that it now can also generate a weekly hour by hour calendar.  My version of the helper now has two methods, "month" (your "calendar" method, renamed), and "week".   

The week method generates a weekly view, and you can specify the day, month, and year, and it will display the week that it falls on starting on monday.  The week method also takes min_hour and max_hour which lets you specify which hours to display (for most applications, you wont need to show the entire day, for instance, you can set it to display 9:00 - 17:00, the typical workday).   The data array is specified like this  $data[day][hour] so that you can place an event on any given hour of any given day.  

The mod was surprisingly simple, and doesnt really change much else.  It even uses the same CSS file with no modifications.

John, please contact me by email if you'd like the source to post on your website.

-- Mark Roy</description>
		<content:encoded><![CDATA[<p>Hello John,</p>
<p>I thought I&#8217;d mention that I liked your calendar helper, but needed something slightly different, so I modified your  helper so that it now can also generate a weekly hour by hour calendar.  My version of the helper now has two methods, &#8220;month&#8221; (your &#8220;calendar&#8221; method, renamed), and &#8220;week&#8221;.   </p>
<p>The week method generates a weekly view, and you can specify the day, month, and year, and it will display the week that it falls on starting on monday.  The week method also takes min_hour and max_hour which lets you specify which hours to display (for most applications, you wont need to show the entire day, for instance, you can set it to display 9:00 - 17:00, the typical workday).   The data array is specified like this  $data[day][hour] so that you can place an event on any given hour of any given day.  </p>
<p>The mod was surprisingly simple, and doesnt really change much else.  It even uses the same CSS file with no modifications.</p>
<p>John, please contact me by email if you&#8217;d like the source to post on your website.</p>
<p>&#8211; Mark Roy</p>
]]></content:encoded>
				</item>
</channel>
</rss>
