<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Smartwebsource&#039;s Blog</title>
	<atom:link href="http://smartwebsource.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://smartwebsource.wordpress.com</link>
	<description>Simple yet Authentic web Solutions</description>
	<lastBuildDate>Thu, 18 Mar 2010 19:17:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='smartwebsource.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Smartwebsource&#039;s Blog</title>
		<link>http://smartwebsource.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://smartwebsource.wordpress.com/osd.xml" title="Smartwebsource&#039;s Blog" />
	<atom:link rel='hub' href='http://smartwebsource.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SmartWebSource Launch its website</title>
		<link>http://smartwebsource.wordpress.com/2010/03/18/smartwebsource-launch-its-website/</link>
		<comments>http://smartwebsource.wordpress.com/2010/03/18/smartwebsource-launch-its-website/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 19:17:14 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/?p=41</guid>
		<description><![CDATA[We are pleased to inform you that Today SmartWebSource LLC has launched their new website. All information related to SamrtWebSource will be available here. Our services details, Support Website, Client communications, New projects update, clients testimonials, feedback will be available here. Please keep your eyes one this website www.smartwebsource.com for your website related service update… [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=41&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We are pleased to inform you that Today SmartWebSource LLC has launched their  new website. All information related to SamrtWebSource will be <a href="http://www.smartwebsource.com"><img class="alignright" title="SmartWebSource Logo" src="http://smartwebsource.com/wp-content/uploads/2010/03/smartwebsource-logo.jpg" alt="SmartWebSource Logo" width="350" height="85" /></a>available here.  Our services details, Support Website, Client communications, New projects  update, clients testimonials, feedback will be available here.</p>
<p>Please keep your eyes one this website <strong><a title="www.smartwebsource.com" href="http://www.smartwebsource.com/">www.smartwebsource.com</a></strong> for  your website related service update… for maintain your website, transfer your  website, redesign your website, Custom CMS, <strong>Content Management  System</strong>, <strong>Content Digitization</strong>, <strong>Ecommerce/online  store</strong>, your Blog, Membership related issues, Donation drive… or only  web presence… for Small and medium sized companies.</p>
<p>Visit us for more details: <strong><a title="www.smartwebsource.com" href="http://www.smartwebsource.com/">www.smartwebsource.com</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=41&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2010/03/18/smartwebsource-launch-its-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>

		<media:content url="http://smartwebsource.com/wp-content/uploads/2010/03/smartwebsource-logo.jpg" medium="image">
			<media:title type="html">SmartWebSource Logo</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.noConflict – Resolving conflicts with other javascript libraries that use $() function</title>
		<link>http://smartwebsource.wordpress.com/2009/11/03/jquery-noconflict-%e2%80%93-resolving-conflicts-with-other-javascript-libraries-that-use-function/</link>
		<comments>http://smartwebsource.wordpress.com/2009/11/03/jquery-noconflict-%e2%80%93-resolving-conflicts-with-other-javascript-libraries-that-use-function/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 00:18:10 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JQuery for beginner]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/?p=34</guid>
		<description><![CDATA[One of the reasons that make a software popular is its extensions and plugins. jQuery has plenty of plugins that do almost anything you want, from simple button hide to full blown galleries. Plugins let non developers easily add functionality they need to their websites and there are times when one might include more than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=34&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the reasons that make a software popular is its extensions and plugins. jQuery has plenty of plugins that do almost anything you want, from simple button hide to full blown galleries. Plugins let non developers easily add functionality they need to their websites and there are times when one might include more than one javascript library such as prototype.js, YUI or mootools with jQuery. They all use <code>$</code> as their main function name. Including second library might brake the behavior of the first one. To resolve such cases jQuery introduces <code>.noConflict()</code> method.</p>
<p>When you call <code>.noConflict()</code> jQuery will return <code>$()</code> to it’s previous owner and you will need to use <code>jQuery()</code> instead of shorthand <code>$()</code> function.</p>
<p><strong>.noConflict() usage example</strong> (From jQuery Docs site)</p>
<blockquote><p>
&lt;html&gt;<br />
  &lt;head&gt;<br />
  &lt;script src=&#8221;prototype.js&#8221;&gt;&lt;/script&gt;<br />
  &lt;script src=&#8221;jquery.js&#8221;&gt;&lt;/script&gt;<br />
  &lt;script&gt;<br />
    jQuery.noConflict();<br />
    // Use jQuery via jQuery(&#8230;)<br />
    jQuery(document).ready(function(){<br />
        jQuery(&#8220;div&#8221;).hide();<br />
    });<br />
    // Use Prototype with $(&#8230;), etc.<br />
    $(&#8216;someid&#8217;).hide();<br />
  &lt;/script&gt;<br />
  &lt;/head&gt;<br />
  &lt;body&gt;&lt;/body&gt;<br />
&lt;/html&gt;</p>
</blockquote>
<p>You can also use the following code snippets to still use <code>$()</code> in your code, but with one drawback, you will not have access to your other library’s <code>$()</code> method.</p>
<blockquote><p>
// Method 1<br />
jQuery(document).ready(function($){<br />
    $(&#8220;div&#8221;).hide();<br />
});</p>
<p>// Method 2<br />
(function($) {<br />
    /* some code that uses $ */<br />
})(jQuery);
</p></blockquote>
<p><strong>TIP:<br />
</strong>Don’t forget that you can always assign jQuery to any other variable name to use it as your shorthand: <code>var $_ = jQuery;</code><br />
Original source : <a href="http://jquery-howto.blogspot.com/search/label/beginner">http://jquery-howto.blogspot.com/search/label/beginner</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=34&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/11/03/jquery-noconflict-%e2%80%93-resolving-conflicts-with-other-javascript-libraries-that-use-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world Module</title>
		<link>http://smartwebsource.wordpress.com/2009/09/18/hello-world-module/</link>
		<comments>http://smartwebsource.wordpress.com/2009/09/18/hello-world-module/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 14:05:03 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Module]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/2009/09/18/hello-world-module/</guid>
		<description><![CDATA[Here at first we write the code. &#60;?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2005 Arifur Rahman * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent file */ defined( &#8216;_JEXEC&#8217; ) or die( &#8216;Restricted Access.&#8217; ); echo JText::_(&#8216;Hello World&#8217;); ?&#62; Then we write the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=29&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here at first we write the code.</p>
<blockquote>
<p>&lt;?php<br />
/**<br />
* @version 1.0 $<br />
* @package HelloWorld<br />
* @copyright (C) 2005 Arifur Rahman<br />
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL<br />
*/</p>
<p>/** ensure this file is being included by a parent file */<br />
defined( &#8216;_JEXEC&#8217; ) or die( &#8216;Restricted Access.&#8217; );</p>
<p>echo JText::_(&#8216;Hello World&#8217;);<br />
?&gt;</p>
<p><span> </span></p></blockquote>
<p>Then we write the xml file</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;install type=&#8221;module&#8221; version=&#8221;1.5.0&#8243;&gt;<br />
&lt;name&gt;Hello World&lt;/name&gt;<br />
&lt;author&gt;Arifur Rahman&lt;/author&gt;<br />
&lt;creationDate&gt;September 2009&lt;/creationDate&gt;<br />
&lt;copyright&gt;(C) 2005 Arifur Rahman&lt;/copyright&gt;<br />
&lt;license&gt;http://www.gnu.org/copyleft/gpl.html GNU/GPL&lt;/license&gt;<br />
&lt;version&gt;1.0&lt;/version&gt;<br />
&lt;description&gt;A module that says hello&lt;/description&gt;<br />
&lt;files&gt;<br />
&lt;filename module=&#8221;mod_helloworld&#8221;&gt;mod_helloworld.php&lt;/filename&gt;<br />
&lt;/files&gt;<br />
&lt;params /&gt;<br />
&lt;/install&gt;</p></blockquote>
<p>After that we install our module and show in the left side. The out put will show like this.<br />
<img class="aligncenter size-full wp-image-31" title="module_helloworld" src="http://smartwebsource.files.wordpress.com/2009/09/module_helloworld.png?w=241&#038;h=83" alt="module_helloworld" width="241" height="83" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=29&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/09/18/hello-world-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/09/module_helloworld.png" medium="image">
			<media:title type="html">module_helloworld</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress Plugine to change &#8220;Test&#8221; word to &#8220;Demo&#8221;</title>
		<link>http://smartwebsource.wordpress.com/2009/08/31/wordpress-plugine-to-change-test-word-to-demo/</link>
		<comments>http://smartwebsource.wordpress.com/2009/08/31/wordpress-plugine-to-change-test-word-to-demo/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 23:28:17 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/?p=24</guid>
		<description><![CDATA[Today i see a vedio from a site and learn how to make a custom plugine of wordpress which replace any word form our content or title. Here is a demo application which change the text &#8220;test&#8221; word to &#8220;Demo&#8221; in our content. Here is the code. &#60;?php /** * @package Test_To_Demo * @author ARIFRU [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=24&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i see a vedio from a site and learn how to make a custom plugine of wordpress which replace any word form our content or title.</p>
<p>Here is a demo application which change the text &#8220;test&#8221; word to &#8220;Demo&#8221; in our content.</p>
<p>Here is the code.</p>
<pre>&lt;?php
/**
* @package Test_To_Demo
* @author ARIFRU RAHMAN
* @version 1.0
*/
/*
Plugin Name: Test To Demo
Plugin URI: http://wordpress.org/#
Description: This plugine change the text test to Demo in the content and also from the title.
Author: ARIFUR RAHMAN
Version: 1.0
Author URI: http://www.samartwebsource.net
*/

function my_funtion($text) {

$text = str_replace("test","Demo",$text);
return     $text ;

}
add_filter('the_content','my_funtion');
add_filter('the_title','my_funtion');

?&gt;</pre>
<p>Before the  function run our out put page is</p>
<p><img class="alignnone size-full wp-image-25" title="wp_plugine_1" src="http://smartwebsource.files.wordpress.com/2009/08/wp_plugine_1.png?w=600&#038;h=465" alt="wp_plugine_1" width="600" height="465" /></p>
<p>After make the plugine the page with out put.</p>
<p><img class="alignnone size-full wp-image-26" title="wp_plugine_2" src="http://smartwebsource.files.wordpress.com/2009/08/wp_plugine_2.png?w=587&#038;h=297" alt="wp_plugine_2" width="587" height="297" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=24&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/08/31/wordpress-plugine-to-change-test-word-to-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/wp_plugine_1.png" medium="image">
			<media:title type="html">wp_plugine_1</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/wp_plugine_2.png" medium="image">
			<media:title type="html">wp_plugine_2</media:title>
		</media:content>
	</item>
		<item>
		<title>First Working mysql Script Using Cake php</title>
		<link>http://smartwebsource.wordpress.com/2009/08/31/first-working-mysql-script-using-cake-php/</link>
		<comments>http://smartwebsource.wordpress.com/2009/08/31/first-working-mysql-script-using-cake-php/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 18:02:18 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[CakePhp]]></category>
		<category><![CDATA[Data Base]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/?p=14</guid>
		<description><![CDATA[At first change the database configuration for your cake php project. That is edit your file cake\app\config\database.php class DATABASE_CONFIG { var $default = array( ’driver’ =&#62; ‘mysql’, ’persistent’ =&#62; false, ’host’ =&#62; ‘localhost’, ’login’ =&#62; ‘root’, ’password’ =&#62; ‘123123123′, ’database’ =&#62; ‘cakephp’, ’prefix’ =&#62; ”, ); var $test = array( ’driver’ =&#62; ‘mysql’, ’persistent’ =&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=14&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At first change the database configuration for your cake php project.<br />
That is edit your file cake\app\config\database.php</p>
<pre>class DATABASE_CONFIG {

var $default = array(

’driver’ =&gt; ‘mysql’,

’persistent’ =&gt; false,

’host’ =&gt; ‘localhost’,

’login’ =&gt; ‘root’,

’password’ =&gt; ‘123123123′,

’database’ =&gt; ‘cakephp’,

’prefix’ =&gt; ”,

);

var $test = array(

’driver’ =&gt; ‘mysql’,

’persistent’ =&gt; false,

’host’ =&gt; ‘localhost’,

’login’ =&gt; ‘user’,

’password’ =&gt; ‘password’,

’database’ =&gt; ‘test_database_name’,

’prefix’ =&gt; ”,

);

}</pre>
<p>N:b: Please change the user name and password and database name according to your server.<br />
<strong>Now start our first script.</strong><br />
At first make a table in the database server</p>
<p><img class="alignnone size-full wp-image-15" title="newtable" src="http://smartwebsource.files.wordpress.com/2009/08/newtable.jpg?w=450&#038;h=143" alt="newtable" width="450" height="143" /></p>
<p>and add field to it</p>
<p><img class="alignnone size-full wp-image-16" title="newtablefields" src="http://smartwebsource.files.wordpress.com/2009/08/newtablefields.jpg?w=450&#038;h=75" alt="newtablefields" width="450" height="75" /><br />
and insert some data to it.<br />
Then make a file in the directory <strong>cake/app/models/product.php</strong> and write this code</p>
<p>&lt;?</p>
<pre>class Product extends AppModel

{

var $name = "Product";

}?&gt;</pre>
<p>Then make a econtrollers file</p>
<p>cake/controllers/products_controller.php</p>
<p>&lt;?</p>
<pre>class ProductsController extends AppController

{

var $name = “Products”;

function index()

{

$Data = $this-&gt;Product-&gt;find(’all’);

$this-&gt;set(’Data’, $Data);

}

}?&gt;</pre>
<p>and finally</p>
<p>cake/app/views/products/index.ctp</p>
<pre>
&lt;pre&gt;

&lt;?php print_r($Data);?&gt;

&lt;/pre&gt;
</pre>
<p>and the ouput should be like this<br />
<img class="alignnone size-full wp-image-17" title="cake_final_page" src="http://smartwebsource.files.wordpress.com/2009/08/cake_final_page.jpg?w=450&#038;h=343" alt="cake_final_page" width="450" height="343" /></p>
<p>Note that the file extension in the views directory should be<strong> .ctp</strong> other wise it will not run.</p>
<p>Thanks</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=14&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/08/31/first-working-mysql-script-using-cake-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/newtable.jpg" medium="image">
			<media:title type="html">newtable</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/newtablefields.jpg" medium="image">
			<media:title type="html">newtablefields</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/cake_final_page.jpg" medium="image">
			<media:title type="html">cake_final_page</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: Hello, CakePHP!</title>
		<link>http://smartwebsource.wordpress.com/2009/08/31/cakephp-hello-cakephp/</link>
		<comments>http://smartwebsource.wordpress.com/2009/08/31/cakephp-hello-cakephp/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 17:19:10 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[CakePhp]]></category>

		<guid isPermaLink="false">http://smartwebsource.wordpress.com/?p=4</guid>
		<description><![CDATA[CakePHP is an MVC framework. Model, view, controller are the main components. Generally speaking, the model is an object and is used to operate database. You should employ it to communicate with database, like inserting, deleting, querying. The view is as its name. It is used to display the result. Usually it contains lots of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=4&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="float:right;margin:4px;">
<p>CakePHP is an MVC framework. Model, view, controller are the main components. Generally speaking, the model is an object and is used to operate database. You should employ it to communicate with database, like inserting, deleting, querying. The view is as its name. It is used to display the result. Usually it contains lots of HTML but few PHP code. The controller is employed to handle HTTP requests and do some logic. The controller is central in an MVC pattern. It calls the model to get data from database, then do some work, and sends the result to a view to display.</p>
<p>Let&#8217;s have a look at CakePHP. I will use CakePHP to write a &#8220;hello world&#8221; program. My CakePHP is located in D:\xampplite\htdocs\cake. In it there are four directories: app, cake, docs, vendors. &#8220;app&#8221; is the working directory where we should save our code. Now let&#8217;s write some codes. <strong>Save this file as testers_controller.php in the folder ex:<br />
D:\xampp\htdocs\cake_1.2.5\app\controllers\testers_controller.php<br />
Note that when we  run this file from browser then we run this file as  http://localhost/cake_1.2.5/testers</strong> this will run normally the index function. IF we want to run the sayhello function then we have to write as <strong>http://localhost/cake_1.2.5/testers/sayHello</strong></p>
<pre>&lt;?php

class TestersController extends Controller{

  var $uses=null;

  var $autoRender=false;

 function index(){

    echo 'Hello, CakePHP! From index.';

  }
  function sayHello(){

    echo 'Hello, CakePHP!';

  }

}

?&gt;</pre>
<p>As you see, the name of the controller class is TestersController. i.e. The controller&#8217;s name is Testers. According to the CakePHP convention,  the controller&#8217;s name should be plural form. You must save it as &#8220;testers_controller&#8221;  in app\controllers so that CakePHP can find the controller class.</p>
<p>Before you run it, please make sure that mod_rewrite is on. Check your Apache http.conf, find the line like &#8220;LoadModule rewrite_module modules/mod_rewrite.so&#8221;.   If it is commented, just uncomment it (remove &#8220;#&#8221;). Now start or restart  (if you modified http.conf) Apache server. Enter http://localhost/cake/testers/sayHello<br />
 in your browser&#8217;s address bar. You can see the result if no problem happens:</p>
<p>N:B: If we do not set the appache in mod_rewrite (i.e uncomment the line  &#8220;#LoadModule rewrite_module modules/mod_rewrite.so&#8221; then u will get error.
<div>
<dl>
<dt><img title="problem" src="http://smartwebsource.files.wordpress.com/2009/08/problem.png?w=300&#038;h=239" alt="Problem in run cake php first time" width="300" height="239" /></dt>
<dd>Problem in run cake php first time</dd>
</dl>
</div>
<p>If you make appache in mod_rewrite then you will run successfully.</p>
<div>
<dl>
<dt><img title="hello_cakephp" src="http://smartwebsource.files.wordpress.com/2009/08/hello_cakephp.png?w=300&#038;h=239" alt="Succesfully run cake php" width="300" height="239" /></dt>
<dd>Succesfully run cake php</dd>
</dl>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=4&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/08/31/cakephp-hello-cakephp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/problem.png?w=300" medium="image">
			<media:title type="html">problem</media:title>
		</media:content>

		<media:content url="http://smartwebsource.files.wordpress.com/2009/08/hello_cakephp.png?w=300" medium="image">
			<media:title type="html">hello_cakephp</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://smartwebsource.wordpress.com/2009/07/15/hello-world/</link>
		<comments>http://smartwebsource.wordpress.com/2009/07/15/hello-world/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 08:30:59 +0000</pubDate>
		<dc:creator>smartwebsource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=1&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartwebsource.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartwebsource.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartwebsource.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartwebsource.wordpress.com&amp;blog=8581528&amp;post=1&amp;subd=smartwebsource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartwebsource.wordpress.com/2009/07/15/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47ceeadfa8c56ed59e0908e5e64e16e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartwebsource</media:title>
		</media:content>
	</item>
	</channel>
</rss>
