<?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/"
	>

<channel>
	<title>freude-code &#187; Codeschnipsel</title>
	<atom:link href="http://www.freude-co.de/tag/codeschnipsel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freude-co.de</link>
	<description>PHP, CakePHP und MySQL</description>
	<lastBuildDate>Tue, 06 Apr 2010 07:52:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>URL splitten</title>
		<link>http://www.freude-co.de/2009/11/02/url-splitten/</link>
		<comments>http://www.freude-co.de/2009/11/02/url-splitten/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:48:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=273</guid>
		<description><![CDATA[function process_url( $url ) { $processed_url = parse_url( $url ); $query_string = $processed_url[ &#039;query&#039; ]; $query_string = explode( &#039;&#38;&#039;, $query_string ); $args = array( ); // return array foreach( $query_string as $chunk ) { $chunk = explode( &#039;=&#039;, $chunk ); if ( count( $chunk ) == 2 ) { list( $key, $val ) = $chunk; [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/11/02/url-splitten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Propelprojekt vorbereiten</title>
		<link>http://www.freude-co.de/2009/10/07/propelprojekt-vorbereiten/</link>
		<comments>http://www.freude-co.de/2009/10/07/propelprojekt-vorbereiten/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 08:15:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pear]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Models]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=257</guid>
		<description><![CDATA[Der propel Generator benötigt eine XML Datei um ein Datenbankschema zu erstellen. Diese heisst sinnigerweise dann auch schema.xml. Der Aufbau ist eigentlich selbsterklärend. Hier habe ich mal ein Beispiel von der propel Seite: &#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34; standalone=&#34;no&#34;?&#62; &#60;database name=&#34;bookstore&#34; defaultIdMethod=&#34;native&#34;&#62; &#60;table name=&#34;book&#34; description=&#34;Book Table&#34;&#62; &#60;column name=&#34;book_id&#34; type=&#34;integer&#34; primaryKey=&#34;true&#34; autoIncrement=&#34;true&#34; required=&#34;true&#34; description=&#34;Book Id&#34;/&#62; &#60;column name=&#34;title&#34; type=&#34;varchar&#34; [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/10/07/propelprojekt-vorbereiten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Propel installieren</title>
		<link>http://www.freude-co.de/2009/10/04/propel-installieren/</link>
		<comments>http://www.freude-co.de/2009/10/04/propel-installieren/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 09:22:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pear]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=249</guid>
		<description><![CDATA[Propel wird verwendet um Objekte mit Daten in einer Datenbank zu speichern. Es ist eine Schicht zwischen dem Datenspeicher und der Programmierlogik. Zunächst muss man Propel über den PEAR Installer installieren. Da Propel eine Abhängigkeit zu anderen PEAR Paketen enthält, muss man als erstes diese installieren. Dies geschieht über die Konsole. Wir fangen mit dem [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/10/04/propel-installieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mit Cake dt. Datum in SQL Format umwandeln</title>
		<link>http://www.freude-co.de/2009/08/22/mit-cake-dt-datum-in-sql-format-umwandeln/</link>
		<comments>http://www.freude-co.de/2009/08/22/mit-cake-dt-datum-in-sql-format-umwandeln/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 12:31:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Datum]]></category>
		<category><![CDATA[Formular]]></category>
		<category><![CDATA[Helper]]></category>
		<category><![CDATA[Models]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=239</guid>
		<description><![CDATA[Die View liefert das Datum im Format &#8216;yy-mm-dd&#8217; aus. Wir brauchen aber &#8216;dd.mm.yy&#8217;. Dies kann man mit einer selbst geschriebenen Helper-Funktion erledigen. &#60;?php class convertdateHelper extends AppHelper { function toDe($dateYMD) { $ar=explode(&#039;-&#039;,$dateYMD); $ret=$this-&#62;output($ar[2].&#039;.&#039;.$ar[1].&#039;.&#039;.$ar[0]); return $ret; } } ?&#62; In der edit View bekommen wir wieder das Format aus der Datenbank und müssen es wieder ins [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/08/22/mit-cake-dt-datum-in-sql-format-umwandeln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>datepicker in cakephp</title>
		<link>http://www.freude-co.de/2009/08/20/datepicker-in-cakephp/</link>
		<comments>http://www.freude-co.de/2009/08/20/datepicker-in-cakephp/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 09:01:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Datum]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=220</guid>
		<description><![CDATA[Die Datumsfelder, die cake produziert, sind mehr als übel. Deswegen war ich auf der Suche nach einer Möglichkeit einen Datepicker in das Formular einzubauen. Zuerst einmal habe ich mir bei jquery UI das Paket runtergeladen. Das css habe ich samt dem Ordner in das webroot/css und die Javascript Dateien in das webroot/js Verzeichnis kopiert. Als [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/08/20/datepicker-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Syntax regulärer Ausdrücke</title>
		<link>http://www.freude-co.de/2009/08/18/syntax-regularer-ausdrucke/</link>
		<comments>http://www.freude-co.de/2009/08/18/syntax-regularer-ausdrucke/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 12:06:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Codeschnipsel]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=232</guid>
		<description><![CDATA[$suchmuster= $zeichenkette= Ausgabe mit preg_match_all( $suchmuster, $zeichenkette, $match): Beschreibung: &#8216;/foo/&#8217; foo Array ( [0] =&#62; Array ( [0] =&#62; foo ) ) die Zeichenkette &#8220;foo&#8221; &#8216;/^foo/&#8217; &#8220;foowAaSD_gci.&#8221; Array ( [0] =&#62; Array ( [0] =&#62; foo ) ) &#8220;foo&#8221; am Anfang der Zeichenkette &#8216;/foo$/&#8217; &#8220;wASD_gi.foo&#8221; Array ( [0] =&#62; Array ( [0] =&#62; foo ) [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/08/18/syntax-regularer-ausdrucke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>select-Formularfeld aus Datenbankwerten mit Cake</title>
		<link>http://www.freude-co.de/2009/08/06/select_mit_datenbankwerten/</link>
		<comments>http://www.freude-co.de/2009/08/06/select_mit_datenbankwerten/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 14:28:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=212</guid>
		<description><![CDATA[Ich möchte mit den Werten einer, über einen Fremdschlüssel verknüpften, Tabelle ein select Feld in einem Formular erzeugen. Das Feld soll aus einer Kombination von id und value bestehen. Das Wertepaar hole ich mir &#252;ber eine mit hasMany verknüpften Tabelle: $values = $this-&#62;Outgoing-&#62; TaxValues-&#62; find(&#34;list&#34;, array( &#039;fields&#039;=&#62;array(&#039;TaxValues.id&#039;, &#039;TaxValues.value&#039;), &#039;order&#039;=&#62;array(&#039;TaxValues.value&#039; = &#62;&#039;ASC&#039;), &#039;recursive&#039; =&#62; -1)); Dort [...]]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/08/06/select_mit_datenbankwerten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Die google Maps API für PHP</title>
		<link>http://www.freude-co.de/2009/06/11/die-google-maps-api-fur-php/</link>
		<comments>http://www.freude-co.de/2009/06/11/die-google-maps-api-fur-php/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 17:44:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=203</guid>
		<description><![CDATA[Wer Google Maps in seine Webseite einbauen will, kann mit Einrico Zimuel&#8217;s einfachem Beispiel sofort loslegen. Hier gibt es mehr zum Thema.]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/06/11/die-google-maps-api-fur-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activerecord mit PHP 5.3</title>
		<link>http://www.freude-co.de/2009/06/01/activerecord-mit-php-53/</link>
		<comments>http://www.freude-co.de/2009/06/01/activerecord-mit-php-53/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 17:23:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Link]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[Helper]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=193</guid>
		<description><![CDATA[Jacques Fuentes erklärt in seinem Blog wie man mit PHP 5.3 die von Ruby on Rails bekannte Methode der ActiveRecords verwenden kann.]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/06/01/activerecord-mit-php-53/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Type Hints für PHP</title>
		<link>http://www.freude-co.de/2009/05/30/type-hints-fuer-php/</link>
		<comments>http://www.freude-co.de/2009/05/30/type-hints-fuer-php/#comments</comments>
		<pubDate>Sat, 30 May 2009 17:13:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Helper]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.freude-co.de/?p=190</guid>
		<description><![CDATA[Type Hints für boolean, float, integer, resourcen, string]]></description>
		<wfw:commentRss>http://www.freude-co.de/2009/05/30/type-hints-fuer-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
