<?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: MODx Evolution: Creating a Simple Custom Snippet Part 2 – Create the Snippet</title>
	<atom:link href="http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/</link>
	<description>Programming blog - Discussions, Tutorials, Resources</description>
	<lastBuildDate>Wed, 08 Feb 2012 00:37:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Abner</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-10611</link>
		<dc:creator>Abner</dc:creator>
		<pubDate>Fri, 04 Feb 2011 01:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-10611</guid>
		<description>Thanks for the tut Mary!
Thanks to your firsts tuts about modx I plucked up the courage to start diving in this fabulous cms. I know the basics of PHP programming (barely should I say) and decided to make my own snippets.
So, one of the first places where I sought information, has been in you blog.
I told you I wasn&#039;t any near to a PHP Guru. I didn&#039;t even know how to handle objects in php and all that stuff...
I learned about definig a class which contains the methods, etc, and put this class in a file which I include in my snippet 
Then my snippet just handles the parameters and executes any needed function which resides in an external file which is called using include_once and didn&#039;t need the condition to check if function exist...
just another way........
kind regards
abner
Magic Creations
</description>
		<content:encoded><![CDATA[<p>Thanks for the tut Mary!<br />
Thanks to your firsts tuts about modx I plucked up the courage to start diving in this fabulous cms. I know the basics of PHP programming (barely should I say) and decided to make my own snippets.<br />
So, one of the first places where I sought information, has been in you blog.<br />
I told you I wasn&#8217;t any near to a PHP Guru. I didn&#8217;t even know how to handle objects in php and all that stuff&#8230;<br />
I learned about definig a class which contains the methods, etc, and put this class in a file which I include in my snippet<br />
Then my snippet just handles the parameters and executes any needed function which resides in an external file which is called using include_once and didn&#8217;t need the condition to check if function exist&#8230;<br />
just another way&#8230;&#8230;..<br />
kind regards<br />
abner<br />
Magic Creations</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abner</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-10610</link>
		<dc:creator>Abner</dc:creator>
		<pubDate>Fri, 04 Feb 2011 00:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-10610</guid>
		<description>Hi Arthur,Iguess you already solved this or found a workaround.
I guess it&#039;s a typo as the parser finds an error in 
  Error: file_get_contents(http://codingpad.maryspad.com/feed/&lt;code clas) 
and the line should be:
file_get_contents(&#039;http://codingpad.maryspad.com/feed/&#039;) 
cheers Abner</description>
		<content:encoded><![CDATA[<p>Hi Arthur,Iguess you already solved this or found a workaround.<br />
I guess it&#8217;s a typo as the parser finds an error in<br />
  Error: file_get_contents(http://codingpad.maryspad.com/feed/&lt;code clas)<br />
and the line should be:<br />
file_get_contents(&#8216;<a href="http://codingpad.maryspad.com/feed/" rel="nofollow">http://codingpad.maryspad.com/feed/</a>&#8216;)<br />
cheers Abner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Brown</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-10275</link>
		<dc:creator>Arthur Brown</dc:creator>
		<pubDate>Tue, 07 Dec 2010 17:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-10275</guid>
		<description>Parse error: syntax error, unexpected $end in /home/content/65/5228165/html/manager/includes/document.parser.class.inc.php(770) : eval()&#039;d code on line 25

or if I add the php code to the snippet near the end of this page I get the following error. 

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: 	file_get_contents(&lt;/code&gt;http://codingpad.maryspad.com/feed/&lt;code clas) [function.file-get-contents]: failed to open stream: No such file or directory	 
  Error type/ Nr.: 	Warning - 2	 
  File: 	/home/content/65/5228165/html/manager/includes/document.parser.class.inc.php(770) : eval()&#039;d code	 
  Line: 	11	 
 
Parser timing
  MySQL: 	0.0146 s	(4 Requests)
  PHP: 	0.1910 s	 
  Total: 	0.2056 s

Please help.</description>
		<content:encoded><![CDATA[<p>Parse error: syntax error, unexpected $end in /home/content/65/5228165/html/manager/includes/document.parser.class.inc.php(770) : eval()&#8217;d code on line 25</p>
<p>or if I add the php code to the snippet near the end of this page I get the following error. </p>
<p>« MODx Parse Error »<br />
MODx encountered the following error while attempting to parse the requested resource:<br />
« PHP Parse Error »</p>
<p>PHP error debug<br />
  Error: 	file_get_contents(<a href="http://codingpad.maryspad.com/feed/&lt;code" rel="nofollow">http://codingpad.maryspad.com/feed/&lt;code</a> clas) [function.file-get-contents]: failed to open stream: No such file or directory<br />
  Error type/ Nr.: 	Warning - 2<br />
  File: 	/home/content/65/5228165/html/manager/includes/document.parser.class.inc.php(770) : eval()&#039;d code<br />
  Line: 	11	 </p>
<p>Parser timing<br />
  MySQL: 	0.0146 s	(4 Requests)<br />
  PHP: 	0.1910 s<br />
  Total: 	0.2056 s</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-9382</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 20 May 2010 12:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-9382</guid>
		<description>Ah ok, just wanted to check in case I was doing something wrong :) Excellent site by the way.</description>
		<content:encoded><![CDATA[<p>Ah ok, just wanted to check in case I was doing something wrong <img src='http://codingpad.maryspad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Excellent site by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-9381</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Thu, 20 May 2010 12:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-9381</guid>
		<description>Jon
Thanks for the feedback. No particular reason really, just personal coding style preference I guess.   Your way would work just as well :)  

mary</description>
		<content:encoded><![CDATA[<p>Jon<br />
Thanks for the feedback. No particular reason really, just personal coding style preference I guess.   Your way would work just as well <img src='http://codingpad.maryspad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   </p>
<p>mary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-9378</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 20 May 2010 11:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-9378</guid>
		<description>Excellent tutorial but just wondering why you didn&#039;t set the default value for limit in the function like: 

function fetchFeed($feed_url, $limit = 10)</description>
		<content:encoded><![CDATA[<p>Excellent tutorial but just wondering why you didn&#8217;t set the default value for limit in the function like: </p>
<p>function fetchFeed($feed_url, $limit = 10)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-8938</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-8938</guid>
		<description>Thanks for the corrections. I hope the tutorial makes sense nonetheless ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the corrections. I hope the tutorial makes sense nonetheless <img src='http://codingpad.maryspad.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy Daniels</title>
		<link>http://codingpad.maryspad.com/2010/01/14/modx-custom-snippet-create/comment-page-1/#comment-8937</link>
		<dc:creator>Timothy Daniels</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://codingpad.maryspad.com/?p=1218#comment-8937</guid>
		<description>&quot;Caesar&quot; is misspelled.  Check your English punctuation, too, especially the use of commas and periods.</description>
		<content:encoded><![CDATA[<p>&#8220;Caesar&#8221; is misspelled.  Check your English punctuation, too, especially the use of commas and periods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

