<?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>smarty &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/smarty/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Sun, 12 Apr 2015 14:57:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>smarty &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>smarty template fonksiyon yazmak</title>
		<link>https://selmantunc.com.tr/uncategorized/smarty-template-fonksiyon-yazmak/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 12 Apr 2015 14:57:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programlama]]></category>
		<category><![CDATA[smarty]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2015/04/12/smarty-template-fonksiyon-yazmak/</guid>

					<description><![CDATA[smarty template de tpl içinde çalışırken kendi ozel fonksiyon yazabiliriz fakat kesin olmamakla birlikte bu fonksiyonda en faz bir arguman gönderebiliyoruz.bizde türkçe tarih tipini veritabanındaki mysql formatlı tipe ceviren bir&#8230;]]></description>
										<content:encoded><![CDATA[<p>smarty template de tpl içinde çalışırken kendi ozel fonksiyon yazabiliriz fakat kesin olmamakla birlikte bu fonksiyonda en faz bir arguman gönderebiliyoruz.<br /><br />bizde  türkçe tarih tipini veritabanındaki mysql formatlı tipe ceviren bir plugin yazalım <br />burada dikkate edilecek nokta fonksiyonun önünde smarty<em>function</em> ekinin olmasıdır  <br /><pre class="brush:php"><br /><br />/<em><br /> </em> türkçe tarih tipini veritabnındaki mysql formatlı tipe cevirir<br /> <em> @example tr2sql_DateTime("25-04-2014 15:40:15"); sonuc 2014-04-25 15:40:15<br /> </em> @param date $datetime<br /> <em> @param string $ayrac<br /> </em> @return string<br /> <em>/<br />function  smarty_function_tr2sql_DateTime(    $params, &amp;$smarty ) {<br /><br />   if (! isset ( $params ['tarih'] )) {<br />      $smarty-&gt;trigger_error ( "hata var " );<br />        return;<br />   } <br />    $ayrac = "-";<br /> $datetime=  $params ['tarih'];<br />    $tarih = explode ( $ayrac, $datetime );<br />   $tarih2 = explode ( " ", $tarih [2] ); // 17 02:13:53<br /> return $tarih2 [0] . $ayrac . $tarih [1] . $ayrac . $tarih [0] . ' ' . $tarih2 [1];<br />}<br /><br /><br />/</em><br /></pre>
<br /><br />index.tpl kodu <br /><pre class="brush:php"><br />  {tr2sql_DateTime tarih='25-04-2014 15:40:15'}<br /></pre>
<br />kaynaklar :<br /><br /><a href="http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/"><a href="http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/">http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/</a></a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>smarty template plugin yazmak</title>
		<link>https://selmantunc.com.tr/uncategorized/smarty-template-plugin-yazmak/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 12 Apr 2015 14:49:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programlama]]></category>
		<category><![CDATA[smarty]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2015/04/12/smarty-template-plugin-yazmak/</guid>

					<description><![CDATA[smarty template de tpl içinde çalışırken kendi ozel pluginimize yazabiliriz mesela smarty içinde bulunan truncate gibi {&#8216;Two Sisters Reunite after Eighteen Years at Checkout Counter.&#8217;&#124;truncate:30}bizde türkçe tarih tipini veritabanındaki mysql&#8230;]]></description>
										<content:encoded><![CDATA[<p>smarty template de tpl içinde çalışırken kendi ozel pluginimize yazabiliriz mesela smarty içinde bulunan truncate gibi <br />{&lsquo;Two Sisters Reunite after Eighteen Years at Checkout Counter.&rsquo;|truncate:30}<br />bizde  türkçe tarih tipini veritabanındaki mysql formatlı tipe ceviren bir plugin yazalım <br />burada dikkate edilecek nokta fonksiyonun önünde smarty<em>modifier</em> ekinin olmasıdır  <br /><pre class="brush:php"><br /><br />/<em><br /> </em> türkçe   tarih tipini veritabnındaki mysql formatlı tipe cevirir<br /> <em> @example tr2sql_DateTime("25-04-2014 15:40:15"); sonuc 2014-04-25 15:40:15<br /> </em> @param date $datetime<br /> <em> @param string $ayrac<br /> </em> @return string<br /> <em>/<br />function smarty_modifier_tr2sql_DateTime($datetime, $ayrac = "-") {<br />   $tarih = explode ( $ayrac, $datetime );<br />   $tarih2 = explode ( " ", $tarih [2] ); // 17 02:13:53<br /> return $tarih2 [0] . $ayrac . $tarih [1] . $ayrac . $tarih [0] . ' ' . $tarih2 [1];<br />}<br /><br /><br />/</em><br /></pre>
<br /><br />index.tpl kodu <br /><br /> {&#8217;25-04-2014 15:40:15&rsquo;|tr2sql_DateTime:&rsquo;-&rsquo;}<br /><br />kaynaklar :<br /><a href="http://www.smarty.net/docs/en/plugins.modifiers.tpl"><a href="http://www.smarty.net/docs/en/plugins.modifiers.tpl">http://www.smarty.net/docs/en/plugins.modifiers.tpl</a></a>
<br /><a href="http://www.smarty.net/docsv2/en/language.modifier.truncate"><a href="http://www.smarty.net/docsv2/en/language.modifier.truncate">http://www.smarty.net/docsv2/en/language.modifier.truncate</a></a>
<br /><a href="http://www.dreamincode.net/forums/topic/275526-adding-your-own-functionality-to-smarty-w-plugins/"><a href="http://www.dreamincode.net/forums/topic/275526-adding-your-own-functionality-to-smarty-w-plugins/">http://www.dreamincode.net/forums/topic/275526-adding-your-own-functionality-to-smarty-w-plugins/</a></a>
<br /><a href="http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/"><a href="http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/">http://viralpatel.net/blogs/smarty-templates-creating-smarty-custom-functions/</a></a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>smarty template fonksiyon çağırmak</title>
		<link>https://selmantunc.com.tr/uncategorized/smarty-template-fonksiyon-cagirmak/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 12 Apr 2015 14:39:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Düzensiz]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programlama]]></category>
		<category><![CDATA[smarty]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2015/04/12/smarty-template-fonksiyon-cagirmak/</guid>

					<description><![CDATA[smarty template de tpl içinde çalışırken php de bulunan fonksiyonumuza erişmek isteyebilirizindex.php dosyası/ tarihi türkiye tarih tipini veritabnındaki mysql formatlı tipe cevirir @example tr2sql_DateTime("25-04-2014 15:40:15"); sonuc 2014-04-25 15:40:15 @param date&#8230;]]></description>
										<content:encoded><![CDATA[<p>smarty template de tpl içinde çalışırken php de bulunan fonksiyonumuza erişmek isteyebiliriz<br /><br />index.php dosyası<br /><br /><pre class="brush:php"><br />/<em><br />   </em> tarihi türkiye tarih tipini veritabnındaki mysql formatlı tipe cevirir<br />  <em> @example tr2sql_DateTime("25-04-2014 15:40:15"); sonuc 2014-04-25 15:40:15<br />  </em> @param date $datetime<br />   <em> @param string $ayrac<br />    </em> @return string<br />  */<br />   function tr2sql_DateTime($datetime, $ayrac = "-") {<br />       $tarih = explode ( $ayrac, $datetime );<br />       $tarih2 = explode ( " ", $tarih [2] ); // 17 02:13:53<br />     return $tarih2 [0] . $ayrac . $tarih [1] . $ayrac . $tarih [0] . ' ' . $tarih2 [1];<br />   }<br /></pre>
<br /><br />index.tpl dosyası <br /><br /><pre class="brush:php"><br />  {'25-04-2014 15:40:15'|tr2sql_DateTime:'-'}<br /></pre></p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
