<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CakePHP Calendar Helper</title>
	<atom:link href="http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:19:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: ceamha</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13467</link>
		<dc:creator>ceamha</dc:creator>
		<pubDate>Mon, 18 Apr 2011 16:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13467</guid>
		<description>Hi, I like your calendar, I was trying use, but don&#039;t work :&#039;(

When I write: path/events/calendar , this appears:

Warning (512): Method CalendarHelper::calendar does not exist [CORE\cake\libs\view\helper.php, line 154]

I have this files:

controllers: events_controller.php
Models: event.php
helpers: calendar.php
views: calendar.ctp

Now, I believe that the problem is in calendar.ctp:
calendar($year, $month, $data, $base_url);
?&gt;
I don&#039;t understand why use $calendar as object?

You can help me? What is wrong and how could it right?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I like your calendar, I was trying use, but don&#8217;t work :&#8217;(</p>
<p>When I write: path/events/calendar , this appears:</p>
<p>Warning (512): Method CalendarHelper::calendar does not exist [CORE\cake\libs\view\helper.php, line 154]</p>
<p>I have this files:</p>
<p>controllers: events_controller.php<br />
Models: event.php<br />
helpers: calendar.php<br />
views: calendar.ctp</p>
<p>Now, I believe that the problem is in calendar.ctp:<br />
calendar($year, $month, $data, $base_url);<br />
?&gt;<br />
I don&#8217;t understand why use $calendar as object?</p>
<p>You can help me? What is wrong and how could it right?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Marks</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13414</link>
		<dc:creator>David Marks</dc:creator>
		<pubDate>Thu, 20 Jan 2011 19:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13414</guid>
		<description>I like your calendar and approach.  However, it&#039;s nice to have the numbers for the previous month that start on days before the first.   So say June 1 starts on a wednesday.  Monday and tuesday should have 29, 30 respectively and those days might have a different background color indicating there not part of the current month.  On the other end, if June 30 ends on a Thursday, then Fri, Sat and Sun should have 1,2,3 in them.

