<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Magento Developer&#039;s</title>
	<atom:link href="https://magentozone.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://magentozone.wordpress.com</link>
	<description>Magento Developer&#039;s Zone</description>
	<lastBuildDate>Mon, 28 Sep 2009 12:28:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<site xmlns="com-wordpress:feed-additions:1">9376239</site><cloud domain='magentozone.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://secure.gravatar.com/blavatar/20e1cf3c16d8b79cc57881db86420b9f94df472853507b691c5702e4201cf35d?s=96&#038;d=https%3A%2F%2Fs2.wp.com%2Fi%2Fwebclip.png</url>
		<title>Magento Developer&#039;s</title>
		<link>https://magentozone.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://magentozone.wordpress.com/osd.xml" title="Magento Developer&#039;s" />
	<atom:link rel='hub' href='https://magentozone.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Basic Magento Directory Overview</title>
		<link>https://magentozone.wordpress.com/2009/09/28/basic-magento-directory-overview/</link>
					<comments>https://magentozone.wordpress.com/2009/09/28/basic-magento-directory-overview/#comments</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 28 Sep 2009 12:21:48 +0000</pubDate>
				<category><![CDATA[Magento Intermidiate]]></category>
		<category><![CDATA[Directory]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=87</guid>

					<description><![CDATA[Important Paths / -Directory Root /app &#8211; This is where all the php code for the application resides /lib &#8211; The external code library. /skin &#8211; This is where css and other images reside That’s the quick overview. /app /code &#8211; Where all modules reside /design &#8211; Contains both layout xml files and template .phtml [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Important Paths</strong></p>
<p><strong>/ -Directory Root</strong></p>
<blockquote>
<p style="text-align:left;"><strong> /app</strong> &#8211; This is where all the php code for the application resides</p>
<p style="text-align:left;"><strong>/lib </strong> &#8211; The external code library.</p>
<p style="text-align:left;"><strong>/skin </strong> &#8211; This is where css and other images reside</p>
</blockquote>
<p style="text-align:left;"><strong>That’s the quick overview.</strong></p>
<p><strong>/app</strong></p>
<p><strong> /code </strong> &#8211; Where all modules reside</p>
<p><strong>/design </strong> &#8211; Contains both layout xml files and template .phtml files</p>
<p><strong>/etc </strong> &#8211; Global configuration</p>
<p><strong> Mage.php </strong> &#8211; Static class Mage, where everything is held together.</p>
<p>Before I move on to the other two directories (/lib, /skin) I’ll explain the directories in this (/app) dir.</p>
<p><strong>/app</strong></p>
<p><strong>/code</strong></p>
<p><strong> /community</strong> &#8211; Downloaded modules built by Magento community members</p>
<p><strong>/core </strong> &#8211; The core modules &#8216;out of the box&#8217; build by Magento</p>
<p><strong> /local</strong> &#8211; Any module we build ourselves</p>
<p>Within these three subdirectories we find the /Mage directory. This is where all the modules should reside. Also, upon startup Magento includes the paths</p>
<ul>
<li>/app/code/core/ and</li>
<li>/app/code/local.</li>
</ul>
<p>So, by default the system has access to those directories. Now here is the trick: If we create a module ‘RandomModule’ and within that model we create a ‘/model’ directory, we must follow a convention for every class we put inside that folder. For instance a class would be named the following:<br />
<strong>class Mage_RandomModule_Model_SomeClass extends Varien_Object { }</strong></p>
<p>With this convention we can call this class anywhere from within the application. Magento will take the name, replace underscores with forward slashes, include that file, then load the requested class, and return an instance of that class. Pretty cool.</p>
<p>As for the individual modules, you will see a directory pattern that all follow, it is pretty simple there. I have noticed that Magento likes to separate their model. For instance, there will be a directory that will ONLY contain classes/methods that query the db and return results. They follow that pretty strictly, I never see methods access db from within a model that is not dedicated to db access. They do that in their practice, we are not forced to do so, but I have tried it, it makes a lot of sense to me.</p>
<p>Thats pretty much it for the /app/code directory for now</p>
<p><strong>/app</strong></p>
<p><strong> /design</strong></p>
<p><strong> /adminhtml </strong> -Admin designs</p>
<p><strong> /frontend</strong> &#8211; Front End designs</p>
<p><strong>/default</strong> -This is the default Interface, we can create other interfaces</p>
<p><strong> /default</strong> – This is the default theme, we can also create multiple themes</p>
<p><strong> /layout </strong> – Contains all the layout xml files</p>
<p><strong>/template </strong> &#8211; Contains all the template .phtml files</p>
<p>Here, we can create multiple interfaces and themes within each interface. From the admin page in a browser, we assign a theme to each website or store. The power here is that we can create multiple themes, such as spring, christmas, or whatever, then they can be enabled and disabled by a simple click from the admin panel.</p>
<p>This interface/theme pattern is used again in our /skin directory from the root. This assures that when the administrator switches an interface or theme, the appropriate css sheets will be applied.</p>
<p>Also, very cool to me.</p>
<p>Lastly, lets overview the /skin directory from the root directory.</p>
<p><strong>/</strong></p>
<p><strong>/skin</strong></p>
<p><strong> /adminhtml </strong> &#8211; Admin styles directory</p>
<p><strong>/frontend</strong> &#8211; frontend styles directory</p>
<p><strong>/default </strong> &#8211; Our default interface</p>
<p>/<strong>default </strong> &#8211; Our default theme</p>
<p><strong> /css</strong></p>
<p><strong> /images</strong></p>
<p><strong> /js</strong></p>
<p>Notice the correlation of the /skin directory to the /app/design directory.</p>
<p>To create a new interface or theme, we MUST make a new interface or theme in both of these directories or there will be mayhem!</p>
<p>That’s the basic directory structure overview.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/28/basic-magento-directory-overview/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">87</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Models and ResourceModels</title>
		<link>https://magentozone.wordpress.com/2009/09/28/models-and-resourcemodels/</link>
					<comments>https://magentozone.wordpress.com/2009/09/28/models-and-resourcemodels/#comments</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 28 Sep 2009 12:10:44 +0000</pubDate>
				<category><![CDATA[Magento Intermidiate]]></category>
		<category><![CDATA[ResourceModels]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=85</guid>

					<description><![CDATA[AllMagento models extend the base Mage_Core_Model_Abstract class. This class helps any model save itself to the database in a straight property-to-column name manner. The model, when saving, calls up its own resource singleton and passes itself ($this) to the resource’s save method. The resource is then scripted to collect any values from the model’s internal [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>AllMagento models extend the base Mage_Core_Model_Abstract class. This class helps any model save itself to the database in a straight property-to-column name manner.<br />
The model, when saving, calls up its own resource singleton and passes itself ($this) to the resource’s save method. The resource is then scripted to collect any values from the model’s internal _data array and prepare an insert or an update statement with those values.</p>
<p>Model’s have a _getResource method which retrieves a previously setup resource.This resource is initialized by the init method using a resource name of the pattern module_name. The name portion of that pattern represents the final portion of a class name. The prefix of the class name is specified by a portion of the XML in the module’s etc/config.xml. If class names have the term Mysql4 in their names, they are generally straight model resources.</p>
<p>If the word Entity appears in the class name, then the resource is an EAV Entity. Let’s look at the Wishlist module as an example. In the config.xml of the wishlist modulewe see a resourceModel tag under themain definition of models. The value of this resourceModel tag points to another XML tag under the models tag. The class tag of this new definition specifies the class name prefix for any resource of this module. The following code shows how the sample XML file would produce a resource for the wishlist module.</p>
<blockquote><p>$wish = Mage::getResourceSingleton(’wishlist/wishlist’);<br />
echo get_class($wish);<br />
//outputs: Mage_Wishlist_Model_Mysql4_Wishlist<br />
&#8230;<br />
&lt;global&gt;<br />
&lt;models&gt;<br />
&lt;wishlist&gt;<br />
&lt;class&gt;Mage_Wishlist_Model&lt;/class&gt;<br />
&lt;resourceModel&gt;wishlist_mysql4&lt;/resourceModel&gt;<br />
&lt;/wishlist&gt;<br />
&lt;wishlist_mysql4&gt;<br />
&lt;class&gt;Mage_Wishlist_Model_Mysql4&lt;/class&gt;<br />
&lt;entities&gt;<br />
&lt;wishlist&gt;<br />
&lt;table&gt;wishlist&lt;/table&gt;<br />
&lt;/wishlist&gt;<br />
&lt;item&gt;<br />
&lt;table&gt;wishlist_item&lt;/table&gt;<br />
&lt;/item&gt;<br />
&lt;/entities&gt;<br />
&lt;/wishlist_mysql4&gt;<br />
&#8230;</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/28/models-and-resourcemodels/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">85</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Embedding HTML in the Footer</title>
		<link>https://magentozone.wordpress.com/2009/09/28/embedding-html-in-the-footer/</link>
					<comments>https://magentozone.wordpress.com/2009/09/28/embedding-html-in-the-footer/#respond</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 28 Sep 2009 11:35:41 +0000</pubDate>
				<category><![CDATA[Magento Intermidiate]]></category>
		<category><![CDATA[affiliate]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[tracking codes]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=82</guid>

					<description><![CDATA[Often online merchants need to embed code in the site footer to integrate with 3rd party services such as analytics, affiliate programs, tracking codes, etc. Instead of modifying each template manually, Magento offers a quick and simple way to introduce such 3rd party javascript code to the templates directly from the admin interface. To do [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Often online merchants need to embed code in the site footer to integrate with 3rd party services such as analytics, affiliate programs, tracking codes, etc. Instead of modifying each template manually, Magento offers a quick and simple way to introduce such 3rd party javascript code to the templates directly from the admin interface.</p>
<div style="width: 460px" class="wp-caption aligncenter"><img title="Misc Code" src="https://i0.wp.com/www.magentocommerce.com/images/uploads/Misc-HTML.jpg" alt="Misc Code" width="450" height="235" /><p class="wp-caption-text">Misc Code</p></div>
<p>To do so, locate the Miscellaneous HTML box under System&gt;Configuration&gt;General&gt;Design&gt;Footer. Paste the code directly in the box and save the data. Make sure to refresh Magento’s cache in full under System&gt;Cache Management.</p>
<p>Once completed, the embedded code will be available on your store.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/28/embedding-html-in-the-footer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">82</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>

		<media:content url="http://www.magentocommerce.com/images/uploads/Misc-HTML.jpg" medium="image">
			<media:title type="html">Misc Code</media:title>
		</media:content>
	</item>
		<item>
		<title>Resources and Database Connections</title>
		<link>https://magentozone.wordpress.com/2009/09/23/resources-and-database-connections/</link>
					<comments>https://magentozone.wordpress.com/2009/09/23/resources-and-database-connections/#respond</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Wed, 23 Sep 2009 05:09:04 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<category><![CDATA[Magento Intermidiate]]></category>
		<category><![CDATA[Database Connections]]></category>
		<category><![CDATA[Resources]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=74</guid>

					<description><![CDATA[The role of a resource in Magento is to manage database connections. Resources are defined under the global XML tag of any config.xml file. To make a new database connection you would add XML like the following to any config.xml file. Each resource has a name of the form module/name and each connection has a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The role of a resource in Magento is to manage database connections. Resources  are defined under the global XML tag of any config.xml file. To make a new  database connection you would add XML like the following to any config.xml file.  Each resource has a name of the form module/name and each connection has a  name. Connection names are generally of the pattern</p>
<ul>
<li>module_read,</li>
<li>module_write,</li>
<li>or module_setup.</li>
</ul>
<p>&lt;resources&gt;<br />
&lt;default_setup&gt;<br />
&lt;connection&gt;<br />
&lt;host&gt;localhost&lt;/host&gt;<br />
&lt;username&gt;&lt;/username&gt;<br />
&lt;password&gt;&lt;/password&gt;</p>
<p>&lt;dbname&gt;magento&lt;/dbname&gt;<br />
&lt;model&gt;mysql4&lt;/model&gt;<br />
&lt;initStatements&gt;SET NAMES utf8&lt;/initStatements&gt;<br />
&lt;type&gt;pdo_mysql&lt;/type&gt;<br />
&lt;active&gt;1&lt;/active&gt;<br />
&lt;/connection&gt;<br />
&lt;/default_setup&gt;<br />
&#8230;.<br />
The format should be mostly self explanatory, most of these values end up being passed to the Zend_Db_Adapter_Abstract class. The initStatements tag is executed upon every connection to the database server. The model tag seems unnecessary, perhaps it was part of an idea that didn’t pan-out completely. The type tag refers to one of two connection types defined in the global app/etc/config.xml file. Only pdo_mysql and mysqli are implemented at the moment.</p>
<p>To retrieve a Magento database connection we must first get a resource. If you require a generic database handle, you can use the name core/resource for the resource  name, and core_write for the connection name. The Mage::getSingleton method keeps track of all classes loaded through it as singletons and returns a previously initialized object if the name matches. Each module may have its own database settings &#8211; usernames and passwords &#8211; or it might even be connecting to a separate database server, so be sure to use the most appropriate resource name when you can. In a default setup, all of Magento’s connections use the settings of default_setup, default_write, or default_read.</p>
<p><em>$write = Mage::getSingleton(’core/resource’)<br />
-&gt;getConnection(’core_write’);<br />
if ($write instanceof Zend_Db_Adapter_Abstract) {<br />
echo get_class($write);<br />
}<br />
//outputs: Varien_Db_Adapter_Pdo_Mysql</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/23/resources-and-database-connections/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">74</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Database Design</title>
		<link>https://magentozone.wordpress.com/2009/09/23/database-design/</link>
					<comments>https://magentozone.wordpress.com/2009/09/23/database-design/#comments</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Wed, 23 Sep 2009 05:04:36 +0000</pubDate>
				<category><![CDATA[Magento Intermidiate]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=71</guid>

					<description><![CDATA[Magento’s database design is one of its most controversial aspects. Key data aremodeled using the Entity Attribute Value method (EAV). Utilizing an EAVmodeling pattern allows for unlimited attributes on any product, category, customer, or order, but EAV also depletes a programmer’s ability to write ad-hoc queries against the data. Before we delve deep intoMagento’s database [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Magento’s database design is one of its most controversial aspects. Key data aremodeled using the Entity Attribute Value method (EAV). Utilizing an EAVmodeling pattern allows for unlimited attributes on any product, category, customer, or order, but EAV also depletes a programmer’s ability to write ad-hoc queries against the data. Before we delve deep intoMagento’s database design, we will look at the basic way of communicating with the database &#8211; the resource.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/23/database-design/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">71</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Actions</title>
		<link>https://magentozone.wordpress.com/2009/09/14/actions/</link>
					<comments>https://magentozone.wordpress.com/2009/09/14/actions/#comments</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:51:04 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=61</guid>

					<description><![CDATA[Actions are classes that extend Mage_Core_Controller_Front_Action which, in turn, extends Mage_Core_Controller_Varien_Action. Actions also have a dispatch method, but this method dispatches the request to an action method. Action methods have the word “Action” appended to their names to distinguish them from normal class methods. Appending a word to the method name also helps to stop [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Actions are classes that extend Mage_Core_Controller_Front_Action which, in turn, extends Mage_Core_Controller_Varien_Action. Actions also have a dispatch method, but this method dispatches the request to an action method. Action methods have the word “Action” appended to their names to distinguish them from normal class methods. Appending a word to the method name also helps to stop people from running unexpected methods from the URL. Imagine someone requesting example.com/index.php/customer/account/__destruct. If the system did not protect action names, the resulting method call would look something like this:</p>
<p>$controllerInstance-&gt;__destruct();<br />
Something like this could potentially be a vector to open up attacks on your site.</p>
<p>But, I digress,Magento does protect the action method names by appending Action to any value taken from the URL, so this argument is purely academic.<br />
During the dispatch event, the preDispatch method is called, and following the actual execution of the action method, the postDispatch method is called. By default, the postDispatch will save the current URL into the user’s session as the last URL visited.<br />
Action and action methods arewhere the primary business logic for a request happens. Typically the action methods will load a model or two based on IDs or other URL parameters, kick off a few methods of these models, and then run the layout sequence. Having the action methods be responsible for outputting their own layout is an important issue to understand. This makes it more difficult to integrate with other systems, as you cannot as easily supplant your own layout or templating methods after executing the business logic. Also, it does not allow for any “post dispatch” logic to make any alterations to the output.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/14/actions/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">61</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Routers</title>
		<link>https://magentozone.wordpress.com/2009/09/14/routers/</link>
					<comments>https://magentozone.wordpress.com/2009/09/14/routers/#respond</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:49:37 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<category><![CDATA[Routers]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=59</guid>

					<description><![CDATA[Once a router has found a match of the first part of the URL to a defined frontName value from the XML, this value gets directly translated into a module name with a little adjustment to the capitalization of the words. The controller and the action names are taken from the URL as diagrammed above. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Once a router has found a match of the first part of the URL to a defined frontName value from the XML, this value gets directly translated into a module name with a little adjustment to the capitalization of the words. The controller and the action names are taken from the URL as diagrammed above. If any value is missing, the defaults are taken from the core XML config via the getDefault method. When specifying a URL, you don’t always specify exactly which module, controller, and action you want to run. A request to example.com/customer/ does not fully specify which controller of the customer module, nor which action to run. If any indicators of module, controller, or action are missing from the URL the values are read from the default tag under web, then under front (default/web/front).</p>
<p>By default, the CMS supplies these XML values it its own config.xml file. You can change these values in the administrative back-end under the menu items System &gt; Configuration &gt; Web. If the XML values happen to be completely missing, the fall-back values of core, index, and again, index are used for the values of module, controller, and action, respectively.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/14/routers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">59</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>The Front Controller</title>
		<link>https://magentozone.wordpress.com/2009/09/14/the-front-controller/</link>
					<comments>https://magentozone.wordpress.com/2009/09/14/the-front-controller/#respond</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:48:44 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=57</guid>

					<description><![CDATA[From here, the responsibility transfers to the front controller. The front controller has an array of “routers” that it uses to decide which module the URL should trigger. This correlation between URL and module name is defined in the config.xml files. The available routers are: • Standard • Admin • Default (only used for 404s) [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>From here, the responsibility transfers to the front controller. The front controller has an array of “routers” that it uses to decide which module the URL should trigger. This correlation between URL and module name is defined in the config.xml files. The available routers are:<br />
• Standard<br />
• Admin<br />
• Default (only used for 404s)<br />
The definition of a match between a router and amodule looks like this for the Customer module:</p>
<p>&lt;routers&gt;<br />
&lt;customer&gt;<br />
&lt;use&gt;standard&lt;/use&gt;</p>
<p>&lt;args&gt;<br />
&lt;module&gt;Mage_Customer&lt;/module&gt;<br />
&lt;frontName&gt;customer&lt;/frontName&gt;<br />
&lt;/args&gt;<br />
&lt;/customer&gt;<br />
&lt;/routers&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/14/the-front-controller/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">57</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>The AppModel</title>
		<link>https://magentozone.wordpress.com/2009/09/14/the-appmodel/</link>
					<comments>https://magentozone.wordpress.com/2009/09/14/the-appmodel/#respond</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:47:56 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=55</guid>

					<description><![CDATA[The “App” model is the main kickoff point for the execution path of any request to Magento. Although the Mage class is important for loading all sorts of classes and configurations, the execution path starts and ends inside the App. The App is responsible for: • Initializing the system cache • Instantiating the default front [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The “App” model is the main kickoff point for the execution path of any request to Magento. Although the Mage class is important for loading all sorts of classes and configurations, the execution path starts and ends inside the App. The App is responsible for:<br />
• Initializing the system cache<br />
• Instantiating the default front controller (Mage_Core_Controller_Varien_Front)<br />
• Instantiating the default request object (Mage_Core_Controller_Request_Http)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/14/the-appmodel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">55</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>
	</item>
		<item>
		<title>Magento’s Request Cycle</title>
		<link>https://magentozone.wordpress.com/2009/09/14/magento%e2%80%99s-request-cycle/</link>
					<comments>https://magentozone.wordpress.com/2009/09/14/magento%e2%80%99s-request-cycle/#comments</comments>
		
		<dc:creator><![CDATA[Md. Shafiqul Islam]]></dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:45:10 +0000</pubDate>
				<category><![CDATA[Magento Basic]]></category>
		<guid isPermaLink="false">http://magentozone.wordpress.com/?p=49</guid>

					<description><![CDATA[Now we will discuss how a browser request to a URL gets translated into module execution. Generally speaking, any URL can be deconstructed like this: Magento’s request cycle can be a little confusing to trace through. This is mostly due to the hierarchical nature of the file nesting (routers located under controllers) and the use [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Now we will discuss how a browser request to a URL gets translated into module execution. Generally speaking, any URL can be deconstructed like this:<br />
<img data-attachment-id="50" data-permalink="https://magentozone.wordpress.com/2009/09/14/magento%e2%80%99s-request-cycle/request_url/" data-orig-file="https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg" data-orig-size="575,260" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="request_url" data-image-description="" data-image-caption="" data-large-file="https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg?w=455" class="aligncenter size-full wp-image-50" title="request_url" src="https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg?w=455&#038;h=205" alt="request_url" width="455" height="205" srcset="https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg?w=455&amp;h=206 455w, https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg?w=150&amp;h=68 150w, https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg?w=300&amp;h=136 300w, https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg 575w" sizes="(max-width: 455px) 100vw, 455px" /><br />
Magento’s request cycle can be a little confusing to trace through. This is mostly due to the hierarchical nature of the file nesting (routers located under controllers) and the use of the term “dispatch” to mean 3 different things. The front controller “dispatches” the request to its internal list of “routers” and determines if any of the routers “match()” the request’s parameters. If so, then a new MVC Controller (not front-controller) is created from the matching module and, again, the request is “dispatched” to this controller object. The final MVC-style controller is technically a “Front Action”, it houses a number of methods that define the business logic tier.<br />
This new Action object dynamically calls one of its own action methods and marks the request as being “dispatched” (i.e. finished). All these uses of “dispatch” are still different from the event mechanism’s dispatchEvent() method.</p>
<p><img data-attachment-id="52" data-permalink="https://magentozone.wordpress.com/2009/09/14/magento%e2%80%99s-request-cycle/imgurl/" data-orig-file="https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg" data-orig-size="406,287" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="imgurl" data-image-description="" data-image-caption="" data-large-file="https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg?w=406" class="aligncenter size-full wp-image-52" title="imgurl" src="https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg?w=455" alt="imgurl"   srcset="https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg 406w, https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg?w=150&amp;h=106 150w, https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg?w=300&amp;h=212 300w" sizes="(max-width: 406px) 100vw, 406px" />This directory listing shows all the files (except base Zend Framework files) that<br />
are involved in dispatching a request to the proper module. The directory layout has<br />
nothing to do with the class hierarchy, it is simply a product of class naming and<br />
PHP’s autoloading capabilities.<br />
Core<br />
|- Controller/<br />
| |- Front/<br />
| | |- Action.php<br />
| | ‘- Router.php<br />
| |- Request/<br />
| | ‘- Http.php<br />
| |- Response/<br />
| | ‘- Http.php<br />
| ‘- Varien/<br />
| |- Action.php<br />
| |- Front.php<br />
| ‘- Router/</p>
<p>| |- Abstract.php<br />
| |- Admin.php<br />
| |- Default.php<br />
| ‘- Standard.php</p>
]]></content:encoded>
					
					<wfw:commentRss>https://magentozone.wordpress.com/2009/09/14/magento%e2%80%99s-request-cycle/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">49</post-id>
		<media:content url="https://0.gravatar.com/avatar/942e2f4316ed05b3f08f514a6da95e33fa8c12e8ff1c4a65a340dee89b138ee3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafiq2410</media:title>
		</media:content>

		<media:content url="https://magentozone.wordpress.com/wp-content/uploads/2009/09/request_url.jpg" medium="image">
			<media:title type="html">request_url</media:title>
		</media:content>

		<media:content url="https://magentozone.wordpress.com/wp-content/uploads/2009/09/imgurl.jpg" medium="image">
			<media:title type="html">imgurl</media:title>
		</media:content>
	</item>
	</channel>
</rss>
