<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Php Developer - Istanbul Turkey</title>
	<atom:link href="http://develturk.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://develturk.com</link>
	<description>Ersin Güvenç's Php Development Blog (Turkey)</description>
	<lastBuildDate>Tue, 17 Jan 2012 10:47:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Writing a Php5 MVC Framework like Code Igniter Part2: Model,Database(pdo),Exceptions and Errors,Helpers by admin</title>
		<link>http://develturk.com/2009/09/07/writing-a-php5-mvc-framework-like-code-igniter-part2-model-database-pdo-exceptions-and-errors-helpers/comment-page-1/#comment-4765</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 17 Jan 2012 10:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=171#comment-4765</guid>
		<description>Usage
$db[&#039;default&#039;] = array(
     &#039;hostname&#039; =&gt; &#039;localhost&#039;,
     &#039;username&#039; =&gt; &#039;root&#039;,
     &#039;password&#039; =&gt; &#039;&#039;,
     &#039;database&#039; =&gt; &#039;test_db&#039;,
     &#039;dbdriver&#039; =&gt; &#039;mysql&#039;,
     &#039;dbh_port&#039; =&gt; &#039;&#039;,
     &#039;char_set&#039; =&gt; &#039;utf8&#039;,
     &#039;options&#039;  =&gt; array( PDO::ATTR_PERSISTENT =&gt; TRUE )
 );                                

 loader::database($db);

add below the codes to your database function
&lt;code&gt;
function database($config = array())
{
   if(is_array($config))
   {
      $db = OB_DBFactory::Connect($config);

      return $db;
    }
}

add below the codes to your OB_DBFactory class Connect function.

