<?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 for The NewComer</title>
	<atom:link href="http://blog.jambura.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jambura.com</link>
	<description>Sharing my web developing experience with the world</description>
	<lastBuildDate>Sat, 05 May 2012 16:37:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>Comment on Easy Way to Change Facebook&#8217;s Share Image and Title by Zakir Hyder</title>
		<link>http://blog.jambura.com/2011/04/08/easy-way-to-change-facebooks-share-image-and-title/#comment-263</link>
		<dc:creator>Zakir Hyder</dc:creator>
		<pubDate>Sat, 05 May 2012 16:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=139#comment-263</guid>
		<description>HI Jody,
You have to add the &quot;og:image&quot; meta image to head element. See this page &lt;a href=&quot;https://developers.facebook.com/docs/opengraphprotocol/&quot; rel=&quot;nofollow&quot;&gt;https://developers.facebook.com/docs/opengraphprotocol/&lt;/a&gt;. BTW remember the page where you are using share that page has to be avaialaleb with out any authentication. Suppose http://www.site.com/user.php is the page you want to share. But you have authentication system so that user have to login to see http://www.site.com/user.php. Then when Facebook crawl this page the crawler will be redirected so the meta tags will not be available to user.</description>
		<content:encoded><![CDATA[<p>HI Jody,<br />
You have to add the &#8220;og:image&#8221; meta image to head element. See this page <a href="https://developers.facebook.com/docs/opengraphprotocol/" rel="nofollow">https://developers.facebook.com/docs/opengraphprotocol/</a>. BTW remember the page where you are using share that page has to be avaialaleb with out any authentication. Suppose <a href="http://www.site.com/user.php" rel="nofollow">http://www.site.com/user.php</a> is the page you want to share. But you have authentication system so that user have to login to see <a href="http://www.site.com/user.php" rel="nofollow">http://www.site.com/user.php</a>. Then when Facebook crawl this page the crawler will be redirected so the meta tags will not be available to user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy Way to Change Facebook&#8217;s Share Image and Title by jodi</title>
		<link>http://blog.jambura.com/2011/04/08/easy-way-to-change-facebooks-share-image-and-title/#comment-262</link>
		<dc:creator>jodi</dc:creator>
		<pubDate>Sat, 05 May 2012 13:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=139#comment-262</guid>
		<description>Hi, 
Thanks so much for this info. I&#039;m ready to launch a new website and my logo just doesn&#039;t come out clear so looking to use the main page photo. 

I am using the 2. code in my template for the share button, but which one and where do I add the meta share? I tried added to the first code but nothing happens. Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks so much for this info. I&#8217;m ready to launch a new website and my logo just doesn&#8217;t come out clear so looking to use the main page photo. </p>
<p>I am using the 2. code in my template for the share button, but which one and where do I add the meta share? I tried added to the first code but nothing happens. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by Zakir Hyder</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-261</link>
		<dc:creator>Zakir Hyder</dc:creator>
		<pubDate>Wed, 25 Apr 2012 20:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-261</guid>
		<description>Thanks patrick for detail and in-depth explanation on view.</description>
		<content:encoded><![CDATA[<p>Thanks patrick for detail and in-depth explanation on view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Way to Create Captcha in CakePHP 1.2,CakePHP 1.3, CakePHP 2.0 and CakePHP 2.1 by Zakir Hyder</title>
		<link>http://blog.jambura.com/2011/05/02/simple-way-to-create-captcha-in-cakephp/#comment-260</link>
		<dc:creator>Zakir Hyder</dc:creator>
		<pubDate>Wed, 25 Apr 2012 20:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=146#comment-260</guid>
		<description>You are welcome.</description>
		<content:encoded><![CDATA[<p>You are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by patrick</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-259</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Wed, 25 Apr 2012 13:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-259</guid>
		<description>Actually to be more clear, the problem with inserting in the view happened because:
1) your view is built from a combination of columns from different tables and
2) contain derived columns as in  &quot;concat(users.first_name,&#039; &#039;,users.last_name) AS Name&quot; then there isn&#039;t a one-to-one relationship between your view columns and the columns of the underlying table, the update or insert will fail.</description>
		<content:encoded><![CDATA[<p>Actually to be more clear, the problem with inserting in the view happened because:<br />
1) your view is built from a combination of columns from different tables and<br />
2) contain derived columns as in  &#8220;concat(users.first_name,&#8217; &#8216;,users.last_name) AS Name&#8221; then there isn&#8217;t a one-to-one relationship between your view columns and the columns of the underlying table, the update or insert will fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by patrick</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-258</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Wed, 25 Apr 2012 13:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-258</guid>
		<description>So I just tried and it works on CakePHP 2.1.0 . What I do is I create a view in mysql:
CREATE ALGORITHM = UNDEFINED VIEW  `userstoos` AS SELECT * 
FROM  `users`

Then  I just enter at the command prompt 
&quot;cake bake all&quot; to create the appropriate model (Usertoo). After that I browse to the &quot;add&quot; action of UsertooController and jsut create a new user. And it actually adds a new record to the table users. That is the view &quot;userstoos&quot; now is just a kind of proxy to &quot;users&quot;. 
Now if you check on Oracle&#039;s MySQL reference (http://dev.mysql.com/doc/refman/5.5/en/view-updatability.html) you&#039;ll realize that they may be many reasons why CakePHP could not use your view to update or insert new records in the underlying tables:  1) because your view is built from the combination of columns from different tables, which makes it so that there isn&#039;t a one-to-one relationship between your view columns and the columns of the underlying table. Therefore, since a view update can only update one table, your update will most likely fail.
2) A view can be used to update an underlying table if only the view does not contain derived columns. Your sql code contains &quot;concat(users.first_name,&#039; &#039;,users.last_name) AS Name&quot; . 
These are two reasons why it failed. There are some more. 
After looking at the lib\Cake\Model\Datasource\Database\MySQL.php file (in version 2.1.0) from line 184,  we can see that cake/libs/model/datasources/datasource.php itself does not prevent CakePHP to access views.
Thanks for your post Kazir. That made me realize that some kind of views are not updatable nor insertable and that the issue comes from MySQL workings and not from CakePHP.</description>
		<content:encoded><![CDATA[<p>So I just tried and it works on CakePHP 2.1.0 . What I do is I create a view in mysql:<br />
CREATE ALGORITHM = UNDEFINED VIEW  `userstoos` AS SELECT *<br />
FROM  `users`</p>
<p>Then  I just enter at the command prompt<br />
&#8220;cake bake all&#8221; to create the appropriate model (Usertoo). After that I browse to the &#8220;add&#8221; action of UsertooController and jsut create a new user. And it actually adds a new record to the table users. That is the view &#8220;userstoos&#8221; now is just a kind of proxy to &#8220;users&#8221;.<br />
Now if you check on Oracle&#8217;s MySQL reference (<a href="http://dev.mysql.com/doc/refman/5.5/en/view-updatability.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/view-updatability.html</a>) you&#8217;ll realize that they may be many reasons why CakePHP could not use your view to update or insert new records in the underlying tables:  1) because your view is built from the combination of columns from different tables, which makes it so that there isn&#8217;t a one-to-one relationship between your view columns and the columns of the underlying table. Therefore, since a view update can only update one table, your update will most likely fail.<br />
2) A view can be used to update an underlying table if only the view does not contain derived columns. Your sql code contains &#8220;concat(users.first_name,&#8217; &#8216;,users.last_name) AS Name&#8221; .<br />
These are two reasons why it failed. There are some more.<br />
After looking at the lib\Cake\Model\Datasource\Database\MySQL.php file (in version 2.1.0) from line 184,  we can see that cake/libs/model/datasources/datasource.php itself does not prevent CakePHP to access views.<br />
Thanks for your post Kazir. That made me realize that some kind of views are not updatable nor insertable and that the issue comes from MySQL workings and not from CakePHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by patrick</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-257</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Wed, 25 Apr 2012 11:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-257</guid>
		<description>Thanks for the precision.
Actually, I have not tried to insert data on the view. I just needed to bake models for table that where not named after the cakephp convention, so I used sql views to have a pluralized version of those tables. Now,let me try to insert data in a view and I&#039;ll come back to you.</description>
		<content:encoded><![CDATA[<p>Thanks for the precision.<br />
Actually, I have not tried to insert data on the view. I just needed to bake models for table that where not named after the cakephp convention, so I used sql views to have a pluralized version of those tables. Now,let me try to insert data in a view and I&#8217;ll come back to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Way to Create Captcha in CakePHP 1.2,CakePHP 1.3, CakePHP 2.0 and CakePHP 2.1 by Jonathan</title>
		<link>http://blog.jambura.com/2011/05/02/simple-way-to-create-captcha-in-cakephp/#comment-256</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Wed, 25 Apr 2012 11:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=146#comment-256</guid>
		<description>Thanks, I got it working.</description>
		<content:encoded><![CDATA[<p>Thanks, I got it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by Zakir Hyder</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-255</link>
		<dc:creator>Zakir Hyder</dc:creator>
		<pubDate>Wed, 25 Apr 2012 07:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-255</guid>
		<description>I am using CakePHP 1.3.  For retrieving data CakePHP 1.3 does well with view, but it has no support for creating new records. Did you try to insert data on the view?</description>
		<content:encoded><![CDATA[<p>I am using CakePHP 1.3.  For retrieving data CakePHP 1.3 does well with view, but it has no support for creating new records. Did you try to insert data on the view?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Implementing MySql View in CakePHP For Typeahead Search by patrick</title>
		<link>http://blog.jambura.com/2012/03/23/implementing-mysql-view-in-cakephp-for-typeahead-search/#comment-254</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Wed, 25 Apr 2012 07:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jambura.com/?p=556#comment-254</guid>
		<description>Hi Zakir, which version of Cake are you using? I am using 2.1.0 and I was able to bake views that had been created in MySQL: the issue was that some table were not named following the cake convention, that is pluralized. So what I did was to create views that had the proper naming convention and that were mere selct * statements. Worked fine as Bake created the appropriate model. Then I opened the newly created model php files and added the appropriate $useTable variables. That meant that now cake would go to the table from which the view was created and work properly.</description>
		<content:encoded><![CDATA[<p>Hi Zakir, which version of Cake are you using? I am using 2.1.0 and I was able to bake views that had been created in MySQL: the issue was that some table were not named following the cake convention, that is pluralized. So what I did was to create views that had the proper naming convention and that were mere selct * statements. Worked fine as Bake created the appropriate model. Then I opened the newly created model php files and added the appropriate $useTable variables. That meant that now cake would go to the table from which the view was created and work properly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 313/328 objects using disk: basic

Served from: blog.jambura.com @ 2012-05-20 15:07:09 -->
