If i try to connect on localhost with xampp to db on kohana (3.1.2), i get this error: <p><strong>Database_Exception [ 0 ]: ~ MODPATH\database\classes\kohana\database\mysql.php [ 67 ]</strong></p> ...
If i try to connect on localhost with xampp to db on kohana (3.1.2), i get this error: <p><strong>Database_Exception [ 0 ]: ~ MODPATH\database\classes\kohana\database\mysql.php [ 67 ]</strong></p> ...
上面的那篇文章中,已经详细的描述了如何进行kohana的配置 但是,还有一点不明却,就是关于URL重写。 如果按照上面的指导配置完,然后通过http://hostname/basename/controllername/actionname是无法访问到我们写...
echo Request::factory() ->execute() ->send_headers() ->body(); /* 1.Request::factory() 通过request类来获取基本参数$_SERVER和uri 同时new Request();得到new Request_Client_Internal()或new ...
以下记录的是kohana的controller和view一、在kohana/application/view新建index.php,代码如下htmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
I am new to the world of Kohana/...
由于历史原因,有个kohana3.2的站点需要搬迁到php5.5上来,但php5.5已经不支持mysql_connect()这个函数了,...Kohana_Exception [ 0 ]: Database method list_columns is not supported by Kohana_Database_PDO ...
<p>I have a simple crud application in Kohana 3.3, with a few different types of data or models. Let’s say those models are: <li>Users <li>Locations <li>Skills <p>I have a table for each of those...
kohana中文社区找不到什么有用的资料去学习KOHANA框架了,今天在KOHANA官方网站学习了一下,整理了这篇博客,都是英文的。kohana框架根据官方网站翻译的增删改查,非常完整。希望对你有帮助。
<pre><code> Kohana::plugins(array( 'plugin_1' => PLUGPATH.'plugin_1', // Plugin 1 'plugin_2' => PLUGPATH.'plugin_2', // Plugin 2 // and so on )); </code></pre> <p>And what I must to do to ...
<p>i have a little problem with creating an image and writing a text on it in Kohana. My code works fine if i use a simple php, but i can't integrat it in Kohana framework controller and action. when ...
Kohana起源于Codeigniter(CI),CI是EllisLab的开源作品。他们有很多相似的地方,但是Kohana的所有代码是重新编写或完全改写了。你可以访问Kohana的官方网站, 它的主要特点如下:高安全性很轻巧容易学习使用MVC模式...
<p>I am very new trying some kohana code and encountering first problem already :( <p>just to make it quick this is my model <pre><code><?php class Model_Post extends ORM { } </code></pre> <p>...
Kohana是由社区构想,讨论,及编码。Kohana的开发者们来自世界各地,有着各自的天赋。这使得开发速度得以提高,并在短时间内提供bug修复以及反馈用户提出的建议。 3、GET,POST,COOKIE,SESSION数组都能按照预期的...
<p>On Kohana 2.3.4 I use the query string for parameters and use the input class to get the values. <p>localhost/home?id=1234 <p>Now that I migrated to Kohana 3.3.0, I am having a lot of trouble ...
1、控制器使用: Controller 1、接受参数 $this-&gt;request-&gt;param("key"); //返回的是route路由里定义胡参数befpre() Arr::get($_GET,'key'); //获取的是GET作用于里key对应的值 ...$th...
<p>I'm using Kohana 2. I would like to catch a database exception to prevent an error page when no connection to the server can be established. <p>The error displayed is <pre><code>system/libraries/...
Kohana can use the http extension for the Request_Client_External class.
<p>I have an issue with Kohana 3.3 and using different database configurations. I have a config/database.php with 'default' config and 'other' like this:</p> <pre><code>return array ( 'default' =&...
路由是Kohana中的难点之一: 前面知道:Controller::rediect("welcome/index");会访问控制器 welcome的index函数 其实它的原理就是 : 页面发出对控制器index函数的请求; 找到当前使用匹配的路由; 按...
<p>Scenario: I have a view to which i pass a kohana record-set object, and view will go through each record and display its values in appropriate format. In the view i have to alert user with a ...
<p>I am a newbie to PHP/Kohana application development. <p>In the web app i am developing , whenever a new request come to the controller i am required to check if the user is logged-in or is he ...
http://www.cnblogs.com/liushannet/archive/2010/08/19/1803209.html Cookie使用: &lt;?php echo Cookie::salt("abc ","def ");#得到保存到客户端的字符 ......
Kohana框架: $event_id = Arr::get($_GET, 'event_id'); $sql = 'SELECT CheckIn.BuildingID, CheckIn.buildingname, CheckIn.RoomID, CheckIn.RoomName, CheckIn.NumberofPeople, CheckIn.checkinTime, User.Fir
kohana nginx的配置 location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?kohana_uri=/$1 last; } index index.php index.html
kohana 3.3版本和smarty整合方法下载smart模板kohana配置smarty创建公共模板类控制器中引用smart创建视图文件 下载smart模板 到smarty官网下载核心程序 smarty-3.1.32版本,此处kohana用的是3.3版本 ...
<p>I have setup a new Kohana project which works fine with Models and Controllers. For this example I have stripped it right back to a single very basic Model for a User and a single Controller with a...
<pre><code>Kohana::init(array( 'base_url' => '/wypoczynek/', 'index_file' => false, )); Route::set('default', '(<controller>(/<action>(/<id>)))') ->defaults(array( '...
<p>I have a Kohana application running in the web root and everything is working fine. But when I try to add a subfolder to the root with non-kohana PHP code, I can't access it. Kohana still tries to ...
一.导入 ini_set('memory_limit', '512M'); require_once(Kohana::find_file('vendor', 'PHPExcel/PHPExcel/IOFactory')); $xls = $_FILES['xls']['tmp_name']; $error_msgs = array(); ...
<p>I am having problems using Kohana3. <p>Currently on development we use port 444 for https. </p> <p>If I redirect while I am on <pre><code>https://localhost:444 $this->request->redirect...