<?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 on: CodeIgniter and Doctrine from scratch Day 4 – User Login</title>
	<atom:link href="http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login</link>
	<description>PHP, JS, CSS, jQuery, CodeIgniter, Doctrine</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:13:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hello hello</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-14273</link>
		<dc:creator>hello hello</dc:creator>
		<pubDate>Fri, 27 Aug 2010 04:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-14273</guid>
		<description>Still this error is not solved..
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\libraries\MY_Form_validation.php:2)

Filename: helpers/url_helper.php

Line Number: 541</description>
		<content:encoded><![CDATA[<p>Still this error is not solved..<br />
A PHP Error was encountered</p>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information &#8211; headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\libraries\MY_Form_validation.php:2)</p>
<p>Filename: helpers/url_helper.php</p>
<p>Line Number: 541</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hello hello</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-14236</link>
		<dc:creator>hello hello</dc:creator>
		<pubDate>Thu, 26 Aug 2010 08:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-14236</guid>
		<description>Hi burak, great tutorials. likes likes :)
I am going through your tutorials and i encountered with following error which I couldn&#039;t fix. 

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\models\user.php:1)

Filename: codeigniter/Common.php

Line Number: 360

404 Page Not Found
The page you requested was not found.</description>
		<content:encoded><![CDATA[<p>Hi burak, great tutorials. likes likes <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I am going through your tutorials and i encountered with following error which I couldn&#8217;t fix. </p>
<p>A PHP Error was encountered</p>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information &#8211; headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\models\user.php:1)</p>
<p>Filename: codeigniter/Common.php</p>
<p>Line Number: 360</p>
<p>404 Page Not Found<br />
The page you requested was not found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aravind</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-12802</link>
		<dc:creator>Aravind</dc:creator>
		<pubDate>Fri, 13 Aug 2010 11:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-12802</guid>
		<description>Super Cool !!!!! Thanks a lot for posting !</description>
		<content:encoded><![CDATA[<p>Super Cool !!!!! Thanks a lot for posting !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-10152</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 26 Jul 2010 03:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-10152</guid>
		<description>Thanks so much for these, they&#039;re the best CI tutorials I have seen!</description>
		<content:encoded><![CDATA[<p>Thanks so much for these, they&#8217;re the best CI tutorials I have seen!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-8504</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Mon, 12 Jul 2010 11:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-8504</guid>
		<description>Hello Burak,

Tremendous tutorial!

I was just wondering if you could point me in the right direction as to how to implement users with different privilege levels ie, users with privilege level 1 get sent to one page, users with privilege level 2 get sent to another page, and both can only see their respective pages.

Many thanks,

Matt</description>
		<content:encoded><![CDATA[<p>Hello Burak,</p>
<p>Tremendous tutorial!</p>
<p>I was just wondering if you could point me in the right direction as to how to implement users with different privilege levels ie, users with privilege level 1 get sent to one page, users with privilege level 2 get sent to another page, and both can only see their respective pages.</p>
<p>Many thanks,</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enogeze</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-7473</link>
		<dc:creator>enogeze</dc:creator>
		<pubDate>Thu, 01 Jul 2010 09:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-7473</guid>
		<description>Hi again.

I now understand that because self::user is static it does NOT need to be instantiated.

Is it true to say that the Current_User class is &quot;singleton-like&quot; but is not really an example of the singleton pattern? 

In the singleton pattern a static public function is called that should instantiate a single instance of the class if this hasn&#039;t been done already. Otherwise it returns the existing instance. This would give access to any non-static properties in the single instance that are created on its instantiation.

In Current_User, the Current_User class is never instantiated. It doesn&#039;t need to be as it has no non-static properties. Would it be fair to say that Current_User is really just a static class and not an example of the singleton pattern?

Thanks again for your great tutorials.</description>
		<content:encoded><![CDATA[<p>Hi again.</p>
<p>I now understand that because self::user is static it does NOT need to be instantiated.</p>
<p>Is it true to say that the Current_User class is &#8220;singleton-like&#8221; but is not really an example of the singleton pattern? </p>
<p>In the singleton pattern a static public function is called that should instantiate a single instance of the class if this hasn&#8217;t been done already. Otherwise it returns the existing instance. This would give access to any non-static properties in the single instance that are created on its instantiation.</p>
<p>In Current_User, the Current_User class is never instantiated. It doesn&#8217;t need to be as it has no non-static properties. Would it be fair to say that Current_User is really just a static class and not an example of the singleton pattern?</p>
<p>Thanks again for your great tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enogeze</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-7395</link>
		<dc:creator>enogeze</dc:creator>
		<pubDate>Tue, 29 Jun 2010 21:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-7395</guid>
		<description>Hi Burak.

Thanks for these tutorials. I&#039;m having trouble understanding the use of the Singleton pattern here.

The first use of current_user.php is a call to static function login() in authenticate() in login.php as follows...

return Current_User::login($this-&gt;input-&gt;post(&#039;username&#039;),$this-&gt;input-&gt;post(&#039;password&#039;));

This static login() method &quot;sets&quot; the value of self::$user. 

From reading about Singleton I understand that the Current_User needs to be instantiated once, from a call to a static method, to create an instance of self::user. The Singleton class Current_User, would be set up in such a way that any future calls to this same static function would simply return the same static property self::user.

So my question is, how can the static property self::user be set when an instance of it hasn&#039;t been created yet.

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Hi Burak.</p>
<p>Thanks for these tutorials. I&#8217;m having trouble understanding the use of the Singleton pattern here.</p>
<p>The first use of current_user.php is a call to static function login() in authenticate() in login.php as follows&#8230;</p>
<p>return Current_User::login($this-&gt;input-&gt;post(&#8217;username&#8217;),$this-&gt;input-&gt;post(&#8217;password&#8217;));</p>
<p>This static login() method &#8220;sets&#8221; the value of self::$user. </p>
<p>From reading about Singleton I understand that the Current_User needs to be instantiated once, from a call to a static method, to create an instance of self::user. The Singleton class Current_User, would be set up in such a way that any future calls to this same static function would simply return the same static property self::user.</p>
<p>So my question is, how can the static property self::user be set when an instance of it hasn&#8217;t been created yet.</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-5758</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Tue, 25 May 2010 15:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-5758</guid>
		<description>Hello, 

Thanks a lot for your work and your explications. 
I have a probleme vith the login function. I can loggin but dont write session. 
I have try to set a session in an user page, it&#039;s ok, but not when I called login function. 
If someone can help me, it will be great. 

Thanks</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Thanks a lot for your work and your explications.<br />
I have a probleme vith the login function. I can loggin but dont write session.<br />
I have try to set a session in an user page, it&#8217;s ok, but not when I called login function.<br />
If someone can help me, it will be great. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iain</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-5609</link>
		<dc:creator>iain</dc:creator>
		<pubDate>Mon, 24 May 2010 08:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-5609</guid>
		<description>@laanes - did you copy the htaccess file correctly? that may be the problem.</description>
		<content:encoded><![CDATA[<p>@laanes &#8211; did you copy the htaccess file correctly? that may be the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laanes</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-5420</link>
		<dc:creator>laanes</dc:creator>
		<pubDate>Tue, 18 May 2010 11:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-5420</guid>
		<description>If i click on login it loads up this page:

http://localhost/index.php/localhost/index.php/login/submit

and if i click on create new account it takes me here:

http://localhost/index.php/localhost/index.php/signup

Why does it return localhost/index.php 2 times in the url

Im confused

Hope anyone knows what the issue might be</description>
		<content:encoded><![CDATA[<p>If i click on login it loads up this page:</p>
<p><a href="http://localhost/index.php/localhost/index.php/login/submit" rel="nofollow">http://localhost/index.php/localhost/index.php/login/submit</a></p>
<p>and if i click on create new account it takes me here:</p>
<p><a href="http://localhost/index.php/localhost/index.php/signup" rel="nofollow">http://localhost/index.php/localhost/index.php/signup</a></p>
<p>Why does it return localhost/index.php 2 times in the url</p>
<p>Im confused</p>
<p>Hope anyone knows what the issue might be</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smartypants</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-5297</link>
		<dc:creator>smartypants</dc:creator>
		<pubDate>Sat, 15 May 2010 13:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-5297</guid>
		<description>Type your comment here&lt;blockquote cite=&quot;#comment-body-290&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-290&quot; rel=&quot;nofollow&quot;&gt;Burak&lt;/a&gt; :&lt;/strong&gt;
                  
         
         
         It is encrypted  
         &lt;a&gt;&lt;/a&gt;
       &lt;/blockquote&gt;

It&#039;s not. ;P It is hashed. Hashing != Encryption.</description>
		<content:encoded><![CDATA[<p>Type your comment here<br />
<blockquote cite="#comment-body-290">
<strong><a href="#comment-290" rel="nofollow">Burak</a> :</strong></p>
<p>         It is encrypted<br />
         <a></a>
       </p></blockquote>
<p>It&#8217;s not. ;P It is hashed. Hashing != Encryption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Myrna</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4731</link>
		<dc:creator>Myrna</dc:creator>
		<pubDate>Fri, 30 Apr 2010 12:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4731</guid>
		<description>Hello Burak,


To log into a database using the username and password. But I want to change the username to be id_name. What code should be replaced in login.php in the controller, login_view, and user.php in the model?

Sorry with my english ..

I need your explanation because I am still new in using the CI.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello Burak,</p>
<p>To log into a database using the username and password. But I want to change the username to be id_name. What code should be replaced in login.php in the controller, login_view, and user.php in the model?</p>
<p>Sorry with my english ..</p>
<p>I need your explanation because I am still new in using the CI.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4648</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 28 Apr 2010 22:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4648</guid>
		<description>I think I finally have a fix for this issue, and it is very simple. I removed the www. from the base_url in config.php.

I have no idea why this works, but the comment below this was on the right track.</description>
		<content:encoded><![CDATA[<p>I think I finally have a fix for this issue, and it is very simple. I removed the www. from the base_url in config.php.</p>
<p>I have no idea why this works, but the comment below this was on the right track.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitesh Tandel</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4116</link>
		<dc:creator>Mitesh Tandel</dc:creator>
		<pubDate>Tue, 20 Apr 2010 13:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4116</guid>
		<description>Hello Burak,

I have followed all lines of code. But when I logged in using right username &amp; password, It doesn&#039;t logged in and asked me again with one notice as follows,

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: user_id

Filename: models/current_user.php

Line Number: 16

can you help me pls?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello Burak,</p>
<p>I have followed all lines of code. But when I logged in using right username &amp; password, It doesn&#8217;t logged in and asked me again with one notice as follows,</p>
<p>A PHP Error was encountered</p>
<p>Severity: Notice</p>
<p>Message: Undefined variable: user_id</p>
<p>Filename: models/current_user.php</p>
<p>Line Number: 16</p>
<p>can you help me pls?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4084</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Apr 2010 07:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4084</guid>
		<description>Bah... forgot parent::Controller() .... also, the code should be if(!Current_User::user()) { redirect(&#039;login&#039;); , otherwise I ended up getting index() twice...

Anyhow, thanks for an excellent tutorial, sir!  I did have one other more relevant question:  Just to test security, I logged in correctly to my users controller, then copied the url, logged out, and tried to access the users area with the url I&#039;d pasted.  As hoped for, I was redirected to my login controller and a blank login form.  Suppose I want to pass an error message which says something to the effect of &#039;You are not currently logged in!&#039; when that happens.  What&#039;s the best way to achieve something like this?

Thanks again!</description>
		<content:encoded><![CDATA[<p>Bah&#8230; forgot parent::Controller() &#8230;. also, the code should be if(!Current_User::user()) { redirect(&#8217;login&#8217;); , otherwise I ended up getting index() twice&#8230;</p>
<p>Anyhow, thanks for an excellent tutorial, sir!  I did have one other more relevant question:  Just to test security, I logged in correctly to my users controller, then copied the url, logged out, and tried to access the users area with the url I&#8217;d pasted.  As hoped for, I was redirected to my login controller and a blank login form.  Suppose I want to pass an error message which says something to the effect of &#8216;You are not currently logged in!&#8217; when that happens.  What&#8217;s the best way to achieve something like this?</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4083</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Apr 2010 07:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4083</guid>
		<description>Hi Burak,

I&#039;m trying to create a &#039;users&#039; controller which will contain all protected content for logged in users.  I&#039;m trying to use the singleton to do a check to see if the user is logged in in the __construct function like so:

class Users extends Controller {
	function __construct() {
		if(Current_User::user()) {
			$this-&gt;index();
		} else {
			redirect(&#039;login&#039;);
		}
	}

When I do that, however, I get: Fatal error: Class &#039;Current_User&#039; not found in... etc.  I thought the Current_User class was autoloaded?  The file current_user.php is inside of my models directory...  Any idea how I can resolve this?

Much thanks!</description>
		<content:encoded><![CDATA[<p>Hi Burak,</p>
<p>I&#8217;m trying to create a &#8216;users&#8217; controller which will contain all protected content for logged in users.  I&#8217;m trying to use the singleton to do a check to see if the user is logged in in the __construct function like so:</p>
<p>class Users extends Controller {<br />
	function __construct() {<br />
		if(Current_User::user()) {<br />
			$this-&gt;index();<br />
		} else {<br />
			redirect(&#8217;login&#8217;);<br />
		}<br />
	}</p>
<p>When I do that, however, I get: Fatal error: Class &#8216;Current_User&#8217; not found in&#8230; etc.  I thought the Current_User class was autoloaded?  The file current_user.php is inside of my models directory&#8230;  Any idea how I can resolve this?</p>
<p>Much thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haqqi</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-4031</link>
		<dc:creator>Haqqi</dc:creator>
		<pubDate>Sun, 18 Apr 2010 02:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-4031</guid>
		<description>I&#039;m new in PHP and CI.
If u use static variable of user, will it be shared among each user? I mean, if the application is for multi-user, will the data in static variable be shared? For example, when another user has been logged in, and then i want to log in too, is the data replaced?</description>
		<content:encoded><![CDATA[<p>I&#8217;m new in PHP and CI.<br />
If u use static variable of user, will it be shared among each user? I mean, if the application is for multi-user, will the data in static variable be shared? For example, when another user has been logged in, and then i want to log in too, is the data replaced?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fahri firdausillah</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-3595</link>
		<dc:creator>fahri firdausillah</dc:creator>
		<pubDate>Thu, 08 Apr 2010 17:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-3595</guid>
		<description>Thanks for your tutorial, it&#039;s very great for me. I use CI several times, but never user Doctrine especially combined with CI. Your tuts is very inspiring me.
But i have one problem here, in one of my project i have to use multiple databases. With CI i can use multiple db config to do that, or i can just use $this-&gt;db-&gt;query(&quot;...&quot;) to access table in other database (in case my mysql user have privilleges to access both database). I don&#039;t know how to do the same things in Doctrine. 
- Can i use multiple db config in Doctrine (especially combined with CI)?
- can i use plain Sql Query in Doctrine to access multiple database?
Thanks for the answer, and i will much happy if there are any tuts showing the sample.....</description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial, it&#8217;s very great for me. I use CI several times, but never user Doctrine especially combined with CI. Your tuts is very inspiring me.<br />
But i have one problem here, in one of my project i have to use multiple databases. With CI i can use multiple db config to do that, or i can just use $this-&gt;db-&gt;query(&#8221;&#8230;&#8221;) to access table in other database (in case my mysql user have privilleges to access both database). I don&#8217;t know how to do the same things in Doctrine.<br />
- Can i use multiple db config in Doctrine (especially combined with CI)?<br />
- can i use plain Sql Query in Doctrine to access multiple database?<br />
Thanks for the answer, and i will much happy if there are any tuts showing the sample&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angela</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-3331</link>
		<dc:creator>Angela</dc:creator>
		<pubDate>Fri, 02 Apr 2010 15:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-3331</guid>
		<description>Thank you for the tutorial! I think I&#039;m learning a lot from these. Wish there were more.

I am getting an error message though, when I try to create a user (it is called character in my app):

Fatal error: Uncaught exception &#039;Doctrine_Table_Exception&#039; with message &#039;Class &quot;CI_Base&quot; must be a child class of Doctrine_Record&#039; in C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php:319 Stack trace: #0 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php(256): Doctrine_Table-&gt;initDefinition() #1 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1126): Doctrine_Table-&gt;__construct(&#039;Characters&#039;, Object(Doctrine_Connection_Mysql), true) #2 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Core.php(1095): Doctrine_Connection-&gt;getTable(&#039;Characters&#039;) #3 C:\xampp\htdocs\legion\system\application\libraries\MY_Form_validation.php(16): Doctrine_Core::getTable(&#039;Characters&#039;) #4 C:\xampp\htdocs\legion\system\libraries\Form_validation.php(630): MY_Form_validation-&gt;unique(&#039;test&#039;, &#039;Characters.name&#039;) #5 C:\xampp\htdocs\legion\system\libraries\Form_validation.php(337): CI_Form_validation-&gt;_execute(Array, Array, &#039;test&#039;) # in C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php on line 319</description>
		<content:encoded><![CDATA[<p>Thank you for the tutorial! I think I&#8217;m learning a lot from these. Wish there were more.</p>
<p>I am getting an error message though, when I try to create a user (it is called character in my app):</p>
<p>Fatal error: Uncaught exception &#8216;Doctrine_Table_Exception&#8217; with message &#8216;Class &#8220;CI_Base&#8221; must be a child class of Doctrine_Record&#8217; in C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php:319 Stack trace: #0 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php(256): Doctrine_Table-&gt;initDefinition() #1 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1126): Doctrine_Table-&gt;__construct(&#8217;Characters&#8217;, Object(Doctrine_Connection_Mysql), true) #2 C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Core.php(1095): Doctrine_Connection-&gt;getTable(&#8217;Characters&#8217;) #3 C:\xampp\htdocs\legion\system\application\libraries\MY_Form_validation.php(16): Doctrine_Core::getTable(&#8217;Characters&#8217;) #4 C:\xampp\htdocs\legion\system\libraries\Form_validation.php(630): MY_Form_validation-&gt;unique(&#8217;test&#8217;, &#8216;Characters.name&#8217;) #5 C:\xampp\htdocs\legion\system\libraries\Form_validation.php(337): CI_Form_validation-&gt;_execute(Array, Array, &#8216;test&#8217;) # in C:\xampp\htdocs\legion\system\application\plugins\doctrine\lib\Doctrine\Table.php on line 319</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ibrahim</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-3329</link>
		<dc:creator>Ibrahim</dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-3329</guid>
		<description>Thank you so much Burak. I so benefits from your tuts</description>
		<content:encoded><![CDATA[<p>Thank you so much Burak. I so benefits from your tuts</p>
]]></content:encoded>
	</item>
</channel>
</rss>
