about 9 months ago - No comments
kohana版本: 2.34 PHPRPC介绍: PHPRPC 以下是实现kohana 使用 PHPRPC的具体实例,已经应用在一具体的项目中。功能不算强大,算是抛砖引玉吧。 Library 中 Rpc.php <?php defined(‘SYSPATH’) OR die(‘No direct access allowed.’); class RPC_Core { private static $instance; private static $data; private static $server; private $phprpc; public static function instance() { if (!isset(self::$instance)) { $class = __CLASS__; self::$instance = new $class; } return self::$instance; } public function __construct() { //self::$server
about 10 months ago - No comments
echo kohana::debug($orm_object->validate()->errors());
about 10 months ago - No comments
echo View::factory(‘profiler/stats’);
about 1 year ago - No comments
在这我将介绍下用kohana框架开发前一些准备工作,已经如何部署kohana到你的开发环境中。 步骤如下: 搭建 lamp环境 设置mod rewrite 模块 设置虚拟主机 设置kohana框架 我的环境如下: os: windows xp sp2 lamp:wampserver 2.o konana: v2.3 步骤如下: 1.安装 wampserver (安装文档请查看官方文档,不详细介绍) 2.设置mod rewrite 使用wampserver相对比较简单: 启动wamp server 点击系统小托盘中的wamp server 图标 选择apache->apache modules 将rewrite_module打钩(也可以自行选择自己需要的相关modules) 重新启动wamp server中的所有服务,使改动生效 3.设置自己的虚拟主机 1.点击系统托盘中的wamp server 图标 选择apache http.conf 这个文件,用编辑器打开 在文件底部添加: NameVirtualHost *:80 ServerName www.kohana.fj DocumentRoot D:wampwwwkohana 创建wampwwwkohana这个文件夹,重启apache生效 2.在系统hosts文件中添加 www.kohana.fj hosts文件路径:C:WINDOWSsystem32driversetchosts 在hosts最后一行添加 127.0.0.1