<?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: Write your own PHP MVC Framework (Part 2)</title>
	<atom:link href="http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/</link>
	<description>on web development</description>
	<pubDate>Sat, 04 Feb 2012 06:43:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: subhash</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-11392</link>
		<dc:creator>subhash</dc:creator>
		<pubDate>Thu, 24 Mar 2011 02:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-11392</guid>
		<description>how to use ajax in own php framework?</description>
		<content:encoded><![CDATA[<p>how to use ajax in own php framework?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vsree</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-11029</link>
		<dc:creator>vsree</dc:creator>
		<pubDate>Tue, 15 Mar 2011 05:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-11029</guid>
		<description>How can i use Ajax functions in this Frame work. Actually i need  to load some tables and text boxes dynamically in my Application with using the Ajax and Jquery. Can you give me one example  please.

Thanks in Advance.</description>
		<content:encoded><![CDATA[<p>How can i use Ajax functions in this Frame work. Actually i need  to load some tables and text boxes dynamically in my Application with using the Ajax and Jquery. Can you give me one example  please.</p>
<p>Thanks in Advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikmauro</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-10634</link>
		<dc:creator>nikmauro</dc:creator>
		<pubDate>Sat, 05 Mar 2011 16:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-10634</guid>
		<description>it possible to use "themes" with [header, footer, css and images]?

pink/red/black/ etc

the page product return 'black theme'
the page category return 'pink them'</description>
		<content:encoded><![CDATA[<p>it possible to use &#8220;themes&#8221; with [header, footer, css and images]?</p>
<p>pink/red/black/ etc</p>
<p>the page product return &#8216;black theme&#8217;<br />
the page category return &#8216;pink them&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rakesh Saini</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-10458</link>
		<dc:creator>Rakesh Saini</dc:creator>
		<pubDate>Mon, 28 Feb 2011 12:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-10458</guid>
		<description>Dear Mr. Anant ,

i want to learn advance php classes 

do u provide me for the same ?</description>
		<content:encoded><![CDATA[<p>Dear Mr. Anant ,</p>
<p>i want to learn advance php classes </p>
<p>do u provide me for the same ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Jordan</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-10028</link>
		<dc:creator>Luke Jordan</dc:creator>
		<pubDate>Fri, 18 Feb 2011 01:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-10028</guid>
		<description>Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 298

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 302

Warning: mysql_num_fields() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 127

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 132

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 246

My E-Commerce Website

i unziped the file and filled in my database with relevant sql that you provided but get these errors... 

Notice: Undefined index: Product in C:\wamp\www\framework\application\views\products\view.php on line 1

Price: $
Notice: Undefined index: Product in C:\wamp\www\framework\application\views\products\view.php on line 4</description>
		<content:encoded><![CDATA[<p>Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 298</p>
<p>Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 302</p>
<p>Warning: mysql_num_fields() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 127</p>
<p>Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 132</p>
<p>Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\framework\library\sqlquery.class.php on line 246</p>
<p>My E-Commerce Website</p>
<p>i unziped the file and filled in my database with relevant sql that you provided but get these errors&#8230; </p>
<p>Notice: Undefined index: Product in C:\wamp\www\framework\application\views\products\view.php on line 1</p>
<p>Price: $<br />
Notice: Undefined index: Product in C:\wamp\www\framework\application\views\products\view.php on line 4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Jordan</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-9996</link>
		<dc:creator>Luke Jordan</dc:creator>
		<pubDate>Thu, 17 Feb 2011 12:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-9996</guid>
		<description>Hi this is a quote from you in an above reply.... 

Once you call the function $action of class $dispatch, we send each element of the $querystring array as parameters to the function. 

I really don't understand where the function $action is? i am new to this please could you help me to understand these lines....

$dispatch = new $controllerName($controller,$action);
	
	if ((int)method_exists($controllerName, $action)) {
		call_user_func_array(array($dispatch,"beforeAction"),$queryString);
		call_user_func_array(array($dispatch,$action),$queryString);
		call_user_func_array(array($dispatch,"afterAction"),$queryString);

and where do u get the "beforeAction" and "afterAction" from. And when i looked call_user_func_array() up it said...  call_user_func_array(array($class, "$function/$method"), array("param1", "param2")); why does it not say array($queryString) ..... is it because $queryString is an array already? Why is it called call_user_func_array when a function inside a class is a method? 

Please HELP ME ;)</description>
		<content:encoded><![CDATA[<p>Hi this is a quote from you in an above reply&#8230;. </p>
<p>Once you call the function $action of class $dispatch, we send each element of the $querystring array as parameters to the function. </p>
<p>I really don&#8217;t understand where the function $action is? i am new to this please could you help me to understand these lines&#8230;.</p>
<p>$dispatch = new $controllerName($controller,$action);</p>
<p>	if ((int)method_exists($controllerName, $action)) {<br />
		call_user_func_array(array($dispatch,&#8221;beforeAction&#8221;),$queryString);<br />
		call_user_func_array(array($dispatch,$action),$queryString);<br />
		call_user_func_array(array($dispatch,&#8221;afterAction&#8221;),$queryString);</p>
<p>and where do u get the &#8220;beforeAction&#8221; and &#8220;afterAction&#8221; from. And when i looked call_user_func_array() up it said&#8230;  call_user_func_array(array($class, &#8220;$function/$method&#8221;), array(&#8221;param1&#8243;, &#8220;param2&#8243;)); why does it not say array($queryString) &#8230;.. is it because $queryString is an array already? Why is it called call_user_func_array when a function inside a class is a method? </p>
<p>Please HELP ME <img src='http://anantgarg.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Mayer</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-9843</link>
		<dc:creator>John Mayer</dc:creator>
		<pubDate>Fri, 11 Feb 2011 07:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-9843</guid>
		<description>I want to use jquery ajax functions can you please give me an example how would I achieve this?</description>
		<content:encoded><![CDATA[<p>I want to use jquery ajax functions can you please give me an example how would I achieve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mel</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-9836</link>
		<dc:creator>Mel</dc:creator>
		<pubDate>Fri, 11 Feb 2011 00:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-9836</guid>
		<description>Thanks for this tutorial.

Can you please teach us how to update the database from a form please?</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial.</p>
<p>Can you please teach us how to update the database from a form please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-9745</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Sun, 06 Feb 2011 20:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-9745</guid>
		<description>if you get this error: Notice: Undefined index: url in D:\wamp\www\todo-2\public\index.php on line 6

replace line 6 with this: 

if(isset($_GET['url']))
	$url = $_GET['url'];

Cheers.</description>
		<content:encoded><![CDATA[<p>if you get this error: Notice: Undefined index: url in D:\wamp\www\todo-2\public\index.php on line 6</p>
<p>replace line 6 with this: </p>
<p>if(isset($_GET['url']))<br />
	$url = $_GET['url'];</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waseem</title>
		<link>http://anantgarg.com/2009/03/30/write-your-own-php-mvc-framework-part-2/comment-page-2/#comment-9571</link>
		<dc:creator>waseem</dc:creator>
		<pubDate>Mon, 31 Jan 2011 13:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://anantgarg.com/?p=200#comment-9571</guid>
		<description>Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /var/www/html/Projects/waseem/admin_console/framework-2/framework/library/shared.php on line 145

Parse error: syntax error, unexpected '"' in /var/www/html/Projects/waseem/admin_console/framework-2/framework/library/inflection.class.php on line 11

I got the above error when tried ur framework</description>
		<content:encoded><![CDATA[<p>Warning: ob_start() [ref.outcontrol]: output handler &#8216;ob_gzhandler&#8217; conflicts with &#8216;zlib output compression&#8217; in /var/www/html/Projects/waseem/admin_console/framework-2/framework/library/shared.php on line 145</p>
<p>Parse error: syntax error, unexpected &#8216;&#8221;&#8216; in /var/www/html/Projects/waseem/admin_console/framework-2/framework/library/inflection.class.php on line 11</p>
<p>I got the above error when tried ur framework</p>
]]></content:encoded>
	</item>
</channel>
</rss>

