kohana php版本,php中kohana框架的配置

f5d7c874bff390f53f714777b7561085.png

我们对框架进行安装后,还不能完全的使用框架,因为还有一个配置的步骤没有进行。就拿最近学的kohana框架来说,因为本身的热度不高,所以有些小伙伴没有找到配置的方法。本篇对kohana框架的配置步骤进行了梳理,下面我们都来看看kohana框架配置有哪些内容吧

1、配置好nginx如下server

{

listen       80;

server_name  kohanademo.my.com ;

#server_name localhost;

index index.html index.htm index.php;

root  /mnt/hgfs/code/kohanademo;

location ~ ^(.*)svn\/ {

deny all;

}

location ~ \swp$ {

deny all;

}

location ~ .*\.php$

{

include fcgi.conf;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

expires off;

}

access_log  /data/logs/kohanademo.my.com.log  access;

}

reload一下nginx以后,浏览器输入http://kohanademo.my.com/查看运行

2、把kohana/install.php改名为install.php.back或者直接删除掉,接下来在kohana/application/bootstrap.php找到Kohana::init(array(

'base_url'   => '/',

));

修改为Kohana::init(array(

'base_url'   => '/kohanademo/',

));

3、然后在浏览器上输入http://kohanademo.my.com/就可以看到hello界面,配置结束。

以上就是php中kohana框架的配置,大家只要几号这三个步骤,然后根据上面的方法进行操作,就可以顺利配置kohana框架了。对于kohana框架还不了解的,可以看看之前的文章:php中kohana框架是什么https://www.py.cn/php/kuangjia/26968.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
转于:http://www.bsdcn.com/ Kohana 文手册[情人节专版] 本手册为 Kohana Docs v2.2 版本。 本手册制作日期:2009年02月10日 本手册由 icyleaf 制作 --- 参考 常规(General) Kohana 文件系统(Filesystem) - 汉化度 100% 配置(Configuration) - 汉化度 100% URLs - 汉化度 100% 路由(Routing) - 汉化度 99% 加载资源(Loading) - 汉化度 100% 控制器(Controllers) - 汉化度 100% 库(Libraries) - 汉化度 100% 辅助函数(Helpers) - 汉化度 100% 视图(Views) - 汉化度 100% 模型(Models) - 汉化度 100% 事件(Events) - 汉化度 85% 钩子(Hooks) - 汉化度 100% 错误处理(Error Handling) - 汉化度 100% 模块(Modules) - 汉化度 100% 国际化(i18n) - 汉化度 100% 日志(Logging) - 汉化度 100% 核心类(Core) 基准测试类(Benchmark Class) - 汉化度 100% 事件类(Event Class) - 汉化度 100% Kohana 类 - 汉化度 100% Unicode 类 - 汉化度 100% 视图库(View Class) - 汉化度 100% 核心库(Libraries) 缓存库(Cache Library) - 汉化度 100% 日历库(Calendar Library) - 汉化度 95% 验证库(Captcha Library) - 汉化度 99% 数据库库(Database Library) - 汉化度 40% 加密库(Encrypt Library) - 汉化度 100% 图像库(Image Library) - 汉化度 20% 输入库(Input Library) - 汉化度 0% ORM 库 - 汉化度 100% 分页库(Pagination Library) - 汉化度 99% 分析库(Profiler Library) - 汉化度 100% Session 库 - 汉化度 100% URI 库 - 汉化度 99% 校验库(Validation Library) - 汉化度 99% 辅助函数(Helpers) 数组辅助函数 - 汉化度 100% Cookie 辅助函数 - 汉化度 98% 日期辅助函数 - 汉化度 100% 下载辅助函数 - 汉化度 100% Email 辅助函数 - 汉化度 100% Expires Helper - 汉化度 0% Feed 辅助函数 - 汉化度 100% 文件辅助函数 - 汉化度 100% 表单辅助函数 - 汉化度 45% HTML 辅助函数 - 汉化度 100% Inflector Helper - 汉化度 0% 数字辅助函数 - 汉化度 100% 请求辅助函数 - 汉化度 80% 安全性辅助函数 - 汉化度 100% 文本辅助函数 - 汉化度 20% 上传辅助函数 - 汉化度 100% URL 辅助函数 - 汉化度 100% 校验辅助函数 - 汉化度 8% 附加模块(Addons) Archive 扩展 - 汉化度 99% Auth 扩展 - 汉化度 100% Gmaps 扩展 - 汉化度 100% Kodoc 扩展 - 汉化度 100% Payment 扩展 - 汉化度 99%

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值