My thought for the day.
David</description>
		<content:encoded><![CDATA[<p>I like your calendar and approach.  However, it&#8217;s nice to have the numbers for the previous month that start on days before the first.   So say June 1 starts on a wednesday.  Monday and tuesday should have 29, 30 respectively and those days might have a different background color indicating there not part of the current month.  On the other end, if June 30 ends on a Thursday, then Fri, Sat and Sun should have 1,2,3 in them.</p>
<p>My thought for the day.<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13413</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Wed, 19 Jan 2011 23:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13413</guid>
		<description>@Mike. You are welcome and far to kind. Thanks for the notes. Haven&#039;t used 1.3 yet.

Cheers</description>
		<content:encoded><![CDATA[<p>@Mike. You are welcome and far to kind. Thanks for the notes. Haven&#8217;t used 1.3 yet.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13412</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 18 Jan 2011 22:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13412</guid>
		<description>To make it work in CakePHP 1.3, you can replace this line:
$var = $this-&gt;Event-&gt;findAll(&#039;MONTH(Event.event_date) = &#039; . $month_num . &#039; AND YEAR(Event.event_date) = &#039; . $year, $fields, &#039;Event.event_date ASC&#039;);

With this:
       
        $conditions = array(&quot;AND&quot; =&gt; array(
                 &#039;MONTH(Event.event_date) = &#039; . $month_num,
                 &#039;YEAR(Event.event_date) = &#039; . $year
        ));
        
        $params = array(
        &#039;conditions&#039; =&gt; $conditions,
        &#039;fields&#039; =&gt; $fields
        );
                
        $var = $this-&gt;Event-&gt;find(&#039;all&#039;, $params);


Thanks for making an awesome helper, and I apologize for the ugliness of my code.</description>
		<content:encoded><![CDATA[<p>To make it work in CakePHP 1.3, you can replace this line:<br />
$var = $this-&gt;Event-&gt;findAll(&#8216;MONTH(Event.event_date) = &#8216; . $month_num . &#8216; AND YEAR(Event.event_date) = &#8216; . $year, $fields, &#8216;Event.event_date ASC&#8217;);</p>
<p>With this:</p>
<p>        $conditions = array(&#8220;AND&#8221; =&gt; array(<br />
                 &#8216;MONTH(Event.event_date) = &#8216; . $month_num,<br />
                 &#8216;YEAR(Event.event_date) = &#8216; . $year<br />
        ));</p>
<p>        $params = array(<br />
        &#8216;conditions&#8217; =&gt; $conditions,<br />
        &#8216;fields&#8217; =&gt; $fields<br />
        );</p>
<p>        $var = $this-&gt;Event-&gt;find(&#8216;all&#8217;, $params);</p>
<p>Thanks for making an awesome helper, and I apologize for the ugliness of my code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13397</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Mon, 15 Nov 2010 23:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13397</guid>
		<description>Hi Chris

Sorry, I haven&#039;t really done anything with Cake for over a year, so I&#039;m a little out of touch. But (from memory) has findAll been depreceated in favour of something along the lines of $this-&gt;find(&#039;all&#039;, array(&#039;conditions&#039; =&gt; $conditions)); ?

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Chris</p>
<p>Sorry, I haven&#8217;t really done anything with Cake for over a year, so I&#8217;m a little out of touch. But (from memory) has findAll been depreceated in favour of something along the lines of $this->find(&#8216;all&#8217;, array(&#8216;conditions&#8217; => $conditions)); ?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris D</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13396</link>
		<dc:creator>Chris D</dc:creator>
		<pubDate>Mon, 15 Nov 2010 01:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13396</guid>
		<description>I know this is an old post, and I know this is mostly only compatible with cake V 1.2.  

But I&#039;m now using the latest version of Cake and findAll no longer works as it used to...

$var = $this-&gt;Event-&gt;findAll(&#039;MONTH(Event.event_date) = &#039; . $month_num . &#039; AND YEAR(Event.event_date) = &#039; . $year, $fields, &#039;Event.event_date ASC&#039;);
 
Do you have a solution to this?</description>
		<content:encoded><![CDATA[<p>I know this is an old post, and I know this is mostly only compatible with cake V 1.2.  </p>
<p>But I&#8217;m now using the latest version of Cake and findAll no longer works as it used to&#8230;</p>
<p>$var = $this-&gt;Event-&gt;findAll(&#8216;MONTH(Event.event_date) = &#8216; . $month_num . &#8216; AND YEAR(Event.event_date) = &#8216; . $year, $fields, &#8216;Event.event_date ASC&#8217;);</p>
<p>Do you have a solution to this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raji</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13344</link>
		<dc:creator>Raji</dc:creator>
		<pubDate>Sat, 31 Jul 2010 12:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13344</guid>
		<description>Hi,

when i apply this ui am getting the following error.
And if i change in helper if loop which is inside while-for-loop.
i get mismatched data.
but not getting below error.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 127664085 bytes) in /var/www/cakephp-1.3.3/app/views/helpers/calendar.php on line 151


please clarify on this.

---
Thanks,
Raji.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>when i apply this ui am getting the following error.<br />
And if i change in helper if loop which is inside while-for-loop.<br />
i get mismatched data.<br />
but not getting below error.</p>
<p>Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 127664085 bytes) in /var/www/cakephp-1.3.3/app/views/helpers/calendar.php on line 151</p>
<p>please clarify on this.</p>
<p>&#8212;<br />
Thanks,<br />
Raji.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abdullah okm</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13260</link>
		<dc:creator>abdullah okm</dc:creator>
		<pubDate>Sat, 20 Mar 2010 07:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13260</guid>
		<description>hai its very nice but when i try to display by monthwise the event data not shown ....please help me on this
/home/rekha/Desktop/Screenshot-CakePHP: the rapid development php framework: Events - Mozilla Firefox.png</description>
		<content:encoded><![CDATA[<p>hai its very nice but when i try to display by monthwise the event data not shown &#8230;.please help me on this<br />
/home/rekha/Desktop/Screenshot-CakePHP: the rapid development php framework: Events &#8211; Mozilla Firefox.png</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheDiLab</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13257</link>
		<dc:creator>TheDiLab</dc:creator>
		<pubDate>Tue, 16 Mar 2010 09:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13257</guid>
		<description>This is my CakePHP calendar solution:
 http://www.the-di-lab.com/?p=144

What you say?</description>
		<content:encoded><![CDATA[<p>This is my CakePHP calendar solution:<br />
 <a href="http://www.the-di-lab.com/?p=144" rel="nofollow">http://www.the-di-lab.com/?p=144</a></p>
<p>What you say?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13243</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/#comment-13243</guid>
		<description>@mark, @proloser

Thanks for your comments guys. Apologies for the appallingly long time it has taken me to respond. 

What can I say... it is a very old post and the coed was a quick hack written as a rush job and then dumped into Cake 1.1  

Maybe one day I&#039;ll get to sort it out.</description>
		<content:encoded><![CDATA[<p>@mark, @proloser</p>
<p>Thanks for your comments guys. Apologies for the appallingly long time it has taken me to respond. </p>
<p>What can I say&#8230; it is a very old post and the coed was a quick hack written as a rush job and then dumped into Cake 1.1  </p>
<p>Maybe one day I&#8217;ll get to sort it out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

