<?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>TheUnical Technologies Blog &#187; PHP</title>
	<atom:link href="http://blog.theunical.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.theunical.com</link>
	<description>TheUnical Technologies Official Blog</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Free PHP, HTML, CSS, JavaScript editor (IDE) &#8211; Codelobster PHP Edition</title>
		<link>http://blog.theunical.com/php/php-framework/joomla/free-php-html-css-javascript-editor-ide-codelobster-php-edition/</link>
		<comments>http://blog.theunical.com/php/php-framework/joomla/free-php-html-css-javascript-editor-ide-codelobster-php-edition/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 21:14:30 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[IDE Tools]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PRADO]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[Free PHP HTML CSS JavaScript editor (IDE) - Codelobster PHP Edition]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=308642</guid>
		<description><![CDATA[For valuable work on creation of sites you need a good comfortable editor necessarily. There are many requiring paid products for this purpose, but we would like to select free of charge very functional and at the same time of simple in the use editor - Codelobster PHP Edition . Let us consider some important possibilities [...]]]></description>
			<content:encoded><![CDATA[<p>For valuable work on creation of sites you need a good comfortable editor necessarily. There are many requiring paid products for this purpose, but we would like to select free of charge very functional and at the same time of simple in the use editor - <strong><a href="http://www.codelobster.com/" target="_blank">Codelobster PHP Edition</a></strong> .</p>
<p><img src="http://www.codelobster.com/images/clphped.gif" alt="Free PHP, HTML, CSS, JavaScript editor (IDE) - Codelobster PHP Edition" /></p>
<ul>Let us consider some important possibilities and advantages of this program:</p>
<li>All <strong>code highlights</strong> depending on a type, the also mixed code is thus supported, so the area of HTML will be highlighted as HTML, PHP as PHP, and Javascript as Javascript in a the same file. Thre is possibility of choice from color schemes, including popular IDEs.</li>
<li>Powerful <strong>autocompletion for HTML, PHP, CSS and Javascript</strong>, including HTML5 and CSS3. For PHP the structure of project is fully recognized, and the complete list of methods falls out in the proper places.</li>
<li><strong>HTML/CSS</strong> inspector on the type of Firebug, which allows easily to correlate the selected elements of page with a code and proper style.</li>
<li><strong>Context help</strong> on all supported languages. By pressing F1 key the page with detailed description for current tag, attribute or function will be opened.</li>
<li><strong>PHP debugger</strong>. PHP debugger allows to execute PHP scripts incrementally, watching the values of all variables in every line.</li>
<li><strong>SQL manager</strong> allows to produce all necessary actions with a database &#8211; to add, delete, edit a structure and records in tables, to export data, execute SQL queries. Highlighting and autocompletion works for SQL files also.</li>
<li><strong>Support of FTP</strong> allows to work straight with a remote server and to do all necessary changes with files;</li>
<li><strong>The portable option</strong> allows to use editor without the preliminary installation.</li>
<li>Other useful utilities: pair highlighting, possibility of blocks selection, collapsing, tooltips, navigation on descriptions of functions and included files at withholding of the key of CTRL, viewing of structure of files and project, preview in a browser, book-marks, and all other standard possibilities for work with a code</li>
</ul>
<h4>Also there are special plugins for work with</h4>
<ul>
<li>CMS: <strong>Drupal, Joomla</strong></li>
<li>PHP frameworks: <strong>CakePHP, CodeIgniter, Symfony, Yii</strong></li>
<li>JavaScript libraly: <strong>JQuery</strong></li>
<li><strong>WordPress</strong> blogging engine</li>
<li><strong>Smarty</strong> template engine</li>
</ul>
<div id="_mcePaste">Developer: Codelobster Software</div>
<div id="_mcePaste">Web Site: <a href="http://www.codelobster.com/" target="_blank">http://www.codelobster.com/</a></div>
<div id="_mcePaste">Language: English, Russian, German, Spanish, French, Portuguese</div>
<div id="_mcePaste">Supported: OS	Windows 2000, Windows XP, Windows Vista, Windows 7</div>
<div>Download link:</div>
<div id="_mcePaste"><a href="http://www.codelobster.com/download/CodelobsterPHPEditionSetup.exe" target="_blank">Free PHP, HTML, CSS, JavaScript editor (IDE) &#8211; Codelobster PHP Edition</a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/php/php-framework/joomla/free-php-html-css-javascript-editor-ide-codelobster-php-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: How to Get MAC Address for Current System Using PHP</title>
		<link>http://blog.theunical.com/php/php-how-to-get-mac-address-for-current-system-using-php/</link>
		<comments>http://blog.theunical.com/php/php-how-to-get-mac-address-for-current-system-using-php/#comments</comments>
		<pubDate>Sat, 01 May 2010 13:05:26 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[MAC Address]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=306220</guid>
		<description><![CDATA[Here is the below code in PHP that is used to get MAC address in PHP &#60;?php ob_start(); // Turn on output buffering system('ipconfig /all'); //Execute external program to display output $capout=ob_get_contents(); // Capture the output into a variable ob_clean(); // Clean the output buffer $findcurrentsystem = "Physical"; $pmac = strpos($capout, $findcurrentsystem); // Find the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the below code in PHP that is used to get MAC address in PHP</p>
<pre class="brush: php">&lt;?php

ob_start(); // Turn on output buffering

system('ipconfig /all'); //Execute external program to display output 

$capout=ob_get_contents(); // Capture the output into a variable 

ob_clean(); // Clean the output buffer

$findcurrentsystem = "Physical";

$pmac = strpos($capout, $findcurrentsystem); // Find the position of Physical text 

$mac=substr($capout,($pmac+36),17); // Get Physical Address

echo $mac;

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/php/php-how-to-get-mac-address-for-current-system-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install the APC PHP Cache on Debian (Lenny)</title>
		<link>http://blog.theunical.com/php/how-to-install-the-apc-php-cache-on-debian-lenny/</link>
		<comments>http://blog.theunical.com/php/how-to-install-the-apc-php-cache-on-debian-lenny/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 13:10:06 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[APC PHP Cache]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/php/php-framework/zend/how-to-install-the-apc-php-cache-on-debian-lenny/</guid>
		<description><![CDATA[The APC cache can significantly improve your PHP script performance, just by installing it, which basically takes 5 minutes! (Plus, it’s actually supported by the core PHP developers and will probably be integrated into PHP6…) Here’s what I did on my Debian Lenny box… First you may want to have a reference benchmark to see [...]]]></description>
			<content:encoded><![CDATA[<div>The <a href="http://php.net/manual/en/book.apc.php">APC cache</a> can significantly improve your PHP script performance, just by installing it, which basically takes 5 minutes! (Plus, it’s actually supported by the core PHP developers and will probably be integrated into PHP6…)  Here’s what I did on my Debian Lenny box…  First you may want to have a reference benchmark to see if it actually improves:  Code:</p>
<div>
<table border="0">
<tbody>
<tr>
<td></td>
<td><code><span>ab -c5 -n100 http://www.yoursite.com/yourscript.php</span></code></td>
</tr>
</tbody>
</table>
</div>
<p>Now install the APC package:  Code:</p>
<div>
<table border="0">
<tbody>
<tr>
<td></td>
<td><code><span>aptitude install php-apc</span></code></td>
</tr>
</tbody>
</table>
</div>
<p>Now, restart apache:  Code:</p>
<div>
<table border="0">
<tbody>
<tr>
<td></td>
<td><code><span>/etc/init.d/apache2 restart</span></code></td>
</tr>
</tbody>
</table>
</div>
<div>Now, you can run your benchmark again and see the difference! Tada! <img src='http://blog.theunical.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>Follow up:  APC comes with a control panel script, that allows you to check cache usage. Here’s how to make it available on your web root (for example):Code:</div>
<div>
<table border="0">
<tbody>
<tr>
<td></td>
<td><code><span>gunzip /usr/share/doc/php-apc/apc.php.gz</span></code></td>
</tr>
<tr>
<td></td>
<td><code><span>ln -s /usr/share/doc/php-apc/apc.php /var/www/apc.php</span></code></td>
</tr>
</tbody>
</table>
</div>
<p>Note that you should also have the php-gd package installed in order to get nice charts! <img src='http://blog.theunical.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/php/how-to-install-the-apc-php-cache-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans 6.8 beta : support de JSF 2 et PHP 5.3</title>
		<link>http://blog.theunical.com/java/netbeans-6-8-beta-support-de-jsf-2-et-php-5-3/</link>
		<comments>http://blog.theunical.com/java/netbeans-6-8-beta-support-de-jsf-2-et-php-5-3/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 23:51:43 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Netb]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/ide-tools/netbeans/netbeans-6-8-beta-support-de-jsf-2-et-php-5-3/</guid>
		<description><![CDATA[La version 6.8 de Netbeans est disponible en version beta. Parmi les principales avancées proposées, on relève le support de JavaFX 1.2.1 (qui n&#8217;était pas présent dans la dernière version de travail). Netbeans 6.8 supporte en outre JavaServer Faces 2.0 et Java Persistence JPA 2.0 Web Services Restful, ainsi que GlassFish 3. Sur le terrain [...]]]></description>
			<content:encoded><![CDATA[<p>La version 6.8 de Netbeans est disponible en version beta. Parmi les principales avancées proposées, on relève le support de JavaFX 1.2.1 (qui n&#8217;était pas présent dans la dernière version de travail).</p>
<p>Netbeans 6.8 supporte en outre JavaServer Faces 2.0 et Java Persistence JPA 2.0 Web Services Restful, ainsi que GlassFish 3. Sur le terrain de PHP, l&#8217;environnement de développement intègre la version 5.3 du langage, et supporte l&#8217;infrastructure Symfony. Enfin, la prise en charge des langages C/C++ et Ruby, et la combinaison de l&#8217;IDE avec Maven et JRuby sont améliorés.</p>
<p>Télécharger Netbeans 6.8 beta</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/java/netbeans-6-8-beta-support-de-jsf-2-et-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Steps to Publish On FaceBook Fan Page Using PHP</title>
		<link>http://blog.theunical.com/facebook-integration/simple-steps-to-publish-on-facebook-fan-page-using-php/</link>
		<comments>http://blog.theunical.com/facebook-integration/simple-steps-to-publish-on-facebook-fan-page-using-php/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 13:55:56 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[FaceBook Integration]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[facebook publish on fan's wall page]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=269886</guid>
		<description><![CDATA[After Done with my previous post http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/ that only publish&#8217;s on a Facebook wall. So now we will see how to publish on a facebook Fan&#8217;s page. First we need to follow the 5 steps that I described in my previous post Next just create a Fan Page in Facebook. Then get the page ID [...]]]></description>
			<content:encoded><![CDATA[<p>After Done with my previous post <a href="http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/" target="_blank">http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/ </a>that only publish&#8217;s on a Facebook wall.</p>
<p>So now we will see how to publish on a facebook Fan&#8217;s page.</p>
<p>First we need to follow the <a href="http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/" target="_blank">5 steps</a> that I described in my previous post Next just create a Fan Page in Facebook.</p>
<p>Then get the page ID that you can get by the Page URL.</p>
<p>Then replace the APIKey, Secret Key and Session Key with your keys.</p>
<p>Then replace $target_id with your page id. That is Fan&#8217;s Page id.</p>
<h2>Here is the code in PHP to publish on a Facebook FAN Page</h2>
<pre class="brush: php">&lt;?php
define('FB_APIKEY', 'APIKEYxx');
define('FB_SECRET', 'SECRETKEYxxxxxxxxxxxxxxxxxxx');
define('FB_SESSION', 'SESSIONKEYxxxxxxxxxxxxxxxxxxxx');

require_once('facebook-platform/php/facebook.php');

try {
$facebook = new Facebook(FB_APIKEY, FB_SECRET);
$facebook-&gt;api_client-&gt;session_key = FB_SESSION;
$fetch = array('friends' =&gt;
array('pattern' =&gt; '.*',
'query' =&gt; "select uid2 from friend where uid1={$user}"));
echo $facebook-&gt;api_client-&gt;admin_setAppProperties(array('preload_fql' =&gt; json_encode($fetch)));

$message = 'From My App: publish steven on facebook Fan Page';

$target_id ="273641842409";

if( $facebook-&gt;api_client-&gt;stream_publish($message, $attachment,$action_links, $target_id))
echo "Added on FB Wall on Fan Page";
} catch(Exception $e) {
echo $e . "&lt;br /&gt;";

}
?&gt;</pre>
<p><img class="alignnone size-full wp-image-269889" title="publish on facebook fan wall page using php" src="http://blog.theunical.com/wp-content/uploads/2010/01/publish-on-facebook-fan-wall-page-using-php.JPG" alt="publish on facebook fan wall page using php" width="553" height="351" /><br />
That&#8217;s it your are now done enjoy!!! publishing on fan&#8217;s page wall.</p>
<p>You can see my Fan Page here <a href="http://www.facebook.com/pages/Fan-Page/273641842409?v=wall">http://www.facebook.com/pages/Fan-Page/273641842409?v=wall</a> Where I published using above example.</p>
<input id="gwProxy" type="hidden" /><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/facebook-integration/simple-steps-to-publish-on-facebook-fan-page-using-php/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Increase Memory PHP, Magento, WordPress by just changing in .htaccess</title>
		<link>http://blog.theunical.com/php/php-framework/joomla/increase-memory-php-magento-wordpress-by-just-changing-in-htaccess/</link>
		<comments>http://blog.theunical.com/php/php-framework/joomla/increase-memory-php-magento-wordpress-by-just-changing-in-htaccess/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 02:56:00 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Magento Cart]]></category>
		<category><![CDATA[OS Commerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PRADO]]></category>
		<category><![CDATA[Shopping Carts]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Xcart]]></category>
		<category><![CDATA[Zen Cart]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Increase Memory]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=261594</guid>
		<description><![CDATA[If you are on a virtual hosting then its a big problem to increase server php memory usage. Then we can simply modify the .htaccess file in root directory and increase memory. if .htaccess file is not there then create one and add below code. Then  simply modify the variable &#8220;php_value memory_limit 120M&#8221; by default [...]]]></description>
			<content:encoded><![CDATA[<p>If you are on a virtual hosting then its a big problem to increase server php memory usage. Then we can simply modify the .htaccess file in root directory and increase memory.</p>
<p>if .htaccess file is not there then create one and add below code.</p>
<p>Then  simply modify the variable &#8220;php_value memory_limit 120M&#8221;</p>
<p>by default we will have 32M allocated we can increase it according to our requirement.</p>
<p>We can do this in any php apache technology or in Zend, Prado, Symfony, Joomla, CakePHP, CodeIgniter etc.</p>
<p>&lt;IfModule mod_php5.c&gt;</p>
<p>############################################</p>
<p>## adjust memory limit</p>
<p>#    php_value memory_limit 64M</p>
<p>php_value memory_limit 120M</p>
<p>php_value max_execution_time 18000</p>
<p>############################################</p>
<p>## disable magic quotes for php request vars</p>
<p>php_flag magic_quotes_gpc off</p>
<p>############################################</p>
<p>## disable automatic session start</p>
<p>## before autoload was initialized</p>
<p>php_flag session.auto_start off</p>
<p>############################################</p>
<p>## enable resulting html compression</p>
<p>#php_flag zlib.output_compression on</p>
<p>###########################################</p>
<p># disable user agent verification to not break multiple image upload</p>
<p>php_flag suhosin.session.cryptua off</p>
<p>###########################################</p>
<p># turn off compatibility with PHP4 when dealing with objects</p>
<p>php_flag zend.ze1_compatibility_mode Off</p>
<p>&lt;/IfModule&gt;</p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/php/php-framework/joomla/increase-memory-php-magento-wordpress-by-just-changing-in-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pixy-Open-Source Vulnerability Scanner for PHP Applications</title>
		<link>http://blog.theunical.com/databases/db-tool/pixy-open-source-vulnerability-scanner-for-php-applications/</link>
		<comments>http://blog.theunical.com/databases/db-tool/pixy-open-source-vulnerability-scanner-for-php-applications/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 03:05:18 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[DB Tool]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=254938</guid>
		<description><![CDATA[An Open-Source Vulnerability Scanner for PHP Applications. The Secure Systems Lab at the Technical University of Vienna has released the newest version of Pixy, an open-source vulnerability scanner. Here are some of the highlights: Detection of SQL injection and XSS vulnerabilities in PHP source code Automatic resolution of file inclusions Computation of dependence graphs that [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val=" " /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> <!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} --></p>
<p><!--[endif]-->An Open-Source Vulnerability Scanner for PHP Applications.</p>
<p>The Secure Systems Lab at the Technical University of Vienna has released the newest version of Pixy, an open-source vulnerability scanner. Here are some of the highlights:</p>
<p>Detection of SQL injection and XSS vulnerabilities in PHP source code</p>
<ol>
<li> Automatic resolution of file inclusions</li>
<li> Computation of dependence graphs that help you understand the causes of reported vulnerabilities</li>
<li> Static analysis engine (flow-sensitive, interprocedural, context-sensitive)</li>
<li> Platform-independent written in Java.</li>
</ol>
<p><a href="http://pixybox.seclab.tuwien.ac.at/">http://pixybox.seclab.tuwien.ac.at</a></p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Pixy-Open-Source Vulnerability Scanner for PHP Applications</div>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/databases/db-tool/pixy-open-source-vulnerability-scanner-for-php-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento how to create a Custom Plugin/ Module / example / tutorial Part II</title>
		<link>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/magento-how-to-create-a-custom-plugin-module-example-tutorial-part-ii/</link>
		<comments>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/magento-how-to-create-a-custom-plugin-module-example-tutorial-part-ii/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:48:18 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Magento Cart]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Shopping Carts]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/?p=217499</guid>
		<description><![CDATA[Controller /app/code/local/&#60;Namespace&#62;/&#60;Module&#62;/controllers/Adminhtml/&#60;Module&#62;Controller.php NOTE: you need to manually add line 16, which is currently missing in this file. As per suggestion from mkd at page http://www.magentocommerce.com/boards/viewthread/11228/ &#60;?php class &#62;Namespace&#60;_&#60;Module&#62;_Adminhtml_&#60;Module&#62;Controller extends { protected function _initAction() { $this-&#62;loadLayout() -&#62;_setActiveMenu('/items') -&#62;_addBreadcrumb(Mage::helper('adminhtml')-&#62;__('Items Manager'), Mage::helper('adminhtml')-&#62;__('Item Manager')); return $this; } public function indexAction() { $this-&#62;_initAction(); $this-&#62;_addContent($this-&#62;getLayout()-&#62;createBlock('/adminhtml_')); $this-&#62;renderLayout(); } public function editAction() { [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h2><a id="controller" name="controller">Controller</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div>
<p><code>/app/code/local/&lt;Namespace&gt;/&lt;Module&gt;/controllers/Adminhtml/&lt;Module&gt;Controller.php</code></p>
<p><strong>NOTE: you need to manually add line 16, which is currently missing in this file.</strong> As per suggestion from <em>mkd</em> at page <a title="http://www.magentocommerce.com/boards/viewthread/11228/" rel="nofollow" href="http://www.magentocommerce.com/boards/viewthread/11228/">http://www.magentocommerce.com/boards/viewthread/11228/</a></p>
<div style="font-family: monospace;">
<pre class="brush: php">&lt;?php
 class &gt;Namespace&lt;_&lt;Module&gt;_Adminhtml_&lt;Module&gt;Controller extends
        {
      protected function _initAction()

     {
        $this-&gt;loadLayout()
        -&gt;_setActiveMenu('/items')
        -&gt;_addBreadcrumb(Mage::helper('adminhtml')-&gt;__('Items Manager'), Mage::helper('adminhtml')-&gt;__('Item Manager'));
        return $this;
        }
        public function indexAction() {
        $this-&gt;_initAction();
        $this-&gt;_addContent($this-&gt;getLayout()-&gt;createBlock('/adminhtml_'));
        $this-&gt;renderLayout();
        }

      public function editAction()

     {
        $Id     = $this-&gt;getRequest()-&gt;getParam('id');
        $Model  =	Mage::getModel('/')-&gt;load($Id);
    if ($Model-&gt;getId() || $Id ==	0) {
  	  Mage::register('_data', $Model);
  	  $this-&gt;loadLayout();
          $this-&gt;_setActiveMenu('/items');

	  $this-&gt;_addBreadcrumb(Mage::helper('adminhtml')-&gt;__('Item	Manager'), Mage::helper('adminhtml')-&gt;__('Item Manager'));
 	  $this-&gt;_addBreadcrumb(Mage::helper('adminhtml')-&gt;__('Item News'), Mage::helper('adminhtml')-&gt;__('Item News'));

      $this-&gt;getLayout()-&gt;getBlock('head')-&gt;setCanLoadExtJs(true);

        $this-&gt;_addContent($this-&gt;getLayout()-&gt;createBlock('/adminhtml__edit'))
        -&gt;_addLeft($this-&gt;getLayout()-&gt;createBlock('/adminhtml__edit_tabs'));

      $this-&gt;renderLayout();

      } else {

      Mage::getSingleton('adminhtml/session')-&gt;addError(Mage::helper('')-&gt;__('Item does not exist'));

      $this-&gt;_redirect('*/*/');

      }

      }

      public function newAction()
        {
        $this-&gt;_forward('edit');
        }

      public function saveAction()

      {

      if ( $this-&gt;getRequest()-&gt;getPost() ) {

      try {

      $postData = $this-&gt;getRequest()-&gt;getPost();

      $Model = Mage::getModel('/');

      $Model-&gt;setId($this-&gt;getRequest()-&gt;getParam('id'))

      -&gt;setTitle($postData['title'])

      -&gt;setContent($postData['content'])

      -&gt;setStatus($postData['status'])

      -&gt;save();

      Mage::getSingleton('adminhtml/session')-&gt;addSuccess(Mage::helper('adminhtml')-&gt;__('Item was successfully saved'));

      Mage::getSingleton('adminhtml/session')-&gt;setData(false);

      $this-&gt;_redirect('*/*/');

      return;

      } catch (Exception $e) {

      Mage::getSingleton('adminhtml/session')-&gt;addError($e-&gt;getMessage());

      Mage::getSingleton('adminhtml/session')-&gt;setData($this-&gt;getRequest()-&gt;getPost());

      $this-&gt;_redirect('*/*/edit', array('id' =&gt; $this-&gt;getRequest()-&gt;getParam('id')));

      return;

      }

      }

      $this-&gt;_redirect('*/*/');

      }

      public function deleteAction()

      {

      if( $this-&gt;getRequest()-&gt;getParam('id') &gt; 0 ) {

      try {

      $Model = Mage::getModel('/');

      $Model-&gt;setId($this-&gt;getRequest()-&gt;getParam('id'))

      -&gt;delete();

      Mage::getSingleton('adminhtml/session')-&gt;addSuccess(Mage::helper('adminhtml')-&gt;__('Item was successfully deleted'));

      $this-&gt;_redirect('*/*/');

      } catch (Exception $e) {

      Mage::getSingleton('adminhtml/session')-&gt;addError($e-&gt;getMessage());

      $this-&gt;_redirect('*/*/edit', array('id' =&gt; $this-&gt;getRequest()-&gt;getParam('id')));

      }

      }

      $this-&gt;_redirect('*/*/');

      }

      }</pre>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h2><a id="xml_configuration_changes" name="xml_configuration_changes">XML Configuration Changes</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div>
<p><code>/app/code/local/&lt;Namespace&gt;/&lt;Module&gt;/etc/config.xml</code></p>
<div style="font-family: monospace;">
<div>
<pre class="brush:php">&lt;?xml version="1.0"?&gt;

&lt;config&gt;

&lt;modules&gt;

&lt;[Namespace]_[Module]&gt;

&lt;version&gt;0.1.0&lt;/version&gt;

&lt;/[Namespace]_[Module]&gt;

&lt;/modules&gt;

&lt;frontend&gt;

&lt;routers&gt;

&lt;[module]&gt;

&lt;use&gt;standard&lt;/use&gt;

&lt;args&gt;

&lt;module&gt;[Namespace]_[Module]&lt;/module&gt;

&lt;frontName&gt;[module]&lt;/frontName&gt;

&lt;/args&gt;

&lt;/[module]&gt;
&lt;/routers&gt;

&lt;layout&gt;

&lt;updates&gt;

&lt;[module]&gt;
&lt;file&gt;[module].xml&lt;/file&gt;

&lt;/[module]&gt;

&lt;/updates&gt;

&lt;/layout&gt;

&lt;/frontend&gt;

&lt;admin&gt;

&lt;routers&gt;

&lt;[module]&gt;

&lt;use&gt;admin&lt;/use&gt;

&lt;args&gt;

&lt;module&gt;[Namespace]_[Module]&lt;/module&gt;

&lt;frontName&gt;[module]&lt;/frontName&gt;

&lt;/args&gt;

&lt;/[module]&gt;

&lt;/routers&gt;

&lt;/admin&gt;

&lt;adminhtml&gt;

&lt;menu&gt;

&lt;[module] module="[module]"&gt;

&lt;title&gt;[Module]&lt;/title&gt;

&lt;sort_order&gt;71&lt;/sort_order&gt;

&lt;children&gt;

&lt;action&gt;[module]/adminhtml_[module]&lt;/action&gt;

&lt;/items&gt;

&lt;/children&gt;

&lt;/[module]&gt;

&lt;/menu&gt;

&lt;acl&gt;

&lt;resources&gt;

&lt;all&gt;

&lt;title&gt;Allow Everything&lt;/title&gt;

&lt;/all&gt;

&lt;admin&gt;

&lt;children&gt;
&lt;[module]&gt;
&lt;title&gt;[Module] Module&lt;/title&gt;

&lt;sort_order&gt;200&lt;/sort_order&gt;

&lt;/[module]&gt;

&lt;/children&gt;

&lt;/admin&gt;

&lt;/resources&gt;

&lt;/acl&gt;

&lt;layout&gt;

&lt;updates&gt;

&lt;[module]&gt;

&lt;file&gt;[module].xml&lt;/file&gt;

&lt;/[module]&gt;

&lt;/updates&gt;

&lt;/layout&gt;

&lt;/adminhtml&gt;

&lt;global&gt;

&lt;models&gt;

&lt;[module]&gt;

&lt;class&gt;[Namespace]_[Module]_Model&lt;/class&gt;

&lt;resourceModel&gt;[module]_mysql4&lt;/resourceModel&gt;

&lt;/[module]&gt;

&lt;[module]_mysql4&gt;

&lt;class&gt;[Namespace]_[Module]_Model_Mysql4&lt;/class&gt;

&lt;entities&gt;

&lt;[module]&gt;

&lt;table&gt;[module]&lt;/table&gt;

&lt;/[module]&gt;

&lt;/entities&gt;

&lt;/[module]_mysql4&gt;

&lt;/models&gt;

&lt;resources&gt;

&lt;[module]_setup&gt;

&lt;setup&gt;

&lt;module&gt;[Namespace]_[Module]&lt;/module&gt;

&lt;/setup&gt;

&lt;connection&gt;

&lt;use&gt;core_setup&lt;/use&gt;

&lt;/connection&gt;

&lt;/[module]_setup&gt;

&lt;[module]_write&gt;

&lt;connection&gt;

&lt;use&gt;core_write&lt;/use&gt;

&lt;/connection&gt;

&lt;/[module]_write&gt;

&lt;[module]_read&gt;

&lt;connection&gt;

&lt;use&gt;core_read&lt;/use&gt;

&lt;/connection&gt;

&lt;/[module]_read&gt;

&lt;/resources&gt;

&lt;blocks&gt;

&lt;[module]&gt;

&lt;class&gt;[Namespace]_[Module]_Block&lt;/class&gt;

&lt;/[module]&gt;

&lt;/blocks&gt;

&lt;helpers&gt;

&lt;[module]&gt;

&lt;class&gt;[Namespace]_[Module]_Helper&lt;/class&gt;

&lt;/[module]&gt;

&lt;/helpers&gt;

&lt;/global&gt;

&lt;/config&gt;</pre>
</div>
</div>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h2><a id="xml_layout" name="xml_layout">XML Layout</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div>
<p><code>/app/design/adminhtml/&lt;interface&gt;/&lt;theme&gt;/layout/&lt;module&gt;.xml</code></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr>
<td width="50">
<pre class="brush: xml">&lt;?xml version="1.0"?&gt;

&lt;layout version="0.1.0"&gt;

&lt;[module]_adminhtml_[module]_index&gt;

&lt;reference name="content"&gt;</pre>
</td>
</tr>
</tr>
</tbody>
</table>
<div style="font-family: monospace;">
<div>Source : http://www.magentocommerce.com/wiki/custom_module_with_custom_database_table</div>
</div>
</div>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" /></div>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/magento-how-to-create-a-custom-plugin-module-example-tutorial-part-ii/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Store Manager For Magento Cart Torrent Free Full Download Store</title>
		<link>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/store-manager-for-magento-cart-torrent-free-full-download-store/</link>
		<comments>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/store-manager-for-magento-cart-torrent-free-full-download-store/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 01:54:01 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Magento Cart]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/store-manager-for-magento-cart-torrent-free-full-download-store/</guid>
		<description><![CDATA[Store Manager For Magento Cart Torrent download, Store Manager For Magento Cart Torrent crack, Store Manager For Magento Cart Torrent serial, Store Manager http://www.rapidsharemegaupload.com/store-manager-for-magento-cart-torrent-crack-serial-keygen-free-download.htm Store Manager For Magento Cart Torrent Rapidshare Megaupload Download Links Download links are ready to be downloaded. Latest update: Friday, January 8, 2010 Download Full Version: Download store-manager-for-magento-cart.zip Related for Store [...]]]></description>
			<content:encoded><![CDATA[<p>Store Manager For <strong>Magento Cart</strong> Torrent download, Store Manager For <strong>Magento Cart</strong> Torrent crack, Store Manager For <strong>Magento Cart</strong> Torrent serial, Store Manager</p>
<p><a href="http://www.rapidsharemegaupload.com/store-manager-for-magento-cart-torrent-crack-serial-keygen-free-download.htm" target="_blank">http://www.rapidsharemegaupload.com/store-manager-for-magento-cart-torrent-crack-serial-keygen-free-download.htm</a></p>
<div id="b"><span>Store Manager For Magento Cart Torrent</span></div>
<div><span></p>
<h2>Rapidshare Megaupload Download Links</h2>
<p>Download links are ready to be downloaded. Latest update: Friday, January 8, 2010</p>
<div id="linksbox"><strong>Download Full Version</strong>:  <a title="Download Store Manager For Magento Cart Torrent Warez" rel="nofollow" href="http://www.rapidsharemegaupload.com/store-manager-for-magento-cart-torrent-rapids.htm">Download store-manager-for-magento-cart.zip</a></div>
<p></span></div>
<div id="b"><span>Related for Store Manager For Magento Cart Torrent</span><span>File Size</span><span>Downloads</span></div>
<div><span><a title="X-Cart RSS Export module - X Cart Mod 4.0" href="http://www.rapidsharemegaupload.com/x-cart-rss-export-module---x-cart-mod-free-full-download-torrent-crack-serial-ecqsm.htm">X-Cart RSS Export module &#8211; X Cart Mod 4.0</a></span> <span>0.029 MB</span> <span>5346 Times</span></div>
<div><span><a title="X-Cart All-in-One Product Feeds 10.7.6" href="http://www.rapidsharemegaupload.com/x-cart-all-in-one-product-feeds-free-full-download-torrent-crack-serial-pssdq.htm">X-Cart All-in-One Product Feeds 10.7.6</a></span> <span>1.68 MB</span> <span>3564 Times</span></div>
<div><span><a title="Fortune3 Shopping Cart and E-Commerce 6.1" href="http://www.rapidsharemegaupload.com/fortune3-shopping-cart-and-e-commerce-free-full-download-torrent-crack-serial-jchmj.htm">Fortune3 Shopping Cart and E-Commerce 6.1</a></span> <span>6.60 MB</span> <span>10230 Times</span></div>
<div><span><a title="Electric Golf Cart 1.0" href="http://www.rapidsharemegaupload.com/electric-golf-cart-free-full-download-torrent-crack-serial-psexm.htm">Electric Golf Cart 1.0</a></span> <span>0.89 MB</span> <span>2178 Times</span></div>
<div><span><a title="Ewisoft eCommerce Builder 4.0" href="http://www.rapidsharemegaupload.com/ewisoft-ecommerce-builder-free-full-download-torrent-crack-serial-eshcd.htm">Ewisoft eCommerce Builder 4.0</a></span> <span>8.58 MB</span> <span>10296 Times</span></div>
<div><span><a title="x-Cart Google Checkout L2 module 2.0" href="http://www.rapidsharemegaupload.com/x-cart-google-checkout-l2-module-free-full-download-torrent-crack-serial-exjqe.htm">x-Cart Google Checkout L2 module 2.0</a></span> <span>0.029 MB</span> <span>11814 Times</span></div>
<div><span><a title="Torrent Toolbar 1.0.1.30" href="http://www.rapidsharemegaupload.com/torrent-toolbar-free-full-download-torrent-crack-serial-phmde.htm">Torrent Toolbar 1.0.1.30</a></span> <span>0.49 MB</span> <span>21384 Times</span></div>
<div><span><a title="TorrentRatioKeeper 2.3" href="http://www.rapidsharemegaupload.com/torrentratiokeeper-free-full-download-torrent-crack-serial-pssxx.htm">TorrentRatioKeeper 2.3</a></span> <span>0.88 MB</span> <span>7458 Times</span></div>
<div><span><a title="eOrdering Complete 2.5.5" href="http://www.rapidsharemegaupload.com/eordering-complete-free-full-download-torrent-crack-serial-jpqxq.htm">eOrdering Complete 2.5.5</a></span> <span>2.69 MB</span> <span>3366 Times</span></div>
<div><span><a title="Social Bookmarks Supercharged - Zen Cart Module 2.0" href="http://www.rapidsharemegaupload.com/social-bookmarks-supercharged---zen-cart-module-free-full-download-torrent-crack-serial-ejjcj.htm">Social Bookmarks Supercharged &#8211; Zen Cart Module 2.0</a></span> <span>0.064 MB</span> <span>6270 Times</span></div>
<div><span><a title="X-Cart 5-in-One Product Feeds - X Cart Mod 4.0" href="http://www.rapidsharemegaupload.com/x-cart-5-in-one-product-feeds---x-cart-mod-free-full-download-torrent-crack-serial-ededp.htm">X-Cart 5-in-One Product Feeds &#8211; X Cart Mod 4.0</a></span> <span>0.029 MB</span> <span>5610 Times</span></div>
<div><span><a title="X-Cart All-in-One Product Feeds - X Cart Mod 4.0" href="http://www.rapidsharemegaupload.com/x-cart-all-in-one-product-feeds---x-cart-mod-free-full-download-torrent-crack-serial-edede.htm">X-Cart All-in-One Product Feeds &#8211; X Cart Mod 4.0</a></span> <span>0.29 MB</span> <span>5676 Times</span></div>
<div><span><a title="CoffeeCup Shopping Cart Designer Professional 3.7" href="http://www.rapidsharemegaupload.com/coffeecup-shopping-cart-designer-professional-free-full-download-torrent-crack-serial-cddmq.htm">CoffeeCup Shopping Cart Designer Professional 3.7</a></span> <span>31.70 MB</span> <span>264 Times</span></div>
<div><span><a title="AdVantShop.NET Pro 2.1" href="http://www.rapidsharemegaupload.com/advantshopnet-pro-free-full-download-torrent-crack-serial-cxjch.htm">AdVantShop.NET Pro 2.1</a></span> <span>9.76 MB</span> <span>2244 Times</span></div>
<div><span><a title="Point of Sale (POS) for Zen Cart 1.0.0" href="http://www.rapidsharemegaupload.com/point-of-sale-pos-for-zen-cart-free-full-download-torrent-crack-serial-cpems.htm">Point of Sale (POS) for Zen Cart 1.0.0</a></span> <span>1.14 MB</span> <span>858 Times</span></div>
<div><span><a title="VevoCart 3.0.4" href="http://www.rapidsharemegaupload.com/vevocart-free-full-download-torrent-crack-serial-cceqh.htm">VevoCart 3.0.4</a></span> <span>12.18 MB</span> <span>990 Times</span></div>
<div><span><a title="Apellicon easyTrader Web Store 1.0" href="http://www.rapidsharemegaupload.com/apellicon-easytrader-web-store-free-full-download-torrent-crack-serial-pmqcd.htm">Apellicon easyTrader Web Store 1.0</a></span> <span>5.93 MB</span> <span>3630 Times</span></div>
<div><span><a title="Shopping Cart Professional 6.05" href="http://www.rapidsharemegaupload.com/shopping-cart-professional-free-full-download-torrent-crack-serial-jcsqm.htm">Shopping Cart Professional 6.05</a></span> <span>3.60 MB</span> <span>5412 Times</span></div>
<div><span><a title="Site Map for Zen Cart - Zen Cart Module 1.0" href="http://www.rapidsharemegaupload.com/site-map-for-zen-cart---zen-cart-module-free-full-download-torrent-crack-serial-ejchh.htm">Site Map for Zen Cart &#8211; Zen Cart Module 1.0</a></span> <span>0.063 MB</span> <span>4224 Times</span></div>
<div><span><a title="RapidShop Shopping Cart and ECommerce 3.1" href="http://www.rapidsharemegaupload.com/rapidshop-shopping-cart-and-ecommerce-free-full-download-torrent-crack-serial-jhdqq.htm">RapidShop Shopping Cart and ECommerce 3.1</a></span> <span>0.28 MB</span> <span>9174 Times</span></div>
<div><span><a title="Torrent Searcher Toolbar IE 1.1" href="http://www.rapidsharemegaupload.com/torrent-searcher-toolbar-ie-free-full-download-torrent-crack-serial-pjdjp.htm">Torrent Searcher Toolbar IE 1.1</a></span> <span>1.05 MB</span> <span>23364 Times</span></div>
<div><span><a title="RapidShop 3.1" href="http://www.rapidsharemegaupload.com/rapidshop-free-full-download-torrent-crack-serial-jhdhs.htm">RapidShop 3.1</a></span> <span>0.351 MB</span> <span>11220 Times</span></div>
<div><span><a title="X-Cart 10-in-One Product Feeds 10.6.7" href="http://www.rapidsharemegaupload.com/x-cart-10-in-one-product-feeds-free-full-download-torrent-crack-serial-phdxj.htm">X-Cart 10-in-One Product Feeds 10.6.7</a></span> <span>1.67 MB</span> <span>3696 Times</span></div>
<div><span><a title="X-Cart 5-in-One Product Feeds 10.6.7" href="http://www.rapidsharemegaupload.com/x-cart-5-in-one-product-feeds-free-full-download-torrent-crack-serial-psces.htm">X-Cart 5-in-One Product Feeds 10.6.7</a></span> <span>1.67 MB</span> <span>3036 Times</span></div>
<div><span><a title="Movie Torrent 3.0.0" href="http://www.rapidsharemegaupload.com/movie-torrent-free-full-download-torrent-crack-serial-chhcj.htm">Movie Torrent 3.0.0</a></span> <span>13.9 MB</span> <span>2838 Times</span></div>
<div><span><a title="X-Cart shopping.com Data Feed module - X Cart Mod 4.0" href="http://www.rapidsharemegaupload.com/x-cart-shoppingcom-data-feed-module---x-cart-mod-free-full-download-torrent-crack-serial-ecqse.htm">X-Cart shopping.com Data Feed module &#8211; X Cart Mod 4.0</a></span> <span>0.029 MB</span> <span>5082 Times</span></div>
<div><span><a title="Music Torrent 3.5.0" href="http://www.rapidsharemegaupload.com/music-torrent-free-full-download-torrent-crack-serial-cscee.htm">Music Torrent 3.5.0</a></span> <span>13.9 MB</span> <span>990 Times</span></div>
<div><span><a title="VIP Torrent 3.1.0" href="http://www.rapidsharemegaupload.com/vip-torrent-free-full-download-torrent-crack-serial-chsem.htm">VIP Torrent 3.1.0</a></span> <span>13.9 MB</span> <span>2904 Times</span></div>
<div><span><a title="X-Cart MySimon.com Data Feed - X Cart Mod 4.0" href="http://www.rapidsharemegaupload.com/x-cart-mysimoncom-data-feed---x-cart-mod-free-full-download-torrent-crack-serial-edemj.htm">X-Cart MySimon.com Data Feed &#8211; X Cart Mod 4.0</a></span> <span>0.029 MB</span> <span>5874 Times</span></div>
<div><span><a title="Torrent2Exe 1.0" href="http://www.rapidsharemegaupload.com/torrent2exe-free-full-download-torrent-crack-serial-ppshx.htm">Torrent2Exe 1.0</a></span> <span>0.29 MB</span> <span>22110 Times</span></div>
<div><span><a title="Cart4you Shopping Cart 1.11" href="http://www.rapidsharemegaupload.com/cart4you-shopping-cart-free-full-download-torrent-crack-serial-jcdcj.htm">Cart4you Shopping Cart 1.11</a></span> <span>0.30 MB</span> <span>9900 Times</span></div>
<div><span><a title="MidiCart ASP Shopping Cart 5.45" href="http://www.rapidsharemegaupload.com/midicart-asp-shopping-cart-free-full-download-torrent-crack-serial-jcdhp.htm">MidiCart ASP Shopping Cart 5.45</a></span> <span>0.35 MB</span> <span>6402 Times</span></div>
<div><span><a title="DartCart Shopping Cart Demo .exe 1.1" href="http://www.rapidsharemegaupload.com/dartcart-shopping-cart-demo-exe-free-full-download-torrent-crack-serial-epqxx.htm">DartCart Shopping Cart Demo .exe 1.1</a></span> <span>5.20 MB</span> <span>6996 Times</span></div>
<div><span><a title="Zen Cart PriceRunner.com Data Feed 8.7.4" href="http://www.rapidsharemegaupload.com/zen-cart-pricerunnercom-data-feed-free-full-download-torrent-crack-serial-ejjce.htm">Zen Cart PriceRunner.com Data Feed 8.7.4</a></span> <span>1.45 MB</span> <span>8910 Times</span></div>
<div><span><a title="Social Bookmarks Supercharged - X-Cart Mod 3.1" href="http://www.rapidsharemegaupload.com/social-bookmarks-supercharged---x-cart-mod-free-full-download-torrent-crack-serial-ejxsd.htm">Social Bookmarks Supercharged &#8211; X-Cart Mod 3.1</a></span> <span>0.029 MB</span> <span>6072 Times</span></div>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/ecommerce/shopping-carts/magento-cart/store-manager-for-magento-cart-torrent-free-full-download-store/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kohana PHP 3.0 (KO3) Tutorial</title>
		<link>http://blog.theunical.com/php/kohana-php-3-0-ko3-tutorial-part-1-inside-dealtaker-4/</link>
		<comments>http://blog.theunical.com/php/kohana-php-3-0-ko3-tutorial-part-1-inside-dealtaker-4/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 23:51:22 +0000</pubDate>
		<dc:creator>Steven Wall</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web 3.0]]></category>

		<guid isPermaLink="false">http://blog.theunical.com/creative-website-design/web-3-0/kohana-php-3-0-ko3-tutorial-part-1-inside-dealtaker-4/</guid>
		<description><![CDATA[So you might have read my aricle on frameworks and/or my series of tutorials on Kohana PHP 2.3.x and you are wanting more. Today, I drop the old 2.3.x and bring the new and shiny! So I bring you information to get you started with Kohana PHP 3.0! Lets check to make sure we have [...]]]></description>
			<content:encoded><![CDATA[<p>So you might have read my aricle on frameworks and/or my series of tutorials on Kohana PHP 2.3.x and you are wanting more. Today, I drop the old 2.3.x and bring the new and shiny! So I bring you information to get you started with Kohana PHP 3.0!</p>
<p>Lets check to make sure we have everything needed before going on.</p>
<ul>
<li>*AMP (Apache MySQL PHP) install</li>
<li>Knowledge of PHP</li>
<li>Know what a frame work is (<a href="http://www.dealtaker.com/blog/2009/02/10/frameworks-frameworks-frameworks/">Framework Article</a>)</li>
<li>Know what MVC is (<a href="http://en.wikipedia.org/wiki/Model-view-controller">Wikipedia Entry</a>)</li>
</ul>
<p>Lets go!<br />
Download:<br />
<a href="http://dev.kohanaphp.com/projects/kohana3/files">Download the latest Kohana 3.0 PHP</a> (At the time of this writing: 3.0.1.2) and unpack it somewhere.</p>
<p>Install:<br />
Open the file we just downloaded in your favorite archive program and extract it to a temporary location. Open that temporary location and you should have a folder that is named “kohana” or something like that. Open that folder. Open a new window and open the root directory of your *AMP install. Since I’m using WAMP Server – mine is “C:\wamp\www\”. Next make a new folder in there named “mykohana3″. Copy the files from the “kohana” directory to the “mykohana3″. Make sure your *AMP installation is up and running then point your browser to “http://yourserver/mykohana3/”. You should have a screen stating that everything is “OK”.<br />
<img src="http://images.dealtaker.com/dealtaker/blog/ko3-tutorial/ko3-tut1-1.png" alt="" /></p>
<p>If everything is “OK”, then remove or rename the “install.php” file in the “mykohana3″ directory. Next open up the “example.htaccess” file and change the following line:</p>
<pre>RewriteBase /kohana/</pre>
<p>to:<br />
<code><br />
RewriteBase /mykohana3/<br />
</code></p>
<p>Save it as “.htaccess”.</p>
<p>Now open the “bootstrap.php” file located in the “application” folder and cange the following line:</p>
<pre>Kohana::init(array('base_url' =&gt; '/kohana/'));</pre>
<p>to:</p>
<pre>Kohana::init(array('base_url'  =&gt; '/mykohana3/',
                   'index_file'=&gt; ''));</pre>
<p>Save this file then refresh your browser. You should get something that reads “hello, world!” on your screen.</p>
<p>You might already notice that configuration for KO3 is a little bit more involved, editing two files instead of one, which isn’t a big deal at all.</p>
<p>Now to make our first controller! Open a new document and put the following into it:</p>
<pre>&lt;?php
defined('SYSPATH') or die('No direct script access.');

class Controller_Ko3 extends Controller
 {
    public function action_index()
     {
        $this-&gt;request-&gt;response = 'My First Kohana 3.0 Controller';
     }
 } // End</pre>
<p>Save this as “ko3.php” in the “application/classes/controller” folder. You might have noticed another difference between Kohana 2.3.x and 3.0 is the directory structure, not really all that much of difference. Now that you have it saved, point your browser to “http://yourhost/mykohana3/ko3″. You should she “My First Kohana 3.0 Controller” on your screen now.</p>
<p>Now for an explanation of the code.</p>
<pre>defined('SYSPATH') or die('No direct script access.');</pre>
<p>This line basically tells PHP not load this file directly. It can only be included from the framework.</p>
<pre>class Controller_Ko3 extends Controller</pre>
<p>This creates an controller which is a class that is extended from the Controller class that is part of the framework.</p>
<pre>public function action_index()</pre>
<p>This created a public method called “action_index”. The “action_index” method is a default action that is loaded by the framework. It’s like your index.php file so to say.</p>
<pre>$this-&gt;request-&gt;response = 'My First Kohana 3.0 Controller';</pre>
<p>This will output “My First Kohana 3.0 Controller” to the screen. This basically works like “echo”.</p>
<p>Pretty easy eh? Now if you wanted to add addition action to your controller you would add another public method that has a prefix of “action_” and the you would access via going to “http://yourserver/mykohana3/controller/action”</p>
<p>Let go ahead and add a new method to our “ko3″ controller by adding the following after the “action_index” method:</p>
<pre>    public function action_another()
     {
        $this-&gt;request-&gt;response = 'Another action';
     }</pre>
<p>Save the file and loaded up “http://yourserver/mykohana3/ko3/another” in your browser. If all goes well you should see “Another action” in your browser.</p>
<p>That was fun an all, but lets make it a little bit more dynamic!</p>
<p>Copy this code and put it after the “action_another” method:</p>
<pre>    public function action_dynamic($say)
     {
        $this-&gt;request-&gt;response = 'You said: '.$say;
     }</pre>
<p>Save this and load “http://yourserver/mykohana3/ko3/dynamic/Monkey” and you should see “You said: Monkey”</p>
<p>Untill next time, when I will go over the first part of views, happy coding!<br />
Sources used: <a href="http://kerkness.ca/wiki/doku.php">Unofficial Kohana 3 Wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.theunical.com/php/kohana-php-3-0-ko3-tutorial-part-1-inside-dealtaker-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

