<?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>Papermashup.com &#187; Frameworks</title>
	<atom:link href="http://papermashup.com/category/frameworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com</link>
	<description>Ashley Ford :: CSS &#124; PHP &#124; JavaScript</description>
	<lastBuildDate>Wed, 07 Jul 2010 09:39:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>20 Complete scripts to download</title>
		<link>http://papermashup.com/20-complete-scripts-to-download/</link>
		<comments>http://papermashup.com/20-complete-scripts-to-download/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:01:20 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript Vimeo Tutorials API Downloads]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1812</guid>
		<description><![CDATA[I&#8217;ve put together a nice little collection of scripts over the past year or so, and have decided as it&#8217;s approaching summer in the UK (sorry winter in Australia!) to do a download bundle of 20 assorted scripts where you can get the lot in one click for free! Although donations are also much appreciated. Check out the list below for all the details of the package. This collection is based on a variety of different techniques, from CSS, PHP jQuery to MySQL.

What&#8217;s in the ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put together a nice little collection of scripts over the past year or so, and have decided as it&#8217;s approaching summer in the UK (sorry winter in Australia!) to do a download bundle of 20 assorted scripts where you can get the lot in one click for free! Although <a class="thickbox" title="Download And Donate" onclick="return false;" href="http://papermashup.com/wp-content/themes/arthemia/donate.php?download=http://papermashup.com/demos/bundle/bundle.zip&amp;keepThis=true&amp;TB_iframe=true&amp;height=220&amp;width=620">donations</a> are also much appreciated. Check out the list below for all the details of the package. This collection is based on a variety of different techniques, from CSS, PHP jQuery to MySQL.</p>
<p><img class="alignnone size-full wp-image-1834" title="boxes" src="http://papermashup.com/wp-content/uploads/2010/04/boxes.png" alt="" width="583" height="180" /></p>
<h3>What&#8217;s in the bundle?</h3>
<ol>
<li>
<h4>jQuery Drag &amp; Drop</h4>
<p>Using jQuery PHP and MySQL a complete drag and drop script that updates the database. <a href="http://papermashup.com/demos/jquery-drag-drop/">demo</a></li>
<li>
<h4>jQuery Delete</h4>
<p>Delete items using PHP jQuery using an AJAX request <a href="http://papermashup.com/demos/jquery-delete/">demo</a></li>
<li>
<h4>PHP jQuery and MySQL Autosuggest</h4>
<p>A powerful autosuggest script that searches a MySQL database to return you result <a href="http://papermashup.com/demos/autosuggest/">demo</a></li>
<li>
<h4>jQuery &amp; PHP username checker</h4>
<p>Checks the database to see if a chosen username exists in the database and returns true or false <a href="http://papermashup.com/demos/check-username/">demo</a></li>
<li>
<h4>CSS3 Buttons</h4>
<p>Styling elegant buttons using CSS3 <a href="http://papermashup.com/demos/css-buttons/">demo</a></li>
<li>
<h4>Feedburner Stats</h4>
<p>Using PHP and CURL to get your feedburner subscriber count <a href="http://papermashup.com/demos/feedburner-stats/">demo</a></li>
<li>
<h4>jQuery &amp; PHP username checker</h4>
<p>Checks the database to see if a chosen username exists in the database and returns true or false <a href="http://papermashup.com/demos/check-username/">demo</a></li>
<li>
<h4>jQuery image Zoom</h4>
<p>create a simple gallery with a hover image effect <a href="http://papermashup.com/demos/image-jquery/">demo</a></li>
<li>
<h4>jQuery PHP &amp; MySQL inline editing</h4>
<p>Edit page content directly in the browser inline using jQuery AJAX requests <a href="http://papermashup.com/demos/inline-editing/">demo</a></li>
<li>
<h4>jQuery Gallery</h4>
<p>Animated jQuery gallery with title and description <a href="http://papermashup.com/demos/jquery-gallery/index-title.html">demo</a></li>
<li>
<h4>Highlighting form inputs</h4>
<p>Highlight any input field using JavaScript <a href="http://papermashup.com/demos/jquery-highlighting-form-inputs/">demo</a></li>
<li>
<h4>jQuery JSON &amp; PHP</h4>
<p>Create a simple product gallery using JSONP PHP and MySQL <a href="http://papermashup.com/demos/jquery-json-php/">demo</a></li>
<li>
<h4>jQuery Tabs</h4>
<p>Simple tabs rendered using jQuery <a href="http://papermashup.com/demos/jquery-tabs/">demo</a></li>
<li>
<h4>jQuery XML</h4>
<p>build a product gallery parsing XML using jQuery <a href="http://papermashup.com/demos/jquery-xml/">demo</a></li>
<li>
<h4>jTruncate</h4>
<p>Using the jTruncate plugin to truncate text with a &#8216;more&#8217; link <a href="http://papermashup.com/demos/jtruncate/">demo</a></li>
<li>
<h4>PHP Page scrape</h4>
<p>Scrape page contents using PHP and CURL <a href="http://papermashup.com/demos/page-scrape/">demo</a></li>
<li>
<h4>AJAX Check</h4>
<p>Check to see if a normal GET or POST request was made or if an AJAX request was made <a href="http://papermashup.com/demos/ajax-check/">demo</a></li>
<li>
<h4>PHP Pagination</h4>
<p>A useful and raw PHP pagination script that could be adapted in to a class <a href="http://papermashup.com/demos/php-pagination/">demo</a></li>
<li>
<h4>jQuery Sliding Menu</h4>
<p>jQuery drop down slide in / out menu inspired by 9rules.com <a href="http://papermashup.com/demos/jquery-menu/">demo</a></li>
<li>
<h4>jQuery Tooltips</h4>
<p>An experimentation into building jQuery tooltips with AJAX requests, images etc <a href="http://papermashup.com/demos/tooltip/">demo</a></li>
</ol>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="PHJ3K79G49EHN" />
<input alt="PayPal - The safer, easier way to pay online." name="submit" src="http://papermashup.com/wp-content/uploads/2010/04/donate.png" type="image" /> <img style="border: 0px;" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<p><a class="thickbox" title="Download And Donate" onclick="return false;" href="http://papermashup.com/wp-content/themes/arthemia/donate.php?download=http://papermashup.com/demos/bundle/bundle.zip&amp;keepThis=true&amp;TB_iframe=true&amp;height=220&amp;width=620"><img class="alignnone size-full wp-image-24" title="download" src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/20-complete-scripts-to-download/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Get started with CodeIgniter</title>
		<link>http://papermashup.com/get-started-with-codeigniter/</link>
		<comments>http://papermashup.com/get-started-with-codeigniter/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 09:01:59 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1564</guid>
		<description><![CDATA[I&#8217;ve never really got the hang of PHP frameworks and have tended to use my own custom built CMS but even with this I still find myself writing the same code over and over again. In the past I&#8217;ve dabbled with CakePHP and the Zend Framework and not really got very far, so a few days ago I downloaded CodeIgniter. Although I&#8217;m extremely new to this I was pretty blown away by the simplicity of setting things up and getting an actual webpage that processes ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never really got the hang of PHP frameworks and have tended to use my own custom built CMS but even with this I still find myself writing the same code over and over again. In the past I&#8217;ve dabbled with CakePHP and the Zend Framework and not really got very far, so a few days ago I downloaded <a href="http://codeignitor.com">CodeIgniter</a>. Although I&#8217;m extremely new to this I was pretty blown away by the simplicity of setting things up and getting an actual webpage that processes something online.</p>
<h3>How It Works</h3>
<p>CodeIgniter uses the MVC or Model View Controller architectural pattern, if your not familiar with MVC it is a logical object orientated development approach. below we look at a simple example of how we use the MVC.</p>
<p><img class="alignnone size-full wp-image-1568" title="mvc" src="http://papermashup.com/wp-content/uploads/2010/01/mvc.png" alt="mvc" width="583" height="300" /></p>
<h3>Controllers</h3>
<p>A controller is simply a class file that is named in a way that can be associated with a URI. For example if i have a controller with the filename account.php the URI to reach that page would be something like http://your-domain.com/account/ so you no longer need to fiddle with the .htaccess file and mod_rewrite to enable SEO friendly URI&#8217;s. The controller is the top level file for each page that allows you to include database requests in the form of &#8216;Models&#8217; and templates as &#8216;Views&#8217;. below is an example of a controller, This code would be saved in the file blog.php, it&#8217;s important to understand the naming convensions because the name of the file is always the name of the class with the first letter capitalised. Within the Blog class we have an index() function which is always loaded when the page is excecuted. For example if we had another function lets say &#8216;categories&#8217; the code within that function would only be executed if we visited  http://your-domain.com/blog/categories/ this is also the way you can pass url parameters into functions but we&#8217;ll leave that for another day. We&#8217;re loading our &#8216;View&#8217; in at the bottom and passing the array $data into it. Within the view file which would be called blogview.php if we wanted to echo the heading we&#8217;d simply echo $heading the same with the title. With the to do list we would need to setup a for each loop to cycle through the results in that array.</p>
<pre class="brush: php;">

class Blog extends Controller {

	function index()
	{
		$data['todo_list'] = array('Clean House', 'Call Mom', 'Run Errands');
		$data['title'] = 'My Real Title';
		$data['heading'] = 'My Real Heading';

		$this-&gt;load-&gt;view('blogview', $data);
	}
}
</pre>
<h3>Models</h3>
<p>As yet we&#8217;re not using a model, this is because our controller isn&#8217;t doing anything complex. If we wanted to connect to a database and get a set of results we would use a model which could look like the below. This is all the code we need to pull 10 results from the database which would be returned to the controller in an array. note that you would need to replace &#8216;tableName&#8217; with your own database table name.</p>
<pre class="brush: php;">
class Blogmodel extends Model {

    function Blogmodel()
    {
        // Call the Model constructor
        parent::Model();
    }

    function get_last_ten_entries()
    {
        $query = $this-&gt;db-&gt;get('tableName', 10);
        return $query-&gt;result();
    }

}
</pre>
<p>To include the model firstly you need to navigate to system/application/config/database.php and add your database connection details. then below you&#8217;ll see that i&#8217;ve modified the controller that we used earlier so it now connects to the database and gets our data. This will then be sent through to the &#8216;view&#8217;.</p>
<pre class="brush: php;">

class Blog extends Controller {

	function index()
	{

		$data['title'] = 'My Blog Site';
		$data['heading'] = '10 of my blogs';

                 // connect to DB and get data
                $this-&gt;load-&gt;database();
                $this-&gt;load-&gt;model('blogmodel');
		$data['query'] = $this-&gt;blogmodel-&gt;get_last_ten_entries();

		$this-&gt;load-&gt;view('blogview', $data);
	}
}
</pre>
<h3>Views</h3>
<p>Simply put a &#8216;View&#8217; is our template, it&#8217;s where our data gets rendered and is made pretty, you can have as many views as you like and pass whatever data you like into them it&#8217;s probably a good idea to have a header, main content area and footer, but for the purposes of this demo i&#8217;ve used one view where all the data is rendered.</p>
<pre class="brush: php;">

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;title&gt;&lt;?php echo $title;?&gt;&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;h1&gt;&lt;?php echo $heading;?&gt;&lt;/h1&gt;

&lt;?php foreach($query as $item):?&gt;

&lt;h2&gt;&lt;?php echo $item-&gt;title;?&gt;&lt;/h2&gt;
&lt;?php echo $item-&gt;content;?&gt;

&lt;?php endforeach;?&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>For more information on <a name="codeigniter link"></a> where you can find the download and user guide <a href="http://codeignitor.com">Click Here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/get-started-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
