<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>探究本源的最新动态 - Kohana 中文</title>
    <link>http://kohana.cn/user/1000862</link>
    <generator>KohanaPHP</generator>
    <item>
      <title>kohana 2.3.4版本中加载Model出错</title>
      <link>http://kohana.cn/group/learner/topic/1000319</link>
      <description>&lt;p&gt;Fatal error: Call to undefined method Model::_construct() in C:\xampp\htdocs\kohana\application\models\album.php on line 8&lt;/p&gt;

&lt;p&gt;在application/model/下的代码是：加载Model时被警告说该函数不存在。下面的parent::_construct();就运行错误了&lt;/p&gt;

&lt;p&gt;&lt;?php&lt;br /&gt;
defined('SYSPATH')OR die('No direct access allowed');&lt;br /&gt;
class Album_Model extends Model&lt;br /&gt;
{&lt;br /&gt;
private $album_table;&lt;br /&gt;
public function __construct()&lt;br /&gt;
{&lt;br /&gt;
parent::_construct();&lt;br /&gt;
//$this-&gt;album_table='albums';&lt;/p&gt;

&lt;p&gt;}&lt;br /&gt;
}&lt;/p&gt;</description>
      <author>探究本源</author>
      <pubDate>Thu, 20 Oct 2011 10:02:45 +0800</pubDate>
    </item>
  </channel>
</rss>

