<?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, 22 Feb 2012 23:38:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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>
		<item>
		<title>마젠토 제품을 Google Base에 등록하기</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%a0%9c%ed%92%88%ec%9d%84-google-base%ec%97%90-%eb%93%b1%eb%a1%9d%ed%95%98%ea%b8%b0/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%a0%9c%ed%92%88%ec%9d%84-google-base%ec%97%90-%eb%93%b1%eb%a1%9d%ed%95%98%ea%b8%b0/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 09:53:54 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[구글 베이스]]></category>
		<category><![CDATA[마젠토 초급]]></category>
		<category><![CDATA[제품등록]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=237</guid>
		<description><![CDATA[구글 베이스(Google Base)에 제품등록을 하면 Google Product Search나 Google Shopping에서 제품이 검색됩니다. 특히나 미국을 제품판매의 타겟으로 두고 계신 분들이라면 거의 필수라고 말할수 있습니다. 마젠토는 이 구글 베이스에 제품등록을 아주 쉽게 하게끔 만들어 졌습니다. 아래 동영상도 참조하시기 바랍니다. Magento Screencast: Google Base Integration from Rico Neitzel on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>구글 베이스(Google Base)에 제품등록을 하면 Google Product Search나 Google Shopping에서 제품이 검색됩니다.<br />
특히나 미국을 제품판매의 타겟으로 두고 계신 분들이라면 거의 필수라고 말할수 있습니다.<br />
마젠토는 이 구글 베이스에 제품등록을 아주 쉽게 하게끔 만들어 졌습니다.</p>
<div class='et-learn-more et-open clearfix'>
					<h3 class='heading-more open'><span>구글베이스에 제품 등록</span></h3>
					<div class='learn-more-content'>1. [구글베이스] <a href="http://base.google.com" target="_blank">Google Base</a>에 계정을 만드세요.</p>
<p>2. [마젠토] 마젠토 관리자로 로그인 하셔서 System > Configuration > Google API > Google Base 에 Google Base 계정 정보를 입력하신후 저장하세요.</p>
<p>3. [마젠토] 그 다음, Catalog > Google Base > Manage Attributes 로 가셔서 Add Attribute Mapping을 클릭하신후 올릴 제품의 attribute set과 attributes를 구글베이스의 제품 attributes에 맞게 설정하세요.</p>
<p>4. [마젠토] Catalog > Google Base > Manage Items 에 가서 하단 테이블의 View Available Products를 클릭하시면 마젠토의 모든 제품들이 검색됩니다.
거기서 올릴 제품을 골라서 Action의 Add to Google Base를 해주시면 구글베이스로 자동 업로드 됩니다.</p>
<p>5. [구글베이스] 구글베이스에서 마젠토를 통해 업로드된 제품을 확인해 보세요.</div>
				</div>
<p>아래 동영상도 참조하시기 바랍니다.</p>
<p><iframe src="http://player.vimeo.com/video/2368176?title=0&amp;byline=0&amp;portrait=0" width="558" height="300" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/2368176">Magento Screencast: Google Base Integration</a> from <a href="http://vimeo.com/user893965">Rico Neitzel</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%a0%9c%ed%92%88%ec%9d%84-google-base%ec%97%90-%eb%93%b1%eb%a1%9d%ed%95%98%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arches National Park, Moab, Utah</title>
		<link>http://www.bmlee.com/arches-national-park-moab-utah/</link>
		<comments>http://www.bmlee.com/arches-national-park-moab-utah/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 04:50:04 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[Arches National Park]]></category>
		<category><![CDATA[Moab]]></category>
		<category><![CDATA[Utah]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=29</guid>
		<description><![CDATA[More photos of Arches National Park, Moab, Utah. 2박 3일로 놀러갔던 유타 모압의 아치스 국립공원.]]></description>
			<content:encoded><![CDATA[<p>More photos of Arches National Park, Moab, Utah.<br />
2박 3일로 놀러갔던 유타 모압의 아치스 국립공원.</p>

		<div class='et-image-slider et_sliderfx_fade et_sliderauto_true et_sliderauto_speed_8000 et_slidertype_images' id='et-image-slider319'>
			<div class='et-image-slides'>
				<div class='et-image' style='background: url(http://www.bmlee.com/wp-content/uploads/et_temp/110825-21-506959_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/110825-05-505093_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/110825-01-562853_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/110825-02-574992_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/110825-03-555387_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/110825-11-509750_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/110825-12-654033_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/110825-13-632621_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/arches-national-park-moab-utah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delicate Arch, Arches National Park, Moab, Utah</title>
		<link>http://www.bmlee.com/delicate-arch-arches-national-park-moab-utah/</link>
		<comments>http://www.bmlee.com/delicate-arch-arches-national-park-moab-utah/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 03:34:36 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[Arches National Park]]></category>
		<category><![CDATA[Delicate Arch]]></category>
		<category><![CDATA[Moab]]></category>
		<category><![CDATA[Utah]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=4</guid>
		<description><![CDATA[I was at Delicate Arch, Arches National Park, Moab, Utah camping with my wife Summer 2011. Because it was too hot, it wasn&#8217;t easy sweating all night sleeping in a tent. Still, I loved the trails and the awesome views. *Some of photos in above slides are NOT Delicate Arch.]]></description>
			<content:encoded><![CDATA[<p>I was at Delicate Arch, Arches National Park, Moab, Utah camping with my wife Summer 2011.</p>
<p>Because it was too hot, it wasn&#8217;t easy sweating all night sleeping in a tent. Still, I loved the trails and the awesome views.</p>

		<div class='et-image-slider et_sliderfx_fade et_sliderauto_true et_sliderauto_speed_4000 et_slidertype_images' id='et-image-slider365'>
			<div class='et-image-slides'>
				<div class='et-image' style='background: url(http://www.bmlee.com/wp-content/uploads/et_temp/110825-09-467705_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/110825-08-431140_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/110825-10-389068_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/110825-14-491528_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/110825-15-526222_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/110825-16-513164_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/110825-17-531076_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/110825-18-405108_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/110825-20-591461_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 -->
		
<p>*Some of photos in above slides are NOT Delicate Arch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/delicate-arch-arches-national-park-moab-utah/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>마젠토 세션 사용법</title>
		<link>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%84%b8%ec%85%98/</link>
		<comments>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%84%b8%ec%85%98/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 06:47:24 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[마젠토]]></category>
		<category><![CDATA[마젠토 중급]]></category>
		<category><![CDATA[세션]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=225</guid>
		<description><![CDATA[기본적인 마젠토 세션 변수 사용방법: 변수를 만들어 세션에 저장하거나 저장해놓은 값을 사용하고자 할때엔 아래와 같이 변수 이름앞에 set또는 get을 사용하시면 됩니다. 123456789&#60;?php // 지정하기 Mage::getSingleton&#40;'core/session'&#41;-&#62;setMyData&#40;'my data'&#41;; // 가져오기 $myData = Mage::getSingleton&#40;'core/session'&#41;-&#62;getMyData&#40;&#41;; echo $myData; // prints 'my data' // 지우기 Mage::getSingleton&#40;'core/session'&#41;-&#62;setMyData&#40;&#41;; ?&#62; 마젠토 외부에서 관리자 세션(Admin Session) 불러오기 12345678require_once &#34;app/Mage.php&#34;; Mage::app&#40;&#41;; Mage::getSingleton&#40;'core/session', array&#40;'name'=&#62;'adminhtml'&#41;&#41;; $session = Mage::getSingleton&#40;'admin/session'&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>기본적인 마젠토 세션 변수 사용방법:<br />
변수를 만들어 세션에 저장하거나 저장해놓은 값을 사용하고자 할때엔 아래와 같이 변수 이름앞에 set또는 get을 사용하시면 됩니다.</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 /></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: #666666; font-style: italic;">// 지정하기</span><br />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setMyData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'my data'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// 가져오기</span><br />
<span style="color: #000088;">$myData</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;">'core/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMyData</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;">$myData</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// prints 'my data'</span><br />
<span style="color: #666666; font-style: italic;">// 지우기</span><br />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setMyData</span><span style="color: #009900;">&#40;</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>마젠토 외부에서 관리자 세션(Admin Session) 불러오기</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 /></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 />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core/session'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'adminhtml'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$session</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;">'admin/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// 로그인 여부 확인</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isLoggedIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$customer</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$session</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><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>마젠토 외부에서 프론트엔드 세션(Frontend Session) 불러오기</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 /></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 />
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core/session'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'frontend'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$session</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: #000088;">$customer_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'guest'</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// 로그인 여부 확인</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isLoggedIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$customer</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$session</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><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/%eb%a7%88%ec%a0%a0%ed%86%a0-%ec%84%b8%ec%85%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parasailing &#8211; Half Moon Cay</title>
		<link>http://www.bmlee.com/parasailing-half-moon-cay/</link>
		<comments>http://www.bmlee.com/parasailing-half-moon-cay/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 00:11:14 +0000</pubDate>
		<dc:creator>Brian Lee</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[Half Moon Cay]]></category>
		<category><![CDATA[Parasailing]]></category>

		<guid isPermaLink="false">http://www.bmlee.com/?p=132</guid>
		<description><![CDATA[Half Moon Cay in Bahamas. I was parasailing and the view of Half Moon Cay from the sky was just awesome.]]></description>
			<content:encoded><![CDATA[<p>Half Moon Cay in Bahamas. I was parasailing and the view of Half Moon Cay from the sky was just awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bmlee.com/parasailing-half-moon-cay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

