<?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>Brian Lee - 이병무</title>
	<atom:link href="http://www.bmlee.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bmlee.com</link>
	<description>Web Programmer Based in Denver Colorado</description>
	<lastBuildDate>Wed, 25 Apr 2012 07:56:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Hollywood, California</title>
		<link>http://www.bmlee.com/hollywood-california/</link>
		<comments>http://www.bmlee.com/hollywood-california/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 07:49:46 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=681</guid>
		<description><![CDATA[Hollywood, California Hollywood again in nearly 8 years&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hollywood, California<br />
Hollywood again in nearly 8 years&#8230;</p>

		<div class='et-image-slider et_sliderfx_fade et_sliderauto_true et_sliderauto_speed_8000 et_slidertype_images' id='et-image-slider907'>
			<div class='et-image-slides'>
				<div class='et-image' style='background: url(http://www.bmlee.com/wp-content/uploads/et_temp/120424-02-578363_550x366.jpg) no-repeat; width: 550px; height: 366px;'><span class='et-image-overlay'> </span></div>

		<div class='et-image' style='background: url(http://www.bmlee.com/wp-content/uploads/et_temp/120424-03-452179_550x366.jpg) no-repeat; width: 550px; height: 366px;'><span class='et-image-overlay'> </span></div>
			</div>
			
			<div class='et-image-shadow'></div>
			<div class='et-image-shadowleft'></div>
			<div class='et-image-shadowright'></div>
		</div> <!-- .et-image-slider -->
		
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/hollywood-california/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seagull, Santa Monica, California</title>
		<link>http://www.bmlee.com/seagull-santa-monica-california/</link>
		<comments>http://www.bmlee.com/seagull-santa-monica-california/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 07:38:17 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[Santa Monica]]></category>
		<category><![CDATA[Seagull]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=675</guid>
		<description><![CDATA[Seagull @ beach of Santa Monica, California It&#8217;s usually tough to take photos of a flying bird, especially with lens I have, but I was lucky that seagull was flying right above my head.]]></description>
			<content:encoded><![CDATA[<p>Seagull @ beach of Santa Monica, California</p>
<p>It&#8217;s usually tough to take photos of a flying bird, especially with lens I have, but I was lucky that seagull was flying right above my head.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/seagull-santa-monica-california/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>마젠토 콜렉션(Collection) 사용하기</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%bd%9c%eb%a0%89%ec%85%98collection-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%bd%9c%eb%a0%89%ec%85%98collection-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 07:21:42 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[getModel()]]></category>
		<category><![CDATA[getResourceModel()]]></category>
		<category><![CDATA[마젠토 중급]]></category>
		<category><![CDATA[콜렉션]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=671</guid>
		<description><![CDATA[마젠토 콜렉션(Collection)은 한번에 여러개의 객체(product, customer, category 등등)를 불러오는데 사용됩니다. 예를들어 카테고리 페이지에있는 모든 제품을 불러온다던지, 모든 커스토머(customer) 정보를 불러올때 유용하게 쓰입니다. 아래와 같은 php코드를 루트에 올려놓고 시험해 보세요. 1234567891011121314require_once &#34;app/Mage.php&#34;; Mage::app&#40;&#41;; // 모든 제품 불러오기 $collection = Mage::getResourceModel&#40;'catalog/product_collection'&#41;; // 첫번째 방법 $collection = Mage::getModel&#40;'catalog/product'&#41;-&#62;getCollection&#40;&#41;; // 두번째 방법 // 모든 제품이 필요하지는 않으므로 5개만 로드합니다. [...]]]></description>
			<content:encoded><![CDATA[<p>마젠토 콜렉션(Collection)은 한번에 여러개의 객체(product, customer, category 등등)를 불러오는데 사용됩니다.<br />
예를들어 카테고리 페이지에있는 모든 제품을 불러온다던지, 모든 커스토머(customer) 정보를 불러올때 유용하게 쓰입니다.</p>
<p>아래와 같은 php코드를 루트에 올려놓고 시험해 보세요.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">&quot;app/Mage.php&quot;</span><span style="color: #339933;">;</span><br />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 모든 제품 불러오기</span><br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 첫번째 방법</span><br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCollection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 두번째 방법</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 모든 제품이 필요하지는 않으므로 5개만 로드합니다.</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 콜렉션을 불러옵니다.</span><br />
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// 제품의 모든 데이터 출력</span><br />
&nbsp; &nbsp; <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>위의 코드를 실행해 보시면 제품의 모든 데이터가 출력이 됩니다.<br />
콜렉션 객체를 불러올때 두가지 방법을 보여드렸는데 첫번째 방법과 두번째 방법의 결과가 약간은 틀린걸 확인할수 있습니다.</p>
<p>첫번째 방법은 최소한의 데이터만 로드함으로써 메모리의 사용을 최대한 줄이는 방법이고,<br />
<strong>$collection = Mage::getResourceModel(&#8216;catalog/product_collection&#8217;);</strong></p>
<p>두번째 방법은 제품의 모든 데이터를 불러옴으로써 메모리 사용에 상관없이 콜렉션을 사용하는 방법입니다.<br />
<strong>$collection = Mage::getModel(&#8216;catalog/product&#8217;)->getCollection();</strong></p>
<p>개인적으로 메모리 사용이 적은 첫번째 방법을 선호합니다.<br />
그렇다고 필요한 제품의 데이터를 불러오지 못하는것은 아닙니다.<br />
아래와 같이 <strong>addAttributeToSelect()</strong>을 사용해서 필요한 Attribute을 불러올수 있습니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">&quot;app/Mage.php&quot;</span><span style="color: #339933;">;</span><br />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 아래처럼 원하는 attribute을 콜렉션에 포함시킬수 있습니다.</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToSelect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'price'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToSelect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'weight'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 모든 제품이 필요하지는 않으므로 5개만 로드합니다.</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 콜렉션을 불러옵니다.</span><br />
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// 제품의 모든 데이터 출력</span><br />
&nbsp; &nbsp; <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Attribute으로 불러올 데이터를 <strong>addAttributeToFilter()</strong>를 사용해서 걸러낼수도 있습니다.<br />
예를들어 id가 10보다 커야 한다던지 sku가 &#8216;abcd&#8217;를 포함해야 하는경우 아래와 같이 콜렉션을 설정할수 있습니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">&quot;app/Mage.php&quot;</span><span style="color: #339933;">;</span><br />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_collection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// 아래처럼 원하는 attribute을 콜렉션에 포함시킬수 있습니다.</span><br />
<span style="color: #666666; font-style: italic;">// product entity_id가 10보다 커야하는경우</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'entity_id'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'gt'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// price가 $100 이하여야 하는 경우</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'price'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lt'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// sku가 'abcd'를 포함해야 하는 경우</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sku'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'like'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'%abcd%'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// sku가 'zzz1'이 아니어야 하는 경우</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sku'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'neq'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'zzz1'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// description이 아무것도 없는 제품을 포함하는 경우</span><br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'null'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 콜렉션을 불러옵니다.</span><br />
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// 제품의 모든 데이터 출력</span><br />
&nbsp; &nbsp; <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>이런식으로 addAttributeToSelect()나 addAttributeToFilter()를 사용해서 원하는 attribute을 콜렉션에 포함시키거나 필터를 적용해서 걸러낼수 있습니다.<br />
콜렉션의 사용은 한번에 많은 객체를 불러와야 할때, 또 한번에 여러 객체의 정보를 수정해야할때 유용하게 쓰입니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%bd%9c%eb%a0%89%ec%85%98collection-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>네이버 미국,캐나다 지역 키워드광고 대행</title>
		<link>http://www.bmlee.com/%eb%84%a4%ec%9d%b4%eb%b2%84-%eb%af%b8%ec%a3%bc-%eb%af%b8%ea%b5%ad-%ec%ba%90%eb%82%98%eb%8b%a4-%ec%a7%80%ec%97%ad-%ed%82%a4%ec%9b%8c%eb%93%9c%ea%b4%91%ea%b3%a0-%eb%8c%80%ed%96%89/</link>
		<comments>http://www.bmlee.com/%eb%84%a4%ec%9d%b4%eb%b2%84-%eb%af%b8%ec%a3%bc-%eb%af%b8%ea%b5%ad-%ec%ba%90%eb%82%98%eb%8b%a4-%ec%a7%80%ec%97%ad-%ed%82%a4%ec%9b%8c%eb%93%9c%ea%b4%91%ea%b3%a0-%eb%8c%80%ed%96%89/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 04:53:02 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=619</guid>
		<description><![CDATA[네이버 미국,캐나다 지역 키워드광고 대행 네이버가 미주(미국,캐나다)지역으로 영역을 넓히면서(http://us.naver.com) 광고영업 또한 확장하고 있습니다. 네이버의 주된 광고상품은 크게 디스플레이 광고(배너 광고)와 키워드 광고가 있는데 이번에 제가 네이버 미주지역의 키워드 광고 대행을 맡았습니다. 미주지역에서의 네이버 광고는 크게 디스플레이광고와 키워드광고로 나뉠수 있는데요, 디스플레이광고는 주로 가격이 비싼 배너광고이고, 키워드광고는 키워드 검색결과내에 보여지는 좀더 저렴한(월$100부터) 광고입니다. 미주지역의 키워드 광고는 한국내 [...]]]></description>
			<content:encoded><![CDATA[<h4 class="content">네이버 미국,캐나다 지역 키워드광고 대행</h4>
<p>네이버가 미주(미국,캐나다)지역으로 영역을 넓히면서(http://us.naver.com) 광고영업 또한 확장하고 있습니다.<br />
네이버의 주된 광고상품은 크게 디스플레이 광고(배너 광고)와 키워드 광고가 있는데 이번에 제가 네이버 미주지역의 키워드 광고 대행을 맡았습니다.</p>
<p>미주지역에서의 네이버 광고는 크게 <strong>디스플레이광고</strong>와 <strong>키워드광고</strong>로 나뉠수 있는데요,<br />
디스플레이광고는 주로 가격이 비싼 배너광고이고, 키워드광고는 키워드 검색결과내에 보여지는 좀더 저렴한(월$100부터) 광고입니다.<br />
미주지역의 키워드 광고는 한국내 키워드광고 같은 PPC(Pay Per Click)나 CPC(Cost Per Click)이 아닌 CPM(Cost Per Milli)의 성격을 가집니다.<br />
쉽게말해 한국에서의 키워드 광고는 사용자가 클릭하는 숫자 만큼 지불해야하지만, 미주지역의 키워드 광고는 사용자의 클릭수와 관계없이 정해진 금액으로 일정한 광고위치를 구매하는것입니다.<br />
NHN USA Inc. 관계자에 따르면 아직 시작하는 단계이기 때문에 단순한 모델로 시작한다고 하는데요, 결국엔 미주지역의 키워드 광고도 한국의 키워드 광고처럼 PPC/CPC 모델로 바뀐다고 합니다.</p>
<p>미주지역 네이버 키워드 광고에 대한 자세한 내용 및 문의는 아래 링크를 참조해 주시기 바랍니다.<br />
<a href="http://www.kncolorado.com/네이버-미주-키워드광고-문의" target="_blank">네이버 미주 키워드 광고 문의</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%84%a4%ec%9d%b4%eb%b2%84-%eb%af%b8%ec%a3%bc-%eb%af%b8%ea%b5%ad-%ec%ba%90%eb%82%98%eb%8b%a4-%ec%a7%80%ec%97%ad-%ed%82%a4%ec%9b%8c%eb%93%9c%ea%b4%91%ea%b3%a0-%eb%8c%80%ed%96%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Certified Developer PLUS</title>
		<link>http://www.bmlee.com/magento-certified-developer-plus/</link>
		<comments>http://www.bmlee.com/magento-certified-developer-plus/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 07:47:07 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Magento Certified Developer PLUS]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=506</guid>
		<description><![CDATA[Magento Certified Developer PLUS Magento Certified Developer Plus I just passed the Magento Certified Developer Plus exam. It&#8217;s wasn&#8217;t easy but I would say it wasn&#8217;t too difficult either. Probably that&#8217;s because I&#8217;ve seen a lot of postings and comments on other websites and blogs about Certified Developer PLUS exam being too intense, and to [...]]]></description>
			<content:encoded><![CDATA[<h4 class="content">Magento Certified Developer PLUS</h4>
<div id="attachment_556" class="wp-caption alignleft" style="width: 138px; padding: 10px; margin: 0 20px 0 0;"><a href="http://www.magentocommerce.com/certification/directory/dev/34514/" target="_blank"><img src="http://www.bmlee.com/wp-content/uploads/2011/12/0341_CertificationLogos_DeveloperPlus-128.png" alt="Magento Certified Developer Plus" title="Magento Certified Developer Plus" width="128" height="229" class="size-full" /></a>
<p class="wp-caption-text">Magento Certified Developer Plus</p>
</div>
<p>I just passed the Magento Certified Developer Plus exam.<br />
It&#8217;s wasn&#8217;t easy but I would say it wasn&#8217;t too difficult either.<br />
Probably that&#8217;s because I&#8217;ve seen a lot of postings and comments on other websites and blogs about Certified Developer PLUS exam being too intense, and to be honest, I didn&#8217;t feel like I was ready and I thought I would fail the exam even before I take it.</p>
<p>Overall, if you&#8217;re familiar with the Magento fundamentals, have good enough experience on Magento and confident about custom module/extension development, you don&#8217;t have to worry about the exam.<br />
If you don&#8217;t have much experience with Magento, but you studied the <a href="http://info.magento.com/rs/magentocommerce/images/Certification-Study-Guide-MCD-Plus-v1.pdf" target="_blank">Magento Certification Study Guide</a> thoroughly, you might be ok, but at the same time, you could feel that exam questions are tricky and confusing.<br />
Other than that, don&#8217;t take it until you feel comfortable with Magento.</p>
<p>P.S<br />
I have 3+ years of experience with Magento from version 1.3 to 1.11, and have worked on more than 25+ Magento websites.</p>
<p>For more information about the certification: <a href="https://www.magentocommerce.com/certification/" target="_blank">Magento Developer Certification</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/magento-certified-developer-plus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>준비하는 자가 승리한다</title>
		<link>http://www.bmlee.com/%ec%a4%80%eb%b9%84%ed%95%98%eb%8a%94-%ec%9e%90%ea%b0%80-%ec%8a%b9%eb%a6%ac%ed%95%9c%eb%8b%a4/</link>
		<comments>http://www.bmlee.com/%ec%a4%80%eb%b9%84%ed%95%98%eb%8a%94-%ec%9e%90%ea%b0%80-%ec%8a%b9%eb%a6%ac%ed%95%9c%eb%8b%a4/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:10:43 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Everything Else]]></category>
		<category><![CDATA[김시습]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=355</guid>
		<description><![CDATA[준비하는 자가 승리한다 불길이 무섭게 타올라도 끄는 방법이 있고 물결이 하늘을 뒤덮어도 막는 방법이 있으니 화는 위험한 때 있는 것이 아니고 편안할 때 있으며 복은 경사 때 있는 것이 아니라 근심할 때 있는 것이다. - 매월당 김시습 -]]></description>
			<content:encoded><![CDATA[<p>준비하는 자가 승리한다<br />
불길이 무섭게 타올라도 끄는 방법이 있고<br />
물결이 하늘을 뒤덮어도 막는 방법이 있으니</p>
<p>화는 위험한 때 있는 것이 아니고<br />
편안할 때 있으며</p>
<p>복은 경사 때 있는 것이 아니라<br />
근심할 때 있는 것이다.</p>
<p>- 매월당 김시습 -</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%ec%a4%80%eb%b9%84%ed%95%98%eb%8a%94-%ec%9e%90%ea%b0%80-%ec%8a%b9%eb%a6%ac%ed%95%9c%eb%8b%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>마젠토의 싱글턴 패턴</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%8b%b1%ea%b8%80%ed%84%b4-%ed%8c%a8%ed%84%b4/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%8b%b1%ea%b8%80%ed%84%b4-%ed%8c%a8%ed%84%b4/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 08:10:30 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[getModel()]]></category>
		<category><![CDATA[getSingleton()]]></category>
		<category><![CDATA[마젠토 중급]]></category>
		<category><![CDATA[싱글턴 패턴]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=335</guid>
		<description><![CDATA[마젠토의 싱글턴 패턴 getSingleton()과 getModel()의 차이점과 사용법 싱글턴 패턴은 하나의 클래스에서 하나의 인스턴스만을 생성하도록 하는 소프트웨어 디자인 패턴중의 하나입니다. 마젠토에서 이런 싱글턴 패턴의 사용은 객체의 인스턴스 생성 남용을 막으려는 방법이고 결과적으로 메모리의 사용을 최소화하기 위한 방책입니다. 예를 들자면 데이터베이스 인스턴스가 가장 대표적인 예입니다. 페이지가 로딩되면서 여러번의 데이터베이스 사용이 필요할수 있지만 데이터베이스 연결 인스턴스는 하나면 족합니다. [...]]]></description>
			<content:encoded><![CDATA[<h4 class="content">마젠토의 싱글턴 패턴<br />
getSingleton()과 getModel()의 차이점과 사용법</h4>
<p>싱글턴 패턴은 하나의 클래스에서 하나의 인스턴스만을 생성하도록 하는 소프트웨어 디자인 패턴중의 하나입니다.<br />
마젠토에서 이런 싱글턴 패턴의 사용은 객체의 인스턴스 생성 남용을 막으려는 방법이고 결과적으로 메모리의 사용을 최소화하기 위한 방책입니다.</p>
<p>예를 들자면 데이터베이스 인스턴스가 가장 대표적인 예입니다.<br />
페이지가 로딩되면서 여러번의 데이터베이스 사용이 필요할수 있지만 데이터베이스 연결 인스턴스는 하나면 족합니다.<br />
데이터베이스를 사용할때마다 똑같은 데이터베이스에 연결시키는 인스턴스를 여러번 생성하게되면 불필요한 리소스를 낭비하게 됩니다.<br />
이럴때 이미 생성된 데이터베이스 인스턴스를 재활용하고자 하는것이 기본적인 싱글턴 패턴의 컨셉트 입니다.</p>
<p>마젠토에서 객체 인스턴스를 생성하는 방법은 getSingleton(&#8216;모델/클래스&#8217;); 또는 getModel(&#8216;모델/클래스&#8217;); 이 사용되는데 getSingleton(&#8216;모델/클래스&#8217;)의 경우 인스턴스가 이미 생성되어있지 않은경우 getModel(&#8216;모델/클래스&#8217;) method를 호출하게 됩니다.<br />
아래는 app/Mage.php의 getSingleton() 와 getMethod() method입니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// getSingleton</span><br />
<span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> getSingleton<span style="color: #009900;">&#40;</span><span style="color: #000088;">$modelClass</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span> <span style="color: #000088;">$arguments</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$registryKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'_singleton/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$modelClass</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">registry</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$registryKey</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$registryKey</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$modelClass</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arguments</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">registry</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$registryKey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// getModel</span><br />
<span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> getModel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$modelClass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arguments</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">getConfig</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getModelInstance</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$modelClass</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arguments</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>getModel()의 사용예</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// $productId를 이용한 product 객체의 인스턴스 생성, </span><br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$productId</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// product의 이름 가져오기</span><br />
<span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>getSingleton()의 사용예</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// customer session 불러오기</span><br />
<span style="color: #000088;">$customerSession</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// customer 인스턴스 불러오기</span><br />
<span style="color: #000088;">$customer</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$customerSession</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCustomer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>getModel()과 getSingleton()의 비교</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// getSingleton()을 사용하여 product 객체를 product_id 34로 로딩</span><br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">34</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 34 가 출력됨</span><br />
<br />
<span style="color: #666666; font-style: italic;">// getModel()을 사용하여 product 객체를 로딩</span><br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 아무것도 출력되지 않음</span><br />
<span style="color: #666666; font-style: italic;">// getModel()은 새로운 객체를 생성하기 때문에 아무것도 출력되지 않음</span><br />
<br />
<span style="color: #666666; font-style: italic;">// getSingleton()을 사용하여 이미 존재하는 product 객체를 로딩</span><br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 34 가 출력됨</span></div></td></tr></tbody></table></div>
<p>line 11의 경우, getSingleton()은 이미 생성된 객체를 불러오기 때문에 굳이 product_id 를 로딩하지 않아도 위의 line 2에서 생성된 객체를 자동으로 로딩하게 됩니다.<br />
그래서 line 12에서는 기존에 로딩되어있던 product 객체의 id를 출력하게 됩니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%8b%b1%ea%b8%80%ed%84%b4-%ed%8c%a8%ed%84%b4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>마젠토의 장점과 단점</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%9e%a5%ec%a0%90%ea%b3%bc-%eb%8b%a8%ec%a0%90/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%9e%a5%ec%a0%90%ea%b3%bc-%eb%8b%a8%ec%a0%90/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 08:15:58 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[Zen Cart]]></category>
		<category><![CDATA[마젠토 초급]]></category>
		<category><![CDATA[쇼핑몰 플랫폼]]></category>
		<category><![CDATA[오픈 소스]]></category>
		<category><![CDATA[장단점 비교]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=305</guid>
		<description><![CDATA[마젠토의 장단점 비교 마젠토의 무한한 확장성은 커다란 장점, 단점은 고성능 호스팅 환경 요구 마젠토가 현존하는 최고의 쇼핑몰 플랫폼인것은 알만한 사람들은 이미 다 알고 있습니다. 저도 처음 마젠토를 접했던 2008년에는 긴가민가 했는데 여러 플랫폼을 직접 접해본 결과 확실히 마젠토가 우월함을 느낄수 있었습니다. 다른 쇼핑몰 플랫폼들은 예전부터 널리 사용되어 왔지만 2007년에 나와 2008년부터 유명세를 타기 시작한 마젠토는 [...]]]></description>
			<content:encoded><![CDATA[<h4 class="content">마젠토의 장단점 비교<br />
마젠토의 무한한 확장성은 커다란 장점,<br />
단점은 고성능 호스팅 환경 요구</h4>
<p>마젠토가 현존하는 최고의 쇼핑몰 플랫폼인것은 알만한 사람들은 이미 다 알고 있습니다.<br />
저도 처음 마젠토를 접했던 2008년에는 긴가민가 했는데 여러 플랫폼을 직접 접해본 결과 확실히 마젠토가 우월함을 느낄수 있었습니다.</p>
<p>다른 쇼핑몰 플랫폼들은 예전부터 널리 사용되어 왔지만 2007년에 나와 2008년부터 유명세를 타기 시작한 마젠토는 osCommerce(오에스커머스)나 Zen Cart(젠카트)같은 기존의 강자들을 제처버리고 우위를 차지하기 시작했습니다.<br />
현재도 계속 진행형입니다.<br />
아래 그래프는 Google Trends에서 가져온 스냅샷입니다.<br />
물론 Google Trends가 절대적 평가는 아니지만 대체적인 흐름은 비슷합니다.</p>
<p><a href="http://www.bmlee.com/wp-content/uploads/2012/01/GoogleTrends.png" rel="gallery" class="fancybox"><img src="http://www.bmlee.com/wp-content/uploads/2012/01/GoogleTrends.png" alt="마젠토 vs osCommerce vs Zen Cart" title="GoogleTrends" width="550" height="430" class="aligncenter size-full wp-image-306" /></a></p>
<p>이런 마젠토에 장점이 있는가 하면 단점도 있기에 한번 살펴보겠습니다.</p>
<h4 class="content" style="font-size: 18pt; font-weight: bold; padding: 0; margin: 20px 0 10px 0;">마젠토의 장점:</h4>
<p><strong>1. 무한한 확장성을 가진 오픈소스</strong><br />
마젠토는 오픈소스입니다.<br />
게다가 강력한 <a href="http://framework.zend.com/" target="_blank">젠드 프레임워크</a>에 기반해 만들어진 마젠토는 MVC(Model, View, Controller) 패턴을 사용하고 있어 php로 프로그래밍을 할수 있는 개발자라면 얼마든지 모듈이나 익스텐션을 만들수 있습니다.<br />
그리고 코어소스는 물론이고 다수의 익스텐션들 또한 공개되어 있어 쇼핑몰을 수정하고 개편하는데 상당히 수월합니다.</p>
<p><strong>2. 강력한 기능의 쇼핑몰 플랫폼</strong><br />
마젠토는 기본적으로 사용자가 기대하고 있는 많은 기능들이 이미 기본으로 탑재되어 있습니다.<br />
프로모션이나 마케팅 도구는 물론이고 Google Base, Google Analytics, Google Checkout등등 3rd party 서비스들 또한 쉽게 사용할수 있도록 개발되어 있습니다.<br />
물론 페이팔이나 미국에서 많이 사용되고 있는 Authorize.net같은 페이먼트 서비스도 기본적으로 구비되어 있습니다.<br />
작년에 eBay가 마젠토를 사들인것은 더욱더 고무적인 일입니다.</p>
<p><strong>3. 풍부한 관련 자료</strong><br />
한글로된 자료는 아직까지 많이 부족한 편이지만 다른 언어로는 상당히 많은 자료가 존재합니다.<br />
특히 마젠토 홈페이지의 기본정보 Wiki나 Knowledge Base는 물론 커뮤니티가 상당히 커서 다른 플랫폼에 비해 많은 정보가 있습니다.<br />
영어가 가능한 사람들은 질문을 하고 답변을 얻는데 그리 어렵지 않으리라 생각됩니다.<br />
그리고 수많은 템플렛과 익스텐션, 모듈등이 이미 개발되어 있어서 새로운 기능을 추가하는데 큰 불편함이 없습니다.</p>
<h4 class="content" style="font-size: 18pt; font-weight: bold; padding: 0; margin: 20px 0 10px 0;">마젠토의 단점:</h4>
<p><strong>1. 초보자가 사용하기에 복잡한 구조</strong><br />
장점으로 꼽히는 젠드 프레임워크 기반의 MVC 패턴은 실력있는 개발자에겐 어마어마한 장점으로 다가올수 있지만, 반대로 초보자에게는 새로운 기능을 추가하거나 기존의 기능을 수정하는데 어려움을 줄수 있습니다.<br />
기본적으로 탑재되어 있는 기능들도 많기 때문에 익숙해지는데 시간이 조금 걸립니다.</p>
<p><strong>2. 고성능 서버 환경 요구</strong><br />
마젠토의 단점중 하나가 느린 스피드(많은 하드웨어 리소스를 요구) 입니다.<br />
물론 고급 서버에 호스팅을 하고 있으면 자연히 해결될수 있는 부분이지만 소규모 온라인 쇼핑몰을 운영하는 사람들에겐 부담이 될수 있습니다.<br />
기업수준의 쇼핑몰을 운영하는 사람은 부담없이 마젠토를 선택할수 있어도 매출이 적은 쇼핑몰 운영자는 값비싼 호스팅을 유지하거나 저렴한 호스팅에서 느린 사이트를 운영하는 수 밖에 없습니다.</p>
<p><strong>3. 아직까지는 값비싼 개발자/개발업체</strong><br />
저도 미국에서 마젠토 개발자로 일하고 있지만 현재 일하고 있는 회사에서도 마젠토 개발자를 구하는게 쉽지 않습니다.<br />
경험있는 개발자를 구하는게 쉽지않고 실력있는 마젠토 개발자는 더더욱 구하기 어렵습니다.<br />
이것은 마젠토 사이트를 구축하는데 드는 비용이 싸지 않다는것을 반증합니다.<br />
마젠토 홈페이지에는 <a href="http://www.magentocommerce.com/partners/solution" target="_blank">파트너 리스트(Gold, Silver, Bronze)</a>가 있기 때문에 마젠토 개발업체를 골라서 견적을 낼수 있습니다.</p>
<div style="margin: 5px 0;">&nbsp;</div>
<p>직업상 마젠토를 이용해 수십개의 사이트를 개발해왔고 다른 플랫폼에서 마젠토로 옮겨온 수많은 클라이언트들의 경험담을 들어보면 옮긴걸 후회하는 사람들은 단 한명도 없었습니다.<br />
대다수가 상당히 만족하고 있으며 이미 잘 짜여진 시스템이 <a href="http://www.seo-korea.com" target="_blank">검색엔진 최적화</a>에도 상당히 좋은 결과를 가져다주기 때문에 매출이 훨씬 올라간 클라이언트들이 많습니다.<br />
저렴한 호스팅에서 조금 느리다는것을 불평하는 클라이언트들은 있었지만 그 기능과 무한한 확장성은 어느 유수의 쇼핑몰 플랫폼보다 낫다고 확신합니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0%ec%9d%98-%ec%9e%a5%ec%a0%90%ea%b3%bc-%eb%8b%a8%ec%a0%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>마젠토 객체의 데이터 불러오기</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ea%b0%9d%ec%b2%b4%ec%9d%98-%eb%8d%b0%ec%9d%b4%ed%84%b0-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ea%b0%9d%ec%b2%b4%ec%9d%98-%eb%8d%b0%ec%9d%b4%ed%84%b0-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 09:46:37 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[getData()]]></category>
		<category><![CDATA[getModel()]]></category>
		<category><![CDATA[마젠토 중급]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=290</guid>
		<description><![CDATA[마젠토 getModel()과 getData()를 사용한 객체의 데이터 불러오는 방법 마젠토 객체의 데이터를 불러오는 방법입니다. getModel()과 getData()를 사용하며 마젠토의 객체를 불러오는 방식은 대부분 동일합니다. 마젠토에서는 객체를 불러올때 대체로 getModel() method를 사용하고 불러온 객체의 데이터를 가져올때 getData() method를 사용합니다. method의 이름이 무엇을 할때 쓰이는지 이미 알려주듯이 사용법 또한 그리 어렵지 않습니다. 이번 포스팅에서는 객체를 불러와 객체를 아이디로 로드하는 [...]]]></description>
			<content:encoded><![CDATA[<h4 class="content">마젠토 getModel()과 getData()를 사용한 객체의 데이터 불러오는 방법</h4>
<p>마젠토 객체의 데이터를 불러오는 방법입니다. getModel()과 getData()를 사용하며 마젠토의 객체를 불러오는 방식은 대부분 동일합니다.<br />
<br />
마젠토에서는 객체를 불러올때 대체로 getModel() method를 사용하고 불러온 객체의 데이터를 가져올때 getData() method를 사용합니다.<br />
method의 이름이 무엇을 할때 쓰이는지 이미 알려주듯이 사용법 또한 그리 어렵지 않습니다.<br />
이번 포스팅에서는 객체를 불러와 객체를 아이디로 로드하는 방법, 그리고 객체내에 있는 데이터를 불러오는 방법을 보여드립니다.<br />
<br />
예를들어 product 객체를 불러올때엔 아래와 같은 코드를 실행하시면 됩니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>한마디로 Mage_Catalog_Model_Product의 객체를 불러오는 것이며 getModel() 안에있는 &#8216;catalog/product&#8217;는 Mage_<strong>Catalog</strong>_Model_<strong>Product</strong> 를 나타냅니다.<br />
Mage_Catalog_Model_Product는 /app/code/core/Mage/Catalog/Model/Product.php 에 위치하고 있으며 Mage_Catalog_Model_Abstract 에서 계승되어 내려온 클래스입니다.<br />
다른 객체를 불러올때도 같은 방법을 사용하며 파일의 위치또한 같은 형식의 폴더안에 위치해 있습니다.<br />
<br />
category 객체나 customer 객체를 불러올때도 같은 형식입니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$customer</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/customer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>category의 경우 Mage_Catalog_Model_Category의 객체를 불러오는 것이며 해당 파일은 /app/code/core/Mage/Catalog/Model/Category.php 에 위치해 있습니다.<br />
customer의 경우 Mage_Customer_Model_Customer의 객체를 불러오는 것이며 해당 파일은 /app/code/core/Mage/Customer/Model/Customer.php 에 위치해 있습니다.<br />
<br />
위와같이 product, category, customer 객체를 불러왔을때엔 그 객체 안에는 아직 아무것도 없고 객체를 사용해서 할수있는 일도 몇가지 안됩니다.<br />
객체를 불러온 후에는 product_id, category_id 또는 customer_id를 사용해서 각각의 정보를 로딩해야 합니다.<br />
<br />
아래는 product_id &#8217;3&#8242;을 가진 product를 $product에 로딩시킨후 로딩된 객체의 정보를 getData() method를 사용해서 프린트하는 코드입니다.<br />
마젠토의 root 폴더에 임의의 파일을 만들어 아래 코드를 복사해서 실행시킬수 있습니다.</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:558px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">&quot;app/Mage.php&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$product</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;pre&gt;'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 어레이를 조금 보기 쉽게 하기 위해서...</span><br />
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// product의 이름 출력하는 방법</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// product의 sku 출력하는 방법</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSku</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sku'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// product의 가격 출력하는 방법</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getPrice</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'price'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>
print_r($product->getData()); 를 프린트 해 보시면 array 안에 product에 관련된 모든 attribute들이 데이터 형식으로 들어있는것을 볼수 있습니다.<br />
그 데이터를 불러올때엔<br />
$product->get{attribute 이름}(); 형식을 사용하면 되고,<br />
$product->getData(&#8216;{attribute 이름}&#8217;);의 형식도 사용 가능합니다.<br />
다만 $product->get{attribute 이름}(); 의 경우 {attribute 이름}의 첫번째 알파벳은 대문자가 되어야 합니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ea%b0%9d%ec%b2%b4%ec%9d%98-%eb%8d%b0%ec%9d%b4%ed%84%b0-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SunRise 2012</title>
		<link>http://www.bmlee.com/sunrise-2012/</link>
		<comments>http://www.bmlee.com/sunrise-2012/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 19:30:02 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[Colorado]]></category>
		<category><![CDATA[Looktout Mountain]]></category>
		<category><![CDATA[Sun Rise]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=281</guid>
		<description><![CDATA[Photo of sunrise 7:25am, Jan. 1, 2012. Taken from Lookout Mountain, Colorado. Photo is little bit fuzzy, but that&#8217;s all I could get. I only have Canon EF-S 17-85mm, I guess I need a better lens.]]></description>
			<content:encoded><![CDATA[<p>Photo of sunrise 7:25am, Jan. 1, 2012.<br />
Taken from Lookout Mountain, Colorado.<br />
Photo is little bit fuzzy, but that&#8217;s all I could get.<br />
I only have Canon EF-S 17-85mm, I guess I need a better lens.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/sunrise-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

