<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>最新讨论话题 - Kohana 中文</title>
    <link>http://kohana.cn/</link>
    <generator>KohanaPHP</generator>
    <item>
      <title>如何开始使用数据库查询器</title>
      <link>http://kohana.cn/group/document/topic/1000322</link>
      <description>&lt;p&gt;直接开启database模块后，数据库这样用：&lt;br /&gt;
$this-&gt;db=Database::instance();&lt;br /&gt;
$this-&gt;db-&gt;query("select * from table&quot<img src="http://kohana.cn/media/images/icons/emoticon/wink.png" class="emoticon" />;&lt;/p&gt;

&lt;p&gt;我想达到如下的代码效果：&lt;br /&gt;
$this-&gt;db&lt;br /&gt;
-&gt;select('*')&lt;br /&gt;
-&gt;from($this-&gt;revision_table)&lt;br /&gt;
-&gt;where(array('sku' =&gt; $sku))&lt;br /&gt;
-&gt;orderby('created', 'ASC')&lt;br /&gt;
-&gt;get()&lt;br /&gt;
-&gt;result_array(FALSE);&lt;br /&gt;
这个要怎么启用呢，使用哪个类，要怎么配置？&lt;/p&gt;</description>
      <author>wancy86</author>
      <pubDate>Wed, 09 May 2012 11:16:07 +0800</pubDate>
    </item>
    <item>
      <title>请教Kohana3.2 Validation 和 Valid 使用的问题</title>
      <link>http://kohana.cn/group/learner/topic/1000321</link>
      <description>&lt;p&gt;请问各位朋友&lt;br /&gt;
前版本Validate中的filter和callback在3.2中被什么替代了呀&lt;br /&gt;
要如何使用？&lt;br /&gt;
还有XSS也找不到了&lt;br /&gt;
3.2都是怎么样做数据的过滤和安全处理的&lt;br /&gt;
谢谢啊&lt;/p&gt;</description>
      <author>火柴天常</author>
      <pubDate>Sat, 31 Dec 2011 16:30:03 +0800</pubDate>
    </item>
    <item>
      <title>怎么样从前台页面传一个参数给controller类？</title>
      <link>http://kohana.cn/group/learner/topic/1000320</link>
      <description>&lt;p&gt;用以前的版本的时候直接这样写/controller/method/para就可以，现在怎么不行了？不用get或 post的方式。&lt;/p&gt;</description>
      <author>wells</author>
      <pubDate>Fri, 21 Oct 2011 11:22:26 +0800</pubDate>
    </item>
    <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>
    <item>
      <title>官网新下的kohana-3.1.4安装出问题</title>
      <link>http://kohana.cn/group/learner/topic/1000318</link>
      <description>&lt;p&gt;一开始我下的是最新版v3.2.0，但是提示：&lt;br /&gt;
HTTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: kohana/index.php&lt;br /&gt;
然后我以为是版本的问题，我就下了个v3.1.4，但是还是出这个问题。&lt;br /&gt;
这里貌似不能发图片，我贴个我在CSDN上发的贴。&lt;br /&gt;
http://topic.csdn.net/u/20111017/23/6c86607e-ad85-4deb-acb5-36db04860919.html?13308&lt;br /&gt;
测试的时候，所有的都pass啊。&lt;br /&gt;
我看到有些资料说要使用 github 安装，windows系统也是这样？&lt;br /&gt;
我刚学框架，大学帮下忙。&lt;br /&gt;
先谢了。&lt;/p&gt;</description>
      <author>竹蜗子</author>
      <pubDate>Tue, 18 Oct 2011 12:40:10 +0800</pubDate>
    </item>
    <item>
      <title>请问我在实例化这个验证类的时候说不存在，是怎么回事？</title>
      <link>http://kohana.cn/group/learner/topic/1000317</link>
      <description>&lt;p&gt;是不是我要写些什么？我刚学看文档照着里面的弄了也不对，我的版本是kohana3.2.0的，麻烦哪位同仁会请指教一下。$post = new Validation($_POST);&lt;/p&gt;</description>
      <author>diandian</author>
      <pubDate>Thu, 13 Oct 2011 14:54:49 +0800</pubDate>
    </item>
    <item>
      <title>请教调用模板问题，谢谢</title>
      <link>http://kohana.cn/group/learner/topic/1000316</link>
      <description>&lt;p&gt;在application\classes\controller\下建立一个控制器hello.php，代码如下&lt;br /&gt;
&lt;?php defined('SYSPATH') or die('No direct script access.');&lt;br /&gt;
class Controller_Hello extends Controller{&lt;br /&gt;
public function action_index(){&lt;br /&gt;
$this-&gt;request-&gt;response = View::factory('hello');&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;在application\views\下建立模板文件hello.php，代码如下&lt;br /&gt;
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"&gt;&lt;br /&gt;
&lt;html&gt;&lt;br /&gt;
&lt;head&gt;&lt;br /&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=GBK"&gt;&lt;br /&gt;
&lt;title&gt;模板文件&lt;/title&gt;&lt;br /&gt;
&lt;/head&gt;&lt;br /&gt;
&lt;body&gt;&lt;br /&gt;
这里是模板文件&lt;br /&gt;
&lt;/body&gt;&lt;br /&gt;
&lt;/html&gt;&lt;/p&gt;

&lt;p&gt;访问http://localhost/www/demo/index.php/hello/，却无法调用模板文件&lt;br /&gt;
请教各位是哪里的设置出了问题，谢谢&lt;/p&gt;</description>
      <author>火柴天常</author>
      <pubDate>Tue, 11 Oct 2011 21:18:09 +0800</pubDate>
    </item>
    <item>
      <title>使用ORM还是Database?</title>
      <link>http://kohana.cn/group/learner/topic/1000315</link>
      <description>&lt;p&gt;对于列表数据(eg. 用户列表) 在Controller中应该使用ORM 还是 Database？&lt;br /&gt;
个人认为ORM会规范些。但ORM返回结果只有as_object一种格式。有点不知所措了。。&lt;/p&gt;</description>
      <author>Shunnarmeng</author>
      <pubDate>Sun, 18 Sep 2011 02:26:46 +0800</pubDate>
    </item>
    <item>
      <title>如何调用一个controller类？</title>
      <link>http://kohana.cn/group/learner/topic/1000314</link>
      <description>&lt;p&gt;如何调用一个controller类？从一个controller调用另一个controller里的方法。&lt;/p&gt;</description>
      <author>wells</author>
      <pubDate>Thu, 01 Sep 2011 18:26:54 +0800</pubDate>
    </item>
    <item>
      <title>请教一段kohana模板分离的代码</title>
      <link>http://kohana.cn/group/learner/topic/1000313</link>
      <description>&lt;p&gt;自己试着整了一下 kohana+smarty 实现模板分离，但是由于能力有限，没有整理成功，希望能够有高手赐教，帮小妹实现kohana模板分离的愿望。&lt;/p&gt;</description>
      <author>璐璐alisa</author>
      <pubDate>Tue, 16 Aug 2011 17:31:25 +0800</pubDate>
    </item>
  </channel>
</rss>

