<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Aaron Thies</title>
	
	<link>http://aaronthies.com/wp</link>
	<description>Front-End Engineer</description>
	<pubDate>Fri, 05 Sep 2008 19:42:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/athies" type="application/rss+xml" /><item>
		<title>Auth… Finally!</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/358114491/</link>
		<comments>http://aaronthies.com/wp/2008/08/06/auth-finally/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 06:11:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[auth model]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/?p=36</guid>
		<description><![CDATA[Finally, after several attempts, I have Auth working.  Now I&#8217;ll attempt to explain in a simple manner, like most of the sources I found.  I will also attempt to include all caveats, unlike any of the sources I found.
app/config/core.php
Place a salt value in Security.salt.  I suggest using the sha1 value on my password generator page.
You [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, after several attempts, I have Auth working.  Now I&#8217;ll attempt to explain in a simple manner, like most of the sources I found.  I will also attempt to include all caveats, unlike any of the sources I found.</p>
<p><strong>app/config/core.php</strong></p>
<p>Place a salt value in Security.salt.  I suggest using the sha1 value on my <a href="http://aaronthies.com/sandbox/pwd/index.php" >password generator page</a>.</p>
<p>You may want to increase Session.timeout beyond the default 2 minutes.</p>
<p><strong>app/controller/users_controller.php</strong></p>
<pre>uses('sanitize');
class UsersController extends AppController {

    public $name = 'Users';
    public $components = array('Auth');

    function beforeFilter() {
        Security::setHash('sha1');
    }

    // The AuthComponent provides the needed functionality or login, so you can leave this function blank.
    function login() {
    }

    function logout() {
        $this-&gt;redirect($this-&gt;Auth-&gt;logout());
    }

}</pre>
<p>Make sure you add Auth to the components array of any controller you plan to have any authentication on:</p>
<pre>public $components = array('Auth');</pre>
<p>Also you can specify which controller methods do not need authentication like this:</p>
<pre>function beforeFilter() {
    $this-&gt;Auth-&gt;allow('index', 'results', 'animal', 'spotlight', 'breed');
}</pre>
<p><strong>app/model/</strong></p>
<p>No model file is needed, but you need to create a database table with id, username, and password fields.  Any other fields will be paced in the Auth object (inside session), like this:</p>
<pre>[Auth] =&gt; Array
        (
            [User] =&gt; Array
                (
                    [id] =&gt; 53
                    [first_name] =&gt; Aaron
                    [last_name] =&gt; Thies
                    [email] =&gt; athies@gmail.com
                    [username] =&gt; athies
                )

        )</pre>
<p>You can find out what to set the password value in the users db table by using $this-&gt;Auth-&gt;password(&#8217;password&#8217;).  This caused me a lot of aggravation as I was just using SHA1(&#8217;password&#8217;).</p>
<p>You can tweak Auth using the various Auth methods outlined here: <a href="http://book.cakephp.org/view/172/authentication" onclick="javascript:pageTracker._trackPageview('/outbound/article/book.cakephp.org');">http://book.cakephp.org/view/172/authentication</a>. These methods can be placed inside controller::beforeFilter().</p>
<p><strong>app/views/users/login.ctp</strong></p>
<pre>if  ($session-&gt;check('Message.auth')) $session-&gt;flash('auth');

if ($session-&gt;check('Message.flash')) {
    $session-&gt;flash();
}

if ($session-&gt;check('Message.auth')) {
    $session-&gt;flash('auth');
}

echo $form-&gt;create('User', array('action' =&gt; 'login'));
echo $form-&gt;input('username');
echo $form-&gt;input('password');
echo $form-&gt;end('Login');</pre>
<p><strong>A Little Something More</strong></p>
<p>During the course of getting Auth to work I learned this helpful hint.</p>
<p>If you ever produced this error, &#8220;Database table users for model User was not found.&#8221;, you can fix this by deleting everything in this folder: /app/tmp/cache/models</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;title=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;title=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;t=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;title=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;h=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;title=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=Auth...%20Finally%21&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;title=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F08%2F06%2Fauth-finally%2F&amp;=Auth...%20Finally%21" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/358114491" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/08/06/auth-finally/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/08/06/auth-finally/</feedburner:origLink></item>
		<item>
		<title>YUI AutoComplete with CakePHP</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/349706709/</link>
		<comments>http://aaronthies.com/wp/2008/07/29/yui-autocomplete-with-cakephp/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 18:59:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[YUI]]></category>

		<category><![CDATA[documentation]]></category>

		<category><![CDATA[autocomplete]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/?p=22</guid>
		<description><![CDATA[YUI Autocomplete
Usually I find the YUI components fairly easy to understand and implement.  Not so with Autocomplete.  After a lot of aggrivation I have it implemented.  Hopefully my work here will save you the same time and hassel I experienced. The resource best resource I found was James Gardner&#8217;s YUI Autocomplete AJAX [...]]]></description>
			<content:encoded><![CDATA[<h3>YUI Autocomplete</h3>
<p>Usually I find the YUI components fairly easy to understand and implement.  Not so with Autocomplete.  After a lot of aggrivation I have it implemented.  Hopefully my work here will save you the same time and hassel I experienced. The resource best resource I found was <a href="http://jimmyg.org/2007/10/19/yui-autocomplete-ajax-select-drowdown-with-id/" onclick="javascript:pageTracker._trackPageview('/outbound/article/jimmyg.org');">James Gardner&#8217;s YUI Autocomplete AJAX Select Dropdown with ID</a> post.</p>
<h4>VIEW:</h4>
<pre>
link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.5.2/build/autocomplete/assets/skins/sam/autocomplete.css"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/get/get-min.js"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/connection/connection-min.js"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/animation/animation-min.js"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/json/json-min.js"
script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/autocomplete/autocomplete-min.js"
</pre>
<pre>
    label for="breed">Breed
        input id="breed_id" type="hidden" name="breed_id" />
        input id="breed" type="text" name="item" maxlength="50"/>
        div id="breedContainer">

    script type="text/javascript">
        var mySchema = ["ResultSet.Result","Name","ID"];
        var myDataSource = new YAHOO.widget.DS_XHR("/find_a_pet/breed", mySchema);
        myDataSource.responseType = YAHOO.widget.DS_XHR.TYPE_JSON;
        var myAutoComp = new YAHOO.widget.AutoComplete("breed", "breedContainer", myDataSource);

        // populate hidden field (id)
        function fnCallback(e, args) {
            YAHOO.util.Dom.get("breed_id").value = args[2][1];
         }
        myAutoComp.itemSelectEvent.subscribe(fnCallback);

        //myAutoComp.forceSelection = true;
        //myAutoComp.useIFrame = true;
</pre>
<h4>CONTROLLER:</h4>
<pre>
// directly execute... /find_a_pet/breed?query=labr
function breed() {
        $this->layout = null;

        $query = (ctype_print($_GET['query'])) ? $query = $_GET['query'] : $query = '';

        //if (!empty($query)) {
                $this->set('breed', $this->FindAPet->getBreed($query));
        //}
}
</pre>
<h4>MODEL:</h4>
<pre>
public function getBreed($query) {

    $sql = "SELECT id, name FROM breed WHERE name LIKE '" . Sanitize::escape($query) . "%' ORDER BY name";
    $model = $this->query($sql);

    $totalResultsReturned = $this->getAffectedRows(); // do this immediately after the query

    $sql = "SELECT COUNT(*) AS count FROM breed";
    $result = $this->query($sql);
    $totalResultsAvailable = $result[0][0]['count'];

    $json = '';

    $breed = array();
    foreach ($model as $entry) {
        $breed['Name'] = $entry['breed']['name'];
        $breed['ID'] = $entry['breed']['id'];
        $json .= json_encode($breed) . ",";
    }
    $json = substr($json, 0, strlen($json)-1);

    $json = '{"ResultSet": {"totalResultsAvailable":"' . $totalResultsAvailable . '","totalResultsReturned":' . $totalResultsReturned . ',"firstResultPosition":1,"Result": [' . $json . ']}}';

    return $json;
}
</pre>
<h3>Missing data in beforeValidate()</h3>
<p>If you are submitting a form and the data is not visible in model::beforevalidate(), then you can solve this by adding $this->Model->data = $this->data in the controller before validates().  Once you do this you can use $this->data in beforevalidate().</p>
<pre>
function admin_add() {

       if (!empty($this->data)) {

               $this->FindAPet->data = $this->data;

               if ($this->FindAPet->validates()) {
                       $this->FindAPet->save();
</pre>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;title=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;title=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;t=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;title=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;h=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;title=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=YUI%20AutoComplete%20with%20CakePHP&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;title=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F29%2Fyui-autocomplete-with-cakephp%2F&amp;=YUI%20AutoComplete%20with%20CakePHP" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/349706709" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/07/29/yui-autocomplete-with-cakephp/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/07/29/yui-autocomplete-with-cakephp/</feedburner:origLink></item>
		<item>
		<title>Remove Pages from Static Pages</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/347985761/</link>
		<comments>http://aaronthies.com/wp/2008/07/27/remove-pages-from-static-pages/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 03:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[routing]]></category>

		<category><![CDATA[static pages]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/?p=24</guid>
		<description><![CDATA[I can&#8217;t take credit for this tip, but it works great.
Routing for Static Pages



Share and Enjoy:


	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t take credit for this tip, but it works great.</p>
<p><a href="http://richardathome.wordpress.com/2007/08/13/cakephp-tip-routing-for-static-pages/" onclick="javascript:pageTracker._trackPageview('/outbound/article/richardathome.wordpress.com');">Routing for Static Pages</a></p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;title=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;title=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;t=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;title=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;h=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;title=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=Remove%20Pages%20from%20Static%20Pages&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;title=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F07%2F27%2Fremove-pages-from-static-pages%2F&amp;=Remove%20Pages%20from%20Static%20Pages" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/347985761" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/07/27/remove-pages-from-static-pages/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/07/27/remove-pages-from-static-pages/</feedburner:origLink></item>
		<item>
		<title>Indoor Skydiving</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808952/</link>
		<comments>http://aaronthies.com/wp/2008/06/22/indoor-skydiving/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 16:01:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[dugs]]></category>

		<category><![CDATA[iflysfbay]]></category>

		<category><![CDATA[in and out burger]]></category>

		<category><![CDATA[indoor skydiving]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/?p=20</guid>
		<description><![CDATA[I travelled to Union City a last weekend to experience iFlySFBay.com.  It was extremely cool.  I have gone skydiving twice, and not the tandem, if AFF (Accelerated Free Fall).  Skydiving is better, but indoor skydiving is a very close sensation to free fall.  Next time I will close my eyes.  [...]]]></description>
			<content:encoded><![CDATA[<p>I travelled to Union City a last weekend to experience <a title="iFlySFBay.com" href="http://www.iflysfbay.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.iflysfbay.com');" target="_blank">iFlySFBay.com</a>.  It was extremely cool.  I have gone skydiving twice, and not the tandem, if AFF (Accelerated Free Fall).  Skydiving is better, but indoor skydiving is a very close sensation to free fall.  Next time I will close my eyes.  The big issue with the sensations being different is visual.  I can see the ground and a people around looking through the clear tube.  I do not see the Earth rushing up at me, and I do not have the 15 minute flight before hand t build up anxiety, nor do I have to jump out of a perfectly good airplane.  That said, I highly recommend indoor skydiving.  If I lived closer I would definitely take the classed so I could advance in free-fall skydiving skill.</p>
<p>I payed extra to get a DVD of my flight.  There are two rounds of flying, and then I kept in the instructor demo at the end.  While waiting for the DVDs for our &#8220;flight class&#8221; to burn we sat outside a crowded In and Out Burger eating our fries (only good if you eat them soon after purchase) and the grilled cheese (a cheeseburger without the meat - it is not on the menu, but all stores know what if is if you ask).  We witnessed and honest to goodness drug deal go down - do drug dealers read blogs?  An expensive car, far too nice for the two punk teenagers driving, pulled up to the curb.  The table next to us had three guys handing out.  The table asked &#8220;are you parking?&#8221; &#8220;Yeah&#8221;, then someone from the table did the stereotypical lead on the car door and I saw his cupped hand slip over the car door, and draw back slyly.  I spotted an extremely white something in his hand before it disappeared into the car.  The passenger kid leaned forward for a minute before his head appeared again and settled into an extreme recline before they drove off.</p>
<p>After the rush of indoor skydiving, the drug deal was altogether humorous, sad, and surreal.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/733ewcsNO7w&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/733ewcsNO7w&amp;hl=en"></embed></object></p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;title=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;title=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;t=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;title=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;h=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;title=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=Indoor%20Skydiving&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;title=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F06%2F22%2Findoor-skydiving%2F&amp;=Indoor%20Skydiving" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808952" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/06/22/indoor-skydiving/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/06/22/indoor-skydiving/</feedburner:origLink></item>
		<item>
		<title>How My iPhone Saved My Weekend</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808953/</link>
		<comments>http://aaronthies.com/wp/2008/05/27/how-my-iphone-saved-my-weekend/#comments</comments>
		<pubDate>Tue, 27 May 2008 22:28:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/?p=19</guid>
		<description><![CDATA[Friday afternoon my wife and I took our car in to check out an strange noise from the the front passenger side.  They told us it was bad.  The brake caliper had broken, unusual, but since our car is from out of state (Buffalo, NY) we had a lot of corrosion due to the salt [...]]]></description>
			<content:encoded><![CDATA[<p>Friday afternoon my wife and I took our car in to check out an strange noise from the the front passenger side.  They told us it was bad.  The brake caliper had broken, unusual, but since our car is from out of state (Buffalo, NY) we had a lot of corrosion due to the salt the East Coasters lay down to melt the ice.  The problem with corrosion is adjacent parts meld together, so removing one part and force you to remove another, and another.  We left with low spirits.  Using our iPhone we found a Nissan dealer down the road.  After a call, they were closing (it was 4:45pm), but gave us the name of another place nearby.  Again to the iPhone to find this place.  They were closing, but could look at it at 8am Saturday.  We continued driving another mile to reach this place and leave the car.  That squared away, we again used the iPhone to find a car rental place.  Bingo, a mile down the road was a Hertz.  Humourously enough while walking to Hertz we passed an Enterprise office, which is more expensive, and we would have stopped at if he had not known about the Hertz.  The Hertz line was surprisingly long for a Friday at 5:45, but they had a vehicle for us.  It cost us an hour, but our weekend was salvage in large part to the iPhone.  BTW, our car was fixed by 2pm Saturday</p>
<p>A small additional thought.  I was recently at the DMV to obtain a CA driver&#8217;s license and register my car in CA.  I have hear several proposals for why you do not need a car for the benefit of the environment.  How about getting rid of your car for your own sanity; no longer having to deal with the DMV?</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;title=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;title=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;t=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;title=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;h=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;title=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=How%20My%20iPhone%20Saved%20My%20Weekend&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;title=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F05%2F27%2Fhow-my-iphone-saved-my-weekend%2F&amp;=How%20My%20iPhone%20Saved%20My%20Weekend" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808953" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/05/27/how-my-iphone-saved-my-weekend/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/05/27/how-my-iphone-saved-my-weekend/</feedburner:origLink></item>
		<item>
		<title>The Cookbook Needs Your Help</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808954/</link>
		<comments>http://aaronthies.com/wp/2008/02/12/the-cookbook-needs-your-help/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 18:54:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[documentation]]></category>

		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/2008/02/12/the-cookbook-needs-your-help/</guid>
		<description><![CDATA[CakePHP&#8217;s biggest problem has always been documentation.  There is finally a (beta) solution for this.  The Cookbook.  Some of the CakePHP 1.2 Manual is in here, but not all, and a LOT of help is needed to expand The Cookbook. It is wiki-like in that anyone can contribute, but the edits will [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP&#8217;s biggest problem has always been documentation.  There is finally a (beta) solution for this.  <a href="http://book.cakephp.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/book.cakephp.org');">The Cookbook</a>.  Some of the <a href="http://tempdocs.cakephp.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/tempdocs.cakephp.org');">CakePHP 1.2 Manual</a> is in here, but not all, and a LOT of help is needed to expand The Cookbook. It is wiki-like in that anyone can contribute, but the edits will be approved (at least for now).  PLEASE go here and contribute what you can.  I plan to submit the articles I have written here over the next week.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;title=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;title=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;t=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;title=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;h=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;title=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=The%20Cookbook%20Needs%20Your%20Help&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;title=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F12%2Fthe-cookbook-needs-your-help%2F&amp;=The%20Cookbook%20Needs%20Your%20Help" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808954" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/02/12/the-cookbook-needs-your-help/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/02/12/the-cookbook-needs-your-help/</feedburner:origLink></item>
		<item>
		<title>Simple Form to Email</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808955/</link>
		<comments>http://aaronthies.com/wp/2008/02/06/simple-form-to-email/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:38:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[form]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[mvc]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/2008/02/06/simple-form-to-email/</guid>
		<description><![CDATA[I have constructed a simple contact (to email) form in CakePHP 1.2 Beta.  Rather than try to explain it all I have included the code for the model, controller, and view here.  One note is I had to add a minLength validation check to the textarea as fields defined as &#8216;text&#8217; in the [...]]]></description>
			<content:encoded><![CDATA[<p>I have constructed a simple contact (to email) form in CakePHP 1.2 Beta.  Rather than try to explain it all I have included the code for the model, controller, and view here.  One note is I had to add a minLength validation check to the textarea as fields defined as &#8216;text&#8217; in the model schema do not echo errors by default, as string fields do.</p>
<ul>
<li><a href="http://aaronthies.com/wp/wp-content/uploads/2008/02/contact.php"  title="Contact Model">Contact Model</a></li>
<li><a href="http://aaronthies.com/wp/wp-content/uploads/2008/02/index.ctp"  title="Contact View">Contact View</a></li>
<li><a href="http://aaronthies.com/wp/wp-content/uploads/2008/02/contact_controller.php"  title="Contact Controller">Contact Controller</a></li>
</ul>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;title=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;title=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;t=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;title=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;h=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;title=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=Simple%20Form%20to%20Email&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;title=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F06%2Fsimple-form-to-email%2F&amp;=Simple%20Form%20to%20Email" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808955" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/02/06/simple-form-to-email/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/02/06/simple-form-to-email/</feedburner:origLink></item>
		<item>
		<title>CakePHP 1.2 Flash Usage</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808956/</link>
		<comments>http://aaronthies.com/wp/2008/02/01/cakephp-12-flash-usage/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 18:31:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[mvc]]></category>

		<category><![CDATA[session]]></category>

		<category><![CDATA[setflash]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/2008/02/01/cakephp-12-flash-usage/</guid>
		<description><![CDATA[Another short article today on something that took me some digging (but not as much as usual!) to learn.  You see mention of setFlash() all the time when
looking for CakePHP info.  Until now I never knew how to implement the view side of this properly.  He is the simple example (the kind [...]]]></description>
			<content:encoded><![CDATA[<p>Another short article today on something that took me some digging (but not as much as usual!) to learn.  You see mention of setFlash() all the time when<br />
looking for CakePHP info.  Until now I never knew how to implement the view side of this properly.  He is the simple example (the kind I like the best) for using flash.</p>
<p>controller:</p>
<pre>$this-&gt;Session-&gt;setFlash('your email is coming');</pre>
<p>view:</p>
<pre>if ($session-&gt;check('Message.flash')) {
  $session-&gt;flash();
}</pre>
<p>Note: You do not have to include Session in your component list in your controller for this to work.  Also, you may want to place the $session-&gt;flash() code in your layout instead of in various views.</p>
<p>Happy Cake&#8217;n</p>
<p><strong>UPDATE</strong></p>
<p>It was not clear to me how to use the flash method, but here it is:</p>
<p>$this-&gt;flash(&#8217;The animal has been modified.&#8217;, &#8216;/find_a_pet/search&#8217;, 3);</p>
<p>The first parameter is the message.</p>
<p>The second parameter is the url to redirect the user.</p>
<p>The third paramete is the number of seconds before redirecting.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;title=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;title=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;t=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;title=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;h=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;title=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=CakePHP%201.2%20Flash%20Usage&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;title=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F02%2F01%2Fcakephp-12-flash-usage%2F&amp;=CakePHP%201.2%20Flash%20Usage" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808956" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/02/01/cakephp-12-flash-usage/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/02/01/cakephp-12-flash-usage/</feedburner:origLink></item>
		<item>
		<title>CakePHP Schema and Tableless Models</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808957/</link>
		<comments>http://aaronthies.com/wp/2008/01/31/cakephp-schema-and-tableless-models/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 18:35:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[model]]></category>

		<category><![CDATA[mvc]]></category>

		<category><![CDATA[tableless]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/2008/01/31/cakephp-schema-and-tableless-models/</guid>
		<description><![CDATA[I have upgraded to the recent CakePHP 1.2 Beta release, and using a model without a real database table has changed.  You need to defined the schema in the model.  Schemas exist for models with tables also, so you can this in your model (with a table) to see an example.

pr($this-&#62;Model-&#62;schema());
exit();
Now, in your [...]]]></description>
			<content:encoded><![CDATA[<p>I have upgraded to the recent CakePHP 1.2 Beta release, and using a model without a real database table has changed.  You need to defined the schema in the model.  Schemas exist for models with tables also, so you can this in your model (with a table) to see an example.</p>
<pre>
pr($this-&gt;Model-&gt;schema());
exit();</pre>
<p>Now, in your model without a real database table you defined the schema like this:</p>
<pre>
var $_schema = array(

  'firstName' =&gt; array('type' =&gt; 'string',

        'length' =&gt; 30),

  'lastName' =&gt; array('type' =&gt; 'string',

        'length' =&gt; 30),

  'email' =&gt; array('type' =&gt; 'string',

        'length' =&gt; 30),

  'msg' =&gt; array('type' =&gt; 'text')

);</pre>
<p>Now you can create validation rules in your model as normal (future post on this once I am confident).</p>
<p>One other note before I defined a schema I was given an &#8220;excessive memory&#8221; error.</p>
<p><strong>Fatal error</strong>:  Allowed memory size of 41943040 bytes exhausted (tried to allocate 35 bytes) in <strong>XXX/cake/libs/debugger.php</strong> on line <strong>414</strong></p>
<p>&#8230; when adding $form-&gt;create() to my view.  This error reports the problem on some line of debugger.php.  Once you comment out this line (and maybe a few more it will report) you will see an error&#8230;</p>
<p>Warning (512): (FormHelper::create) Unable to use model field data. If you are using a model without a database table, try implementing schema() [CORE/cake/libs/view/helpers/form.php, line 124]<br />
Warning (512): (Model::getColumnType) Unable to locate model field data. If you are using a model without a database table, try implementing schema() [CORE/cake/libs/model/model.php, line 959]</p>
<p>I hope this saves someone the time it took me to solve this issue.  Happy Cake&#8217;n.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;title=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;title=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;t=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;title=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;h=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;title=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=CakePHP%20Schema%20and%20Tableless%20Models&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;title=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2008%2F01%2F31%2Fcakephp-schema-and-tableless-models%2F&amp;=CakePHP%20Schema%20and%20Tableless%20Models" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808957" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2008/01/31/cakephp-schema-and-tableless-models/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2008/01/31/cakephp-schema-and-tableless-models/</feedburner:origLink></item>
		<item>
		<title>CakePHP 1.2 i18n/l10n</title>
		<link>http://feeds.feedburner.com/~r/athies/~3/346808958/</link>
		<comments>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 00:59:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[i18n]]></category>

		<category><![CDATA[l10n]]></category>

		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/</guid>
		<description><![CDATA[A few month ago I started working with the CakePHP framework.  I needed the i18n functionality that was in version 1.2 (late alpha).  After a lot of research I was able to get what I needed.  I wrote up my findings and submitted this to the CakePHP developers.  They have accepted [...]]]></description>
			<content:encoded><![CDATA[<p>A few month ago I started working with the <a href="http://www.cakephp.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.cakephp.org');">CakePHP</a> framework.  I needed the i18n functionality that was in version 1.2 (late alpha).  After a lot of research I was able to get what I needed.  I wrote up my findings and submitted this to the CakePHP developers.  They have accepted my submission on using i18n in 1.2 and it will appear in the <a href="http://tempdocs.cakephp.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/tempdocs.cakephp.org');">CakePHP 1.2 Manual</a>.  This is my first contribution back to the open source community and while it is just a small bit, I am quite proud to have made even a small contribution back to what has given me so much.  Since the 1.2 manual is not yet available I thought I&#8217;d post my contribution here:</p>
<h3>Localization and Internationalization</h3>
<p><strong>What is the difference? </strong>Localization refers to the ADAPTATION of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a &#8220;locale&#8221;).  Internationalization is the DESIGN AND DEVELOPMENT of a product, application or document content that ENABLES easy localization for target audiences that vary in culture, region, or language.</p>
<ul>
<li><a href="http://www.w3.org/International/questions/qa-i18n" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.w3.org');">http://www.w3.org/International/questions/qa-i18n</a></li>
<li>&#8220;internationalization&#8221; and &#8220;localization&#8221; are often abbreviated as i18n and l10n respectively; 18 and 10 are the number of characters between the first and last character.</li>
</ul>
<h3>How to Use Localization</h3>
<ol>
<li><strong>Include l10n Class</strong>
<pre>uses('L10n');

class OrderController extends AppController {

...

}</pre>
</li>
<li><strong>Create Language File</strong> Specific language translations are placed here:
<pre>locale/eng/LC_MESSAGES/default.po (English)

locale/fre/LC_MESSAGES/default.po (French)</pre>
<p>Language directories must be named with the official three-digit language code; you can find these here: <a href="http://www.loc.gov/standards/iso639-2/php/code_list.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.loc.gov');">http://www.loc.gov/standards/iso639-2/php/code_list.php</a></li>
<li><strong>Populate Language file</strong> Create entries in the appropriate default.po file in this form:
<pre>msgid  "close_window"

msgstr "Close"

msgid  "where_pin"

msgstr "Where is my PIN?"</pre>
<p>There is a limit of 1014 characters in a single msgstr.</li>
<li><strong>Using</strong> Use the underscore-underscore method, providing the msgid as the first parameter.
<pre>__("closeWindow");

__("closeWindow", true);</pre>
<p>If the msgid provided is not found, then the provided value id used, hence some people like to use the default text as the msgid:</p>
<pre>__("Close Window");</pre>
<p>With the second parameter as true the value is returns, without the second parameter is echo&#8217;d.  If you see your msgid on your page instead of cooresponding msgstr, and the msgid/msgstr pair exists in the relevant default.po file, then you probably are missing dbouel quotes around the msgid or msgstr entry.</li>
<li><strong>Selecting Language</strong> To select the language you want:
<pre>$this-&gt;L10n = new L10n();$this-&gt;L10n-&gt;get("en");

$_SESSION['Config']['language'] = "en";</pre>
<p>Use the first two-digits of the language code (yes, I know it is weird to use two-digits here and three-digits as the language directory name).  Configure::write(&#8217;Config.language&#8217;, &#8220;en&#8221;) will work in place of $_SESSION['Config']['language'] = &#8220;en&#8221; in the future, but it does not work as of 1.2.0.4798alpha.</li>
</ol>
<h3>Real-Life Implementation Example</h3>
<p>I created a language helper method:</p>
<pre>public function setLang($language = 'en') {

$this-&gt;L10n = new L10n();

$this-&gt;L10n-&gt;get($language);

//Configure::write('Config.language', $language);

$_SESSION['Config']['language'] = $language;
}</pre>
<p>Then I use it in my controller methods as needed.</p>
<pre>function balance() {

Utility::setLang(LOCALE);

...

}</pre>
<p>And LOCALE is a constant = &#8220;en&#8221;.</p>
<h3>Special Characters</h3>
<p>Save the default.po files with an encoding of ISO-8859-1 htmlentities will not render correctly if when used in $form-&gt;error() unless you turn off the espcae option:</p>
<pre>echo $form-&gt;error('Card.cardNumber',

__("errorCardNumber", true),

array('escape' =&gt; false));</pre>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;title=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/digg.com');" title="Digg"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;title=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/del.icio.us');" title="del.icio.us"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;t=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.facebook.com');" title="Facebook"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;title=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');" title="Google"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;h=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.newsvine.com');" title="NewsVine"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;title=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/reddit.com');" title="Reddit"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://slashdot.org/bookmark.pl?title=CakePHP%201.2%20i18n%2Fl10n&amp;url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/slashdot.org');" title="Slashdot"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;title=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stumbleupon.com');" title="StumbleUpon"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/technorati.com');" title="Technorati"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/twitthis.com');" title="TwitThis"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Faaronthies.com%2Fwp%2F2007%2F08%2F03%2Fcakephp-12-i18nl10n%2F&amp;=CakePHP%201.2%20i18n%2Fl10n" onclick="javascript:pageTracker._trackPageview('/outbound/article/myweb2.search.yahoo.com');" title="YahooMyWeb"><img src="http://aaronthies.com/wp/wp-content/plugins/sociable/images/yahoomyweb.png" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/athies/~4/346808958" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/feed/</wfw:commentRss>
		<feedburner:origLink>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/</feedburner:origLink></item>
	</channel>
</rss>
