”kohana“ 的搜索结果

     Kohana的路由规则是非常强大的。首先必须确认的是路由的匹配原则是有顺序,当一条路由规则匹配成功时,就停止匹配,也就是说在其后面定义的路由规则将不再被执行,因此最后的一条路由规则几乎可以匹配所有的路由规则...

     声明:基于公司使用的 Kohana 框架写的,不确定是否适用于原生 Kohana 附:Kohana 3 中文手册,传送门:http://www.lampblog.net/kohana3%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C/   1)请求和响应 1.1)获取请求参数...

     kohana 框架是一个相对比较小众的php框架 ,是有一个开源组织开发的mvc框架。 (1)Controller 篇 1.接受参数 $this -> request -> param('key') 返回的是route路由里定义的参数 Arr :: get($_GET, 'key...

      <p>After the transfer to a new server I'v got issue with get request. <p>for example <pre><code>class Controller_...<p>I see the reason is in kohana, but I cannot find it. <p>Any clue? </div>

     <p>we have used kohana 3.2. We need to changed the url xyz.com/ar measn the site working arabic lanugag and xyz.com/en means the site working in english language. Now the default 3 param is id. I ...

     利用kohana框架自定义404页面创建一个自定义的 404 页面不要忘记创建控制器和相应的视图文件修改.htaccess文件,加入以下内容 创建一个自定义的 404 页面 为了在你的 Kohana 应用程序中有一个自定义的 404 页面。...

     <pre><code>protected static function capture($kohana_view_filename, array $kohana_view_data) { // Import the view variables to local namespace extract($kohana_view_data, EXTR_SKIP); if (View::$_...

     init.php ('SYSPATH') or die('No direct script access.'); // Static file serving (CSS, JS, images) /* 当前url: /index.php/a/1 原始url: /index.php/test/test */ ...Route::set('a', 'a(/(/

     <p>As in Kohana 3.3 add a rule on the fly? Ie eg before saving the model User, if a certain condition is fulfilled, you need to add a rule city_id model must not be empty, try this: <pre><code>if ...

     Kohana:敏捷的 PHP 框架原文:Kohana: The Swift PHP Framework 作者:Cristian Gilè 中文翻译:淡水 Kohana 是 PHP5 的开发框架,基于 MVC 架构。你选择它的原因有好些,但是最主要的还是 安全,轻量级和简单。在...

      kohana nginx的配置 location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?kohana_uri=/$1 last; ...

     最近某项目需要新增一个站点,由于之前使用的是Kohana框架,所以在此基础上学习及开发。   Kohana是一个基于MVC模型构建的PHP5框架,它的目标旨在安全,重量轻,且易于使用。目前最新的稳定版本是3.3.0。下载...

     1开启ORM功能 在 bootstrap.php文件...Kohana::modules(array( ... 'database' => MODPATH.'database', 'orm' => MODPATH.'orm', ... )); 2创建模型 例如数据库中有一张表teachers 则需要在...

     <p>I'm attempting to use the session database with Kohana 3. <p>I have setup the mysql database as described here: <a href="http://kerkness.ca/wiki/doku.php?id=sessions_and_cookies" rel="nofollow">...

     1、可见性保护,自动加载,重载,接口,抽象类,单一模式 ...Kohana不限制你访问全局数据,但是提供胃XSS过滤和检查所有胡全局变量。 4、级联式资源 ,模块和继承。可以从你的系统,程序或者模块路径胡任何地方加...

     RewriteEngine On # Installation directory RewriteBase / # Protect hidden files from being viewed Files .*> Order Deny,Allow Deny From All Files> ...# Protect application and system files from be

10  
9  
8  
7  
6  
5  
4  
3  
2  
1