<?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: Modified Muliple Checkbox Helper</title>
	<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/</link>
	<description>Stuff</description>
	<pubDate>Tue, 06 Jan 2009 05:47:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: spheroid</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7120</link>
		<author>spheroid</author>
		<pubDate>Fri, 21 Sep 2007 23:51:28 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7120</guid>
					<description>I've been looking all over the web...and am disappointed at a lack of CakePHP 1.2 tutorials. Many new items, including form helpers. I downloaded your .zip and modified the templates to .ctp extensions. Under app/views/posts, I modified the add.ctp file this way:

[code]
New Post
create('Post'); ?&#62;

input('title', array('label' =&#62; 'Title', 'size' =&#62; '20', 'class' =&#62; 'required')); ?&#62;
error('Post.title', 'Please enter the Title.'); ?&#62;

input('body', array('cols' =&#62; '60', 'rows' =&#62; '10', 'class' =&#62; 'required')); ?&#62;
error('Post.body', 'Please enter the Body.'); ?&#62;

input('status', null); ?&#62;
error('Post.status', 'Please check the Status.'); ?&#62;

label('Tag.tag','Related Tags',null); ?&#62;
checkboxMultiple('Tag.Tag', $tags, $selectedTags, array('multiple' =&#62; 'multiple', 'class' =&#62; 'selectMultiple'));?&#62;
error('Tag.tag', 'Please check the Related Tags.'); ?&#62;
     
end('Add'); ?&#62;


link('List Posts', '/posts/index')?&#62;

[/code]

But i get these errors:

Notice (8): Undefined property:  HabtmHelper::$model [CORE\app\views\helpers\habtm.php, line 19]

Context &#124; Code

$fieldName	=	"Tag.Tag"
$options	=	false
$selected	=	null
$inbetween	=	array("multiple" =&#62; "multiple", "class" =&#62; "selectMultiple")
$htmlAttributes	=	null
$return	=	false


        { 


 


               $this-&#62;setFormTag($fieldName); 


                if ($this-&#62;tagIsInvalid($this-&#62;model, $this-&#62;field)) 


                 { 

HabtmHelper::checkboxMultiple() - CORE\app\views\helpers\habtm.php, line 19
include - CORE\app\views\posts\add.ctp, line 14
View::_render() - CORE\cake\libs\view\view.php, line 772
View::render() - CORE\cake\libs\view\view.php, line 337
Controller::render() - CORE\cake\libs\controller\controller.php, line 663
PostsController::add() - CORE\app\controllers\posts_controller.php, line 24
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 353
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 333
[main] - CORE\app\webroot\index.php, line 83

Notice (8): Undefined property:  HabtmHelper::$field [CORE\app\views\helpers\habtm.php, line 19]</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking all over the web&#8230;and am disappointed at a lack of CakePHP 1.2 tutorials. Many new items, including form helpers. I downloaded your .zip and modified the templates to .ctp extensions. Under app/views/posts, I modified the add.ctp file this way:</p>
<p>[code]<br />
New Post<br />
create(&#8217;Post&#8217;); ?&gt;</p>
<p>input(&#8217;title&#8217;, array(&#8217;label&#8217; =&gt; &#8216;Title&#8217;, &#8217;size&#8217; =&gt; &#8216;20&#8242;, &#8216;class&#8217; =&gt; &#8216;required&#8217;)); ?&gt;<br />
error(&#8217;Post.title&#8217;, &#8216;Please enter the Title.&#8217;); ?&gt;</p>
<p>input(&#8217;body&#8217;, array(&#8217;cols&#8217; =&gt; &#8216;60&#8242;, &#8216;rows&#8217; =&gt; &#8216;10&#8242;, &#8216;class&#8217; =&gt; &#8216;required&#8217;)); ?&gt;<br />
error(&#8217;Post.body&#8217;, &#8216;Please enter the Body.&#8217;); ?&gt;</p>
<p>input(&#8217;status&#8217;, null); ?&gt;<br />
error(&#8217;Post.status&#8217;, &#8216;Please check the Status.&#8217;); ?&gt;</p>
<p>label(&#8217;Tag.tag&#8217;,'Related Tags&#8217;,null); ?&gt;<br />
checkboxMultiple(&#8217;Tag.Tag&#8217;, $tags, $selectedTags, array(&#8217;multiple&#8217; =&gt; &#8216;multiple&#8217;, &#8216;class&#8217; =&gt; &#8217;selectMultiple&#8217;));?&gt;<br />
error(&#8217;Tag.tag&#8217;, &#8216;Please check the Related Tags.&#8217;); ?&gt;</p>
<p>end(&#8217;Add&#8217;); ?&gt;</p>
<p>link(&#8217;List Posts&#8217;, &#8216;/posts/index&#8217;)?&gt;</p>
<p>[/code]</p>
<p>But i get these errors:</p>
<p>Notice (8): Undefined property:  HabtmHelper::$model [CORE\app\views\helpers\habtm.php, line 19]</p>
<p>Context | Code</p>
<p>$fieldName	=	&#8220;Tag.Tag&#8221;<br />
$options	=	false<br />
$selected	=	null<br />
$inbetween	=	array(&#8221;multiple&#8221; =&gt; &#8220;multiple&#8221;, &#8220;class&#8221; =&gt; &#8220;selectMultiple&#8221;)<br />
$htmlAttributes	=	null<br />
$return	=	false</p>
<p>        { </p>
<p>               $this-&gt;setFormTag($fieldName); </p>
<p>                if ($this-&gt;tagIsInvalid($this-&gt;model, $this-&gt;field)) </p>
<p>                 { </p>
<p>HabtmHelper::checkboxMultiple() - CORE\app\views\helpers\habtm.php, line 19<br />
include - CORE\app\views\posts\add.ctp, line 14<br />
View::_render() - CORE\cake\libs\view\view.php, line 772<br />
View::render() - CORE\cake\libs\view\view.php, line 337<br />
Controller::render() - CORE\cake\libs\controller\controller.php, line 663<br />
PostsController::add() - CORE\app\controllers\posts_controller.php, line 24<br />
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 353<br />
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 333<br />
[main] - CORE\app\webroot\index.php, line 83</p>
<p>Notice (8): Undefined property:  HabtmHelper::$field [CORE\app\views\helpers\habtm.php, line 19]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7139</link>
		<author>Flipflops</author>
		<pubDate>Sun, 23 Sep 2007 08:02:18 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7139</guid>
					<description>I have to say I agree with you - I would like to see more stuff about 1.2 - there is a lot about (I think) but it is all buried in groups etc.

Whilst groups (etc.) are great, the trouble is you have to know what you are looking for - if you have a manual or a set of tutorials you can just scan through them and find things out you don't have to know what you are after... you can just stumble upon things.

To quote the un likely poet Donald Rumsfeld:
&lt;blockquote&gt;...because as we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns -- the ones we don't know we don't know.&lt;/blockquote&gt;

With regards to you error - I'm not sure as I haven't done anything with 1.2 - but at some point I'll be making the move so would appreciate if you post somewhere what is going wrong.

Cheers</description>
		<content:encoded><![CDATA[<p>I have to say I agree with you - I would like to see more stuff about 1.2 - there is a lot about (I think) but it is all buried in groups etc.</p>
<p>Whilst groups (etc.) are great, the trouble is you have to know what you are looking for - if you have a manual or a set of tutorials you can just scan through them and find things out you don&#8217;t have to know what you are after&#8230; you can just stumble upon things.</p>
<p>To quote the un likely poet Donald Rumsfeld:</p>
<blockquote><p>&#8230;because as we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns &#8212; the ones we don&#8217;t know we don&#8217;t know.</p></blockquote>
<p>With regards to you error - I&#8217;m not sure as I haven&#8217;t done anything with 1.2 - but at some point I&#8217;ll be making the move so would appreciate if you post somewhere what is going wrong.</p>
<p>Cheers</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7151</link>
		<author>Flipflops</author>
		<pubDate>Mon, 24 Sep 2007 08:02:19 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7151</guid>
					<description>I've been thinking about your problem some more - do you actually need to do this in 1.2 ? - I was under the impression (though could be wrong) that there was proper HABTM / checkbox support within it.

It certainly has the ability to use criteria in the join table for HABTM using WITH - the lack of which is really frustrating in 1.1</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been thinking about your problem some more - do you actually need to do this in 1.2 ? - I was under the impression (though could be wrong) that there was proper HABTM / checkbox support within it.</p>
<p>It certainly has the ability to use criteria in the join table for HABTM using WITH - the lack of which is really frustrating in 1.1</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: spheroid</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7154</link>
		<author>spheroid</author>
		<pubDate>Mon, 24 Sep 2007 12:40:34 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7154</guid>
					<description>I'd like to do this in 1.2, I suppose it is a feature in 1.2, but without a bit of concrete examples, not sure how to do it.</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to do this in 1.2, I suppose it is a feature in 1.2, but without a bit of concrete examples, not sure how to do it.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: spheroid</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7203</link>
		<author>spheroid</author>
		<pubDate>Fri, 28 Sep 2007 00:22:28 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7203</guid>
					<description>For now I'm scrapping learning Cake 1.2. Not enough documentation yet. I'm working on learning CodeIgniter 1.5.4.</description>
		<content:encoded><![CDATA[<p>For now I&#8217;m scrapping learning Cake 1.2. Not enough documentation yet. I&#8217;m working on learning CodeIgniter 1.5.4.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7265</link>
		<author>Flipflops</author>
		<pubDate>Tue, 02 Oct 2007 07:50:59 +0000</pubDate>
		<guid>http://www.flipflops.org/2007/04/12/modified-muliple-checkbox-helper/#comment-7265</guid>
					<description>Hi Spheroid

I know where you're coming from - I don't feel particularly like diving into Cake 1.2 at the moment. Right now I've completed 3 Cake based CRM systems and I'm currently working on a largeish (~ 400 pages at launch) website also Cake powered.

It's only now on the website that I feel like I really understand the way Cake works and can now start to get real benefits out of it. To tell the truth building the 3 CRMs was a bit of slog at times - and I'm glad that they are private systems and are locked down tight. If you build something from scatch with your own code - bits might be badly written but at least you can hold an overview in your head - you know exactly how the security works for example...

With Cake - you have this potentailly powerful framework, but I felt I needed to do a suprising amount of work to get it to a position where I can really get going with it (security, uploads, assorted helpers etc.)

Anyway I've never used CodeIgniter - I briefly looked at it - but decieded to go down the Cake root (because of the docs). I'd be interested to know how you get on...</description>
		<content:encoded><![CDATA[<p>Hi Spheroid</p>
<p>I know where you&#8217;re coming from - I don&#8217;t feel particularly like diving into Cake 1.2 at the moment. Right now I&#8217;ve completed 3 Cake based CRM systems and I&#8217;m currently working on a largeish (~ 400 pages at launch) website also Cake powered.</p>
<p>It&#8217;s only now on the website that I feel like I really understand the way Cake works and can now start to get real benefits out of it. To tell the truth building the 3 CRMs was a bit of slog at times - and I&#8217;m glad that they are private systems and are locked down tight. If you build something from scatch with your own code - bits might be badly written but at least you can hold an overview in your head - you know exactly how the security works for example&#8230;</p>
<p>With Cake - you have this potentailly powerful framework, but I felt I needed to do a suprising amount of work to get it to a position where I can really get going with it (security, uploads, assorted helpers etc.)</p>
<p>Anyway I&#8217;ve never used CodeIgniter - I briefly looked at it - but decieded to go down the Cake root (because of the docs). I&#8217;d be interested to know how you get on&#8230;</p>
]]></content:encoded>
				</item>
</channel>
</rss>
