<?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>Nu Order Webs - Web Design and SEO in Birmingham &#187; Code</title>
	<atom:link href="http://www.nuorderwebs.co.uk/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nuorderwebs.co.uk/blog</link>
	<description>A bleeding edge Technology Company Based in Birmingham UK - Specialising in PHP Development and SEO</description>
	<lastBuildDate>Thu, 26 Aug 2010 12:32:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Only showing active records &#8211; model wide conditions cakePHP</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/only-showing-active-records-model-wide-conditions-cakephp/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/only-showing-active-records-model-wide-conditions-cakephp/#comments</comments>
		<pubDate>Wed, 05 May 2010 14:45:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/?p=78</guid>
		<description><![CDATA[I know its been a bit of a whole since my last update but have a bit of useful info here:
 function beforeFind(&#038;$queryData)
	{
	    $conditions = $queryData['conditions'];

	    if (!is_array($conditions)) {
	        if (!$conditions) {
	           [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/only-showing-active-records-model-wide-conditions-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally &#8211; Multiple Model Pagination with Multiple Widgets</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/finally-multiple-model-pagination-with-multiple-widgets/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/finally-multiple-model-pagination-with-multiple-widgets/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:51:24 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/finally-multiple-model-pagination-with-multiple-widgets/</guid>
		<description><![CDATA[Don&#8217;t get me wrong &#8211; I love CakePHP &#8211; im not an expert in it by any means but can quickly knock up a site and it definitely saves me time when coding stuff &#8211; no doubt.
One of the main problems I have with it is its pagination classes, true, they work fine if you [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/finally-multiple-model-pagination-with-multiple-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sensible Access Control in CakePHP without using ACL!</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/sensible-access-control-in-cakephp-without-using-acl/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/sensible-access-control-in-cakephp-without-using-acl/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 10:57:23 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/sensible-access-control-in-cakephp-without-using-acl/</guid>
		<description><![CDATA[Ok, so you are preparing your application to start coding, you are probably going to work on the users and the authentication system first of all and you want to limit different users to different parts of the site.
Sounds simple enough &#8211; cakePHP provides something called ACL as part of its core. However you find [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/sensible-access-control-in-cakephp-without-using-acl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extra Iterations in Data Array (hasMany Mistake)</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/extra-iterations-in-data-array-hasmany-mistake/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/extra-iterations-in-data-array-hasmany-mistake/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 09:15:59 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/extra-iterations-in-data-array-hasmany-mistake/</guid>
		<description><![CDATA[Just a quick one today, if you find you are having to use nested Set::Extracts or nested foreach loops in your code to extract data then it is possible you have some incorrect associations.
For instance if you array looks like this:
Array  (     [0] =&#62; Array      [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/extra-iterations-in-data-array-hasmany-mistake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST with CakePHP</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/rest-with-cakephp/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/rest-with-cakephp/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:00:00 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/rest-with-cakephp/</guid>
		<description><![CDATA[I recently had a bit of a brain block how to do a certain thing in cakePHP &#8211; I basically wanted to update a model from a view but not using a GET method (as that would have allowed URL manipulation &#8211; and potentially created problems).
The simple answer (again thanks to Darren at zeen.co.uk) is [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/rest-with-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pagination Across Models / Associations</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/pagination-across-models-associations/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/pagination-across-models-associations/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:31:10 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/pagination-across-models-associations/</guid>
		<description><![CDATA[For a CakePHP n00b the pagination thing might seem a bit complicated. Well to be frank it is in someways. For instance you can only currently paginate stuff easily when there is a model involved!
For instance here is a pagination with a deep association:

$this-&#62;UserProfile-&#62;User-&#62;Friend-&#62;recursive = -1;
		$this-&#62;set&#40;'userFriends', $this-&#62;paginate&#40;$this-&#62;UserProfile-&#62;User-&#62;Friend, 
			array&#40;'Friend.user_id' =&#62; $userid, 'Friend.accepted' =&#62; 1&#41;&#41;&#41;;
&#160;
		$this-&#62;set&#40;'userFriendsWaiting', $this-&#62;paginate&#40;$this-&#62;UserProfile-&#62;User-&#62;Friend,
				array&#40;'Friend.user_id' =&#62; [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/pagination-across-models-associations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View what variables are being passed to the view</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/view-what-variables-are-being-passed-to-the-view/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/view-what-variables-are-being-passed-to-the-view/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 00:00:00 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/code/view-what-variables-are-being-passed-to-the-view/</guid>
		<description><![CDATA[I sometimes think it is useful to see exactly what variables (and values are being passed to the view in cakePHP), especially if the project you are working on is complex with much pseudo repetitive data.
A simple solution to do this is to insert this piece of code in your view:

foreach &#40;$this-&#62;getVars&#40;&#41; as $name&#41; &#123;
&#160;
	pr&#40;$$name&#41;;
&#125;




Share [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/view-what-variables-are-being-passed-to-the-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A CakePHP Friends List not using HABTM</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/a-cakephp-friends-list-not-using-habtm/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/a-cakephp-friends-list-not-using-habtm/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:10:18 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/?p=25</guid>
		<description><![CDATA[Right,
When I started out on this I hit t&#8217;internet looking for any kind of hints as to the best way of going about this. The first thing I came across was the use of a Self Referential HABTM relationship ( User&#60;-HABTM-&#62;User ), naturally not being the uber Cake Nerd this really didnt work out too [...]]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/a-cakephp-friends-list-not-using-habtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Writing Multiple Database Rows</title>
		<link>http://www.nuorderwebs.co.uk/blog/code/11/</link>
		<comments>http://www.nuorderwebs.co.uk/blog/code/11/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:54:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.nuorderwebs.co.uk/blog/?p=11</guid>
		<description><![CDATA[CakePHP Writing multiple rows to the database?  Make sure you are exiting properly after your save() method.]]></description>
		<wfw:commentRss>http://www.nuorderwebs.co.uk/blog/code/11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
