<?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: Unofficial CakePHP forums</title>
	<atom:link href="http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-266961</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 31 Jan 2012 15:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-266961</guid>
		<description>@rehan: Thanks for your comment!

Hm, it sounds like a mod_rewrite issue, have a look at &lt;a href=&quot;http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html#a-note-on-mod-rewrite&quot; rel=&quot;nofollow&quot;&gt;A Note on mod_rewrite&lt;/a&gt;.

I hope this helps!</description>
		<content:encoded><![CDATA[<p>@rehan: Thanks for your comment!</p>
<p>Hm, it sounds like a mod_rewrite issue, have a look at <a href="http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html#a-note-on-mod-rewrite" rel="nofollow">A Note on mod_rewrite</a>.</p>
<p>I hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rehan</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-266631</link>
		<dc:creator>rehan</dc:creator>
		<pubDate>Fri, 27 Jan 2012 21:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-266631</guid>
		<description>Hello all, 
I am Schartz. I work as a part timer client side web designer, besides pursuing my engineering  course in computer science. Most of the time with CSS and Jquery. I have working knowledge of php also.  But now I am in serious problem. I need to complete a small website prototype in cakephp, (as my company i smoving to cake) and I ahave no idea where to start from. I am sending you my shout which I also posted on forum. Please do help me with it



I am an absolute newbie to cake php and the MVC design pattern itsef. I have basic understanding of working with php on my WAMP 2.0 local server. I am also pretty familiar with object oriented programming in C++.  I was following the &quot;blog tutorial&quot; on the on the book.cakephp.org  i followed everything exactly as there was in the tutorial. After completing the view of index of PostsController, they said it will display the blog posts already entered in the database. It was written that pointing the browser to &quot;www.example.com/posts/index&quot; will display all the entries in the database. As I am working on my local server I entered the URL as &quot;localhost/test_cake/posts/index&quot; and returned the notorious &quot;404 object not found&quot; test_cake is the name of the folder in my localhost www where i have extracted the cakephp 2.0 I have made all the names of everything exactly as it was given in the tutorial..... Somebody please help me with this...  Thanks in advance....</description>
		<content:encoded><![CDATA[<p>Hello all,<br />
I am Schartz. I work as a part timer client side web designer, besides pursuing my engineering  course in computer science. Most of the time with CSS and Jquery. I have working knowledge of php also.  But now I am in serious problem. I need to complete a small website prototype in cakephp, (as my company i smoving to cake) and I ahave no idea where to start from. I am sending you my shout which I also posted on forum. Please do help me with it</p>
<p>I am an absolute newbie to cake php and the MVC design pattern itsef. I have basic understanding of working with php on my WAMP 2.0 local server. I am also pretty familiar with object oriented programming in C++.  I was following the &#8220;blog tutorial&#8221; on the on the book.cakephp.org  i followed everything exactly as there was in the tutorial. After completing the view of index of PostsController, they said it will display the blog posts already entered in the database. It was written that pointing the browser to &#8220;www.example.com/posts/index&#8221; will display all the entries in the database. As I am working on my local server I entered the URL as &#8220;localhost/test_cake/posts/index&#8221; and returned the notorious &#8220;404 object not found&#8221; test_cake is the name of the folder in my localhost www where i have extracted the cakephp 2.0 I have made all the names of everything exactly as it was given in the tutorial&#8230;.. Somebody please help me with this&#8230;  Thanks in advance&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-153925</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 24 Mar 2010 16:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-153925</guid>
		<description>@Jiran: Ah, you are using this snippet in a controller ;-)  I would consider to move this code into a view, as it is usually a bad idea to have html code in your controllers. 

If you really have to use the link method in the controller, have a look at &lt;a href=&quot;http://cakebaker.42dh.com/2007/08/09/how-to-use-a-helper-in-a-controller/&quot; rel=&quot;nofollow&quot;&gt;How to use a helper in a controller&lt;/a&gt;.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>@Jiran: Ah, you are using this snippet in a controller ;-)  I would consider to move this code into a view, as it is usually a bad idea to have html code in your controllers. </p>
<p>If you really have to use the link method in the controller, have a look at <a href="http://cakebaker.42dh.com/2007/08/09/how-to-use-a-helper-in-a-controller/" rel="nofollow">How to use a helper in a controller</a>.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiran Simon</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-153814</link>
		<dc:creator>Jiran Simon</dc:creator>
		<pubDate>Wed, 24 Mar 2010 04:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-153814</guid>
		<description>&lt;code&gt; echo &#039;&lt;li onClick=&quot;fill(\&#039;&#039;.addslashes($results[&#039;members&#039;][&#039;name&#039;]).&#039;\&#039;);&quot;&gt;&#039;. 
     $html-&gt;link($results[&#039;members&#039;][&#039;name&#039;], array(‘controller’ =&gt; ‘members’, ‘action’ =&gt; ‘view’)).
     &#039;&lt;/li&gt;&#039;; &lt;/code&gt;

After running it shows following errors on text box
 Undefined variable: html [APP/controllers/members_controller.php, line 165]

Fatal error: Call to a member function link() on a non-object in /var/www/cakephp/app/controllers/members_controller.php on line 165</description>
		<content:encoded><![CDATA[<pre><code>echo '&lt;li onClick="fill(\''.addslashes($results['members']['name']).'\');"&gt;'. 
     $html-&gt;link($results['members']['name'], array(‘controller’ =&gt; ‘members’, ‘action’ =&gt; ‘view’)).
     '&lt;/li&gt;';</code></pre>
<p>After running it shows following errors on text box<br />
 Undefined variable: html [APP/controllers/members_controller.php, line 165]</p>
<p>Fatal error: Call to a member function link() on a non-object in /var/www/cakephp/app/controllers/members_controller.php on line 165</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-153665</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 23 Mar 2010 15:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-153665</guid>
		<description>@Jiran: Something like:
&lt;code&gt;
echo &#039;&lt;li onClick=&quot;fill(\&#039;&#039;.addslashes($results[&#039;members&#039;][&#039;name&#039;]).&#039;\&#039;);&quot;&gt;&#039;. 
     $html-&gt;link($results[&#039;members&#039;][&#039;name&#039;], array(‘controller’ =&gt; ‘members’, ‘action’ =&gt; ‘view’)).
     &#039;&lt;/li&gt;&#039;;
&lt;/code&gt;
should do the trick.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>@Jiran: Something like:<br />
<pre><code>echo '&lt;li onClick="fill(\''.addslashes($results['members']['name']).'\');"&gt;'. 
     $html-&gt;link($results['members']['name'], array(‘controller’ =&gt; ‘members’, ‘action’ =&gt; ‘view’)).
     '&lt;/li&gt;';</code></pre><br />
should do the trick.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiran Simon</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-153617</link>
		<dc:creator>Jiran Simon</dc:creator>
		<pubDate>Tue, 23 Mar 2010 11:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-153617</guid>
		<description>Hii, Can anybody add a link on this code ?

And when click on the link it should redirect to the view of the
search result.( ie.to  array(&#039;controller&#039; =&gt; &#039;members&#039;, &#039;action&#039; =&gt;
&#039;view&#039;))

code :

&lt;code&gt;echo &#039;&lt;li onClick=&quot;fill(\&#039;&#039;.addslashes($results[&#039;members&#039;]
[&#039;name&#039;]).&#039;\&#039;);&quot;&gt;&#039;.$results[&#039;members&#039;][&#039;name&#039;].&#039;&lt;/li&gt;&#039;; &lt;/code&gt;

I&#039;m faild to add the link on it.
Plz help me.</description>
		<content:encoded><![CDATA[<p>Hii, Can anybody add a link on this code ?</p>
<p>And when click on the link it should redirect to the view of the<br />
search result.( ie.to  array(&#8216;controller&#8217; =&gt; &#8216;members&#8217;, &#8216;action&#8217; =&gt;<br />
&#8216;view&#8217;))</p>
<p>code :</p>
<pre><code>echo '&lt;li onClick="fill(\''.addslashes($results['members']
['name']).'\');"&gt;'.$results['members']['name'].'&lt;/li&gt;';</code></pre>
<p>I&#8217;m faild to add the link on it.<br />
Plz help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiran</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-153615</link>
		<dc:creator>Jiran</dc:creator>
		<pubDate>Tue, 23 Mar 2010 11:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-153615</guid>
		<description>Hii, Can anybody add a link on this code ?

And when click on the link it should redirect to the view of the
search result.( ie.to  array(&#039;controller&#039; =&gt; &#039;members&#039;, &#039;action&#039; =&gt;
&#039;view&#039;))

code :

echo &#039;&#039;.$results[&#039;members&#039;][&#039;name&#039;].&#039;&#039;;

I&#039;m faild to add the link on it.
Plz help me.</description>
		<content:encoded><![CDATA[<p>Hii, Can anybody add a link on this code ?</p>
<p>And when click on the link it should redirect to the view of the<br />
search result.( ie.to  array(&#8216;controller&#8217; =&gt; &#8216;members&#8217;, &#8216;action&#8217; =&gt;<br />
&#8216;view&#8217;))</p>
<p>code :</p>
<p>echo &#8221;.$results['members']['name'].&#8221;;</p>
<p>I&#8217;m faild to add the link on it.<br />
Plz help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-135630</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 01 Sep 2009 15:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-135630</guid>
		<description>@MariusD: Hm, I am not sure I understand what you try to accomplish... If you want to return only the Products, then you could add
&lt;pre&gt;
&lt;code&gt;
&#039;contain&#039; =&gt; array(&#039;Product&#039;)
&lt;/code&gt;
&lt;/pre&gt;
to your $paginate array.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@MariusD: Hm, I am not sure I understand what you try to accomplish&#8230; If you want to return only the Products, then you could add</p>
<pre>
<code>'contain' =&gt; array('Product')</code>
</pre>
<p>to your $paginate array.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariusd</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-135620</link>
		<dc:creator>Mariusd</dc:creator>
		<pubDate>Tue, 01 Sep 2009 07:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-135620</guid>
		<description>I&#039;m quite new in cakephp and I will apreciate if someone can help.
I want to list all my [B]products[/B] from DB once but if a [B]product[/B] have 2,3 or more [B]ingredients[/B] then in the list that product will apear 2,3,x times(like in the image)


[URL=http://img412.imageshack.us/i/53074479.jpg/][IMG]http://img412.imageshack.us/img412/6611/53074479.th.jpg[/IMG][/URL]

the [B]ingredients[/B] of a product are saved in a table called [B]product_retetas[/B] and the records of that table have the following fields:
id &#124; [B]product_id[/B] &#124; [B]ingredient_id[/B] &#124; ...&#124;...

[B]products[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]ingredients[/B]
[B]products[/B] have [B]hasOne[/B] relationship with [B]product_retetas[/B]
[B]ingredients[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]products[/B]
[B]product_retetas[/B] have [B]belogsTo[/B] relationship with both [B]ingredients[/B] and [B]products[/B]

--------------------------------------------------------

class ProductsController extends AppController {

	var $name = &#039;Products&#039;;
	var $helpers = array(&#039;Html&#039;, &#039;Form&#039;);
/*	var $paginate = array(
      &#039;fields&#039;=&gt;array($this-&gt;query(&#039;distinct Product.id&#039;)),
        &#039;recursive&#039;=&gt;0,
        &#039;limit&#039;=&gt;10  );*/



	function index() {
	
		$this-&gt;Product-&gt;recursive = 0;
		$this-&gt;set(&#039;products&#039;, $this-&gt;paginate());
	}

If I set recursive la -2 then I will receive error in the index at every button (from the picture) becouse every button link is related to a model who belongs to product
(link(&#039;alergeni&#039;,
			array(&#039;controller&#039;=&gt; &#039;product_retetas&#039;, &#039;action&#039;=&gt;&#039;alergeni&#039;,$product[&#039;Product&#039;][&#039;id&#039;]),
			array(&#039;target&#039;=&gt;&#039;_blank&#039;,&#039;class&#039;=&gt;&#039;btn&#039;), null, false
				);?&gt;)</description>
		<content:encoded><![CDATA[<p>I&#8217;m quite new in cakephp and I will apreciate if someone can help.<br />
I want to list all my [B]products[/B] from DB once but if a [B]product[/B] have 2,3 or more [B]ingredients[/B] then in the list that product will apear 2,3,x times(like in the image)</p>
<p>[URL=http://img412.imageshack.us/i/53074479.jpg/][IMG]http://img412.imageshack.us/img412/6611/53074479.th.jpg[/IMG][/URL]</p>
<p>the [B]ingredients[/B] of a product are saved in a table called [B]product_retetas[/B] and the records of that table have the following fields:<br />
id | [B]product_id[/B] | [B]ingredient_id[/B] | &#8230;|&#8230;</p>
<p>[B]products[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]ingredients[/B]<br />
[B]products[/B] have [B]hasOne[/B] relationship with [B]product_retetas[/B]<br />
[B]ingredients[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]products[/B]<br />
[B]product_retetas[/B] have [B]belogsTo[/B] relationship with both [B]ingredients[/B] and [B]products[/B]</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>class ProductsController extends AppController {</p>
<p>	var $name = &#8216;Products&#8217;;<br />
	var $helpers = array(&#8216;Html&#8217;, &#8216;Form&#8217;);<br />
/*	var $paginate = array(<br />
      &#8216;fields&#8217;=&gt;array($this-&gt;query(&#8216;distinct Product.id&#8217;)),<br />
        &#8216;recursive&#8217;=&gt;0,<br />
        &#8216;limit&#8217;=&gt;10  );*/</p>
<p>	function index() {</p>
<p>		$this-&gt;Product-&gt;recursive = 0;<br />
		$this-&gt;set(&#8216;products&#8217;, $this-&gt;paginate());<br />
	}</p>
<p>If I set recursive la -2 then I will receive error in the index at every button (from the picture) becouse every button link is related to a model who belongs to product<br />
(link(&#8216;alergeni&#8217;,<br />
			array(&#8216;controller&#8217;=&gt; &#8216;product_retetas&#8217;, &#8216;action&#8217;=&gt;&#8217;alergeni&#8217;,$product['Product']['id']),<br />
			array(&#8216;target&#8217;=&gt;&#8217;_blank&#8217;,'class&#8217;=&gt;&#8217;btn&#8217;), null, false<br />
				);?&gt;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adedoyin Kassem</title>
		<link>http://cakebaker.42dh.com/2006/07/18/unofficial-cakephp-forums/comment-page-1/#comment-109214</link>
		<dc:creator>Adedoyin Kassem</dc:creator>
		<pubDate>Tue, 07 Oct 2008 13:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=229#comment-109214</guid>
		<description>I hve been trying to upload my cake application to my web host but when i view it online it keeps returning errors. please can someone check it up for me and tell what the problem really is...

www.smartsms.tk</description>
		<content:encoded><![CDATA[<p>I hve been trying to upload my cake application to my web host but when i view it online it keeps returning errors. please can someone check it up for me and tell what the problem really is&#8230;</p>
<p><a href="http://www.smartsms.tk" rel="nofollow">http://www.smartsms.tk</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