if( ! is_array($db))
{
   require_once(APP.&#039;config/database&#039;.EXT);
}

....
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Usage<br />
$db['default'] = array(<br />
     &#8216;hostname&#8217; => &#8216;localhost&#8217;,<br />
     &#8216;username&#8217; => &#8216;root&#8217;,<br />
     &#8216;password&#8217; => &#8221;,<br />
     &#8216;database&#8217; => &#8216;test_db&#8217;,<br />
     &#8216;dbdriver&#8217; => &#8216;mysql&#8217;,<br />
     &#8216;dbh_port&#8217; => &#8221;,<br />
     &#8216;char_set&#8217; => &#8216;utf8&#8242;,<br />
     &#8216;options&#8217;  => array( PDO::ATTR_PERSISTENT => TRUE )<br />
 );                                </p>
<p> loader::database($db);</p>
<p>add below the codes to your database function<br />
<code><br />
function database($config = array())<br />
{<br />
   if(is_array($config))<br />
   {<br />
      $db = OB_DBFactory::Connect($config);</p>
<p>      return $db;<br />
    }<br />
}</p>
<p>add below the codes to your OB_DBFactory class Connect function.</p>
<p>if( ! is_array($db))<br />
{<br />
   require_once(APP.'config/database'.EXT);<br />
}</p>
<p>....<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing a Php5 MVC Framework like Code Igniter Part2: Model,Database(pdo),Exceptions and Errors,Helpers by Eder</title>
		<link>http://develturk.com/2009/09/07/writing-a-php5-mvc-framework-like-code-igniter-part2-model-database-pdo-exceptions-and-errors-helpers/comment-page-1/#comment-4758</link>
		<dc:creator>Eder</dc:creator>
		<pubDate>Mon, 16 Jan 2012 18:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=171#comment-4758</guid>
		<description>Great Work...

I have a problem, my project need a two databases simultaneously, but in actual extruture I dont see possibilities to implementation this.
help me please.</description>
		<content:encoded><![CDATA[<p>Great Work&#8230;</p>
<p>I have a problem, my project need a two databases simultaneously, but in actual extruture I dont see possibilities to implementation this.<br />
help me please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a PHP5 MVC Framework part4: Integrating CI Active Record to Obullo PDO Class, Routing Impromevents and Advanced Loader Functions by admin</title>
		<link>http://develturk.com/2009/10/21/creating-a-php5-mvc-framework-part4-integrating-ci-active-record-to-obullo-pdo-class-routing-impromevents-and-advanced-loader-functions/comment-page-1/#comment-4146</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 04 Feb 2011 14:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=211#comment-4146</guid>
		<description>this the new versiyon db files
https://github.com/obullo/obullo/tree/dev/database   
try to update database files
be carefull first you need to get backup your application</description>
		<content:encoded><![CDATA[<p>this the new versiyon db files<br />
<a href="https://github.com/obullo/obullo/tree/dev/database" rel="nofollow">https://github.com/obullo/obullo/tree/dev/database</a><br />
try to update database files<br />
be carefull first you need to get backup your application</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a PHP5 MVC Framework part4: Integrating CI Active Record to Obullo PDO Class, Routing Impromevents and Advanced Loader Functions by ekoheri</title>
		<link>http://develturk.com/2009/10/21/creating-a-php5-mvc-framework-part4-integrating-ci-active-record-to-obullo-pdo-class-routing-impromevents-and-advanced-loader-functions/comment-page-1/#comment-4145</link>
		<dc:creator>ekoheri</dc:creator>
		<pubDate>Fri, 04 Feb 2011 05:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=211#comment-4145</guid>
		<description>i am trying Obullo beta RC1 on PHP 5.3.0.
I found errors like this
[Obullo][Warning]: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://)
File: /opt/lampp/htdocs/banyuwangi/base/database/DB.php
Line: 79
[Database Error]: SQLSTATE[HY000] [2002] Invalid argument
File: /opt/lampp/htdocs/banyuwangi/base/database/DB.php
Line: 79 

class Site_model extends Model {
	function __construct(){
		parent::__construct();
		$config = array (
		&#039;variable&#039; =&gt; &#039;db&#039;,
		&#039;hostname&#039; =&gt; &#039;localhost&#039;,
		&#039;username&#039; =&gt; &#039;root&#039;,
		&#039;password&#039; =&gt; &#039;&#039;,
		&#039;database&#039; =&gt; &#039;myblog&#039;,	
		&#039;dbdriver&#039; =&gt; &#039;mysql&#039;,
		&#039;dbh_port&#039; =&gt; &#039;&#039;,
		&#039;char_set&#039; =&gt; &#039;utf8&#039;,
		&#039;dsn&#039; =&gt; &#039;&#039;,
		&#039;options&#039; =&gt; array()
		);
		loader::database($config);
	}
	function GetData() 
	{
	$results=$this-&gt;db-&gt;query(&quot;select * from `tbl_category`&quot;);
	return $results-&gt;fetch_all(assoc);
	}
}

=============== controller
class Site extends Controller {
function __construct(){
	parent::__construct();
	parent::__global(); 
	loader::model(&#039;site_model&#039;);
}
function index(){
$data[&#039;category&#039;]=$this-&gt;site_model-&gt;GetData();
$this-&gt;maincontent = content_view(&#039;blogview&#039;, $data); 
content_app_view(&#039;site_base_layout&#039;);
}
}
========================
How can i fix it?thanks</description>
		<content:encoded><![CDATA[<p>i am trying Obullo beta RC1 on PHP 5.3.0.<br />
I found errors like this<br />
[Obullo][Warning]: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://)<br />
File: /opt/lampp/htdocs/banyuwangi/base/database/DB.php<br />
Line: 79<br />
[Database Error]: SQLSTATE[HY000] [2002] Invalid argument<br />
File: /opt/lampp/htdocs/banyuwangi/base/database/DB.php<br />
Line: 79 </p>
<p>class Site_model extends Model {<br />
	function __construct(){<br />
		parent::__construct();<br />
		$config = array (<br />
		&#8216;variable&#8217; =&gt; &#8216;db&#8217;,<br />
		&#8216;hostname&#8217; =&gt; &#8216;localhost&#8217;,<br />
		&#8216;username&#8217; =&gt; &#8216;root&#8217;,<br />
		&#8216;password&#8217; =&gt; &#8221;,<br />
		&#8216;database&#8217; =&gt; &#8216;myblog&#8217;,<br />
		&#8216;dbdriver&#8217; =&gt; &#8216;mysql&#8217;,<br />
		&#8216;dbh_port&#8217; =&gt; &#8221;,<br />
		&#8216;char_set&#8217; =&gt; &#8216;utf8&#8242;,<br />
		&#8216;dsn&#8217; =&gt; &#8221;,<br />
		&#8216;options&#8217; =&gt; array()<br />
		);<br />
		loader::database($config);<br />
	}<br />
	function GetData()<br />
	{<br />
	$results=$this-&gt;db-&gt;query(&#8220;select * from `tbl_category`&#8221;);<br />
	return $results-&gt;fetch_all(assoc);<br />
	}<br />
}</p>
<p>=============== controller<br />
class Site extends Controller {<br />
function __construct(){<br />
	parent::__construct();<br />
	parent::__global();<br />
	loader::model(&#8216;site_model&#8217;);<br />
}<br />
function index(){<br />
$data['category']=$this-&gt;site_model-&gt;GetData();<br />
$this-&gt;maincontent = content_view(&#8216;blogview&#8217;, $data);<br />
content_app_view(&#8216;site_base_layout&#8217;);<br />
}<br />
}<br />
========================<br />
How can i fix it?thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating Obullo PHP5 MVC-SSC Framework Part5: Writing __autoloader; javascript and css manager, intelligible tag builder and using session class with SSC functions. by shani</title>
		<link>http://develturk.com/2009/11/12/creating-obullo-php5-mvc-ssc-framework-part5-writing-__autoloader-javascript-and-css-manager-intelligible-tag-builder-and-using-session-class-with-ssc-functions/comment-page-1/#comment-3770</link>
		<dc:creator>shani</dc:creator>
		<pubDate>Fri, 31 Dec 2010 17:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=225#comment-3770</guid>
		<description>Excellent post i often come to your site and read your posts. I am a &lt;a href=&quot;http://www.allshore.us/&quot; rel=&quot;nofollow&quot;&gt;PHP developer&lt;/a&gt; and always try find good posts like this.
Thank you very much</description>
		<content:encoded><![CDATA[<p>Excellent post i often come to your site and read your posts. I am a <a href="http://www.allshore.us/" rel="nofollow">PHP developer</a> and always try find good posts like this.<br />
Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a PHP5 MVC Framework part4: Integrating CI Active Record to Obullo PDO Class, Routing Impromevents and Advanced Loader Functions by Holly</title>
		<link>http://develturk.com/2009/10/21/creating-a-php5-mvc-framework-part4-integrating-ci-active-record-to-obullo-pdo-class-routing-impromevents-and-advanced-loader-functions/comment-page-1/#comment-3710</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Mon, 27 Dec 2010 17:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=211#comment-3710</guid>
		<description>Keep it up and in 2011 !</description>
		<content:encoded><![CDATA[<p>Keep it up and in 2011 !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing a Php5 MVC Framework like Code Igniter Part1: Controller,view,registry,loader by Davis</title>
		<link>http://develturk.com/2009/04/24/writing-a-php5-mvc-framework-like-code-igniter-part1-controller-view-registry-loader/comment-page-1/#comment-3409</link>
		<dc:creator>Davis</dc:creator>
		<pubDate>Fri, 03 Dec 2010 03:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=113#comment-3409</guid>
		<description>Gooodddd!!! Thanksss</description>
		<content:encoded><![CDATA[<p>Gooodddd!!! Thanksss</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easyrest Rest Framework 1.0 Released (Client and Server Library) by DEViANT</title>
		<link>http://develturk.com/2009/08/17/easyrest-rest-framework-10-released-client-and-server-library/comment-page-1/#comment-2767</link>
		<dc:creator>DEViANT</dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=129#comment-2767</guid>
		<description>This is &lt;b&gt;Briliant!&lt;/b&gt;

Thanks allot man. Really gonna help me out on a project Im working on. Cheers</description>
		<content:encoded><![CDATA[<p>This is <b>Briliant!</b></p>
<p>Thanks allot man. Really gonna help me out on a project Im working on. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Obullo Beta RC1 Version Released, Website Launched !! by admin</title>
		<link>http://develturk.com/2010/05/30/obullo-beta-rc1-version-released-website-launched/comment-page-1/#comment-2764</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 16 Sep 2010 05:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=280#comment-2764</guid>
		<description>you can send bugs here http://obullo.com/bugs/report.html</description>
		<content:encoded><![CDATA[<p>you can send bugs here <a href="http://obullo.com/bugs/report.html" rel="nofollow">http://obullo.com/bugs/report.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Obullo Beta RC1 Version Released, Website Launched !! by Max</title>
		<link>http://develturk.com/2010/05/30/obullo-beta-rc1-version-released-website-launched/comment-page-1/#comment-2761</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Wed, 15 Sep 2010 23:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://develturk.com/?p=280#comment-2761</guid>
		<description>Great!!!
Thanks!
I&#039;m so glad with this notice! I&#039;m using hard and having a lot of fun.
Good job!
Where can I show if i found som error?</description>
		<content:encoded><![CDATA[<p>Great!!!<br />
Thanks!<br />
I&#8217;m so glad with this notice! I&#8217;m using hard and having a lot of fun.<br />
Good job!<br />
Where can I show if i found som error?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

