Questions tagged [kohana]

HMVC PHP5 framework that provides a set of components for building web applications. Be sure to mention specific version when asking.

Due to the differences in the codebase between and , as well as each minor version, please be specific in detailing which version of Kohana you are using when asking your question.

Kohana is an elegant framework that provides a rich set of components for building web applications.

It requires very little configuration, fully supports and , and provides many of the tools that a developer needs within a highly flexible system. The integrated class auto-loading, cascading filesystem, highly consistent , and easy integration with vendor libraries make it viable for any project, large or small. The support of has been started with

Popular Questions

Resources

See also

2221 questions
5
votes
1 answer

Kohana accessing client ip

I am using kohana 3.2, and i would like to acces client ip from request class, in documentation i can see public static string $client_ip which should contain client ip, now if i try to access it i like so: Request::$client_ip; I get: string(3)…
Linas
  • 4,380
  • 17
  • 69
  • 117
4
votes
2 answers

git submodule init ignore failed

I just pulled https://github.com/kolanos/kohana-universe and now I'm trying to update all the modules running: git submodule update --init --recursive Some of the repos are wrong or not existent anymore, and the command breaks in the middle. Is…
Pierre
  • 4,976
  • 12
  • 54
  • 76
4
votes
4 answers

Kohana: Which alternatives are available?

Since Kohana seems to be very poor documented and my time is valuable, I may want to stick with something that lets me get a web platform faster up and running. I know it forked from CodeIgniter. I actually like the idea of Kohana, but since the big…
Thanks
  • 40,109
  • 71
  • 208
  • 322
4
votes
1 answer

Seamlessly using a template system with Kohana?

I'm planning to use Mustache templates along with Kohana in my next project. So what I'm trying to do is to make Kohana seamlessly use Mustache whenever rendering a view. For example, I would have this file in my views folder: myview.mustache Then I…
laurent
  • 88,262
  • 77
  • 290
  • 428
4
votes
1 answer

Why does Kohana use before() and after()

I've just started having a play with Kohana, coming from CodeIgniter and straight php. I was wondering why Kohana uses the before() and after() functions rather than normal constructors and destructors?
Cubed Eye
  • 5,581
  • 4
  • 48
  • 64
4
votes
2 answers

Kohana database config settings for ORM

How do I select which database config my ORM should use? The docs only mentions how to setup the config and select it when using the pure database method. Not when using an ORM. Here is my current config: controller
Shawn Mclean
  • 56,733
  • 95
  • 279
  • 406
4
votes
2 answers

many-to-many relationship on kohana 3.2

I've got some trouble trying to make this work. I have 2 models, User_Pro and Category. I read the relationships documentation on kohana guide and I understand i need to define a $_has_many relationship on the User_Pro and Category models and create…
Xavier
  • 53
  • 1
  • 4
4
votes
3 answers

How to configure SQLite in Kohana 3?

I'm struggling to find any information on how to configure SQLite in Kohana 3.2. I mainly need to know: What should I set hostname, database, username and password to (with default user and no password)? Also, how can I set the path to the SQLite…
laurent
  • 88,262
  • 77
  • 290
  • 428
4
votes
1 answer

Kohana 3.2 - Get referrer URI

I'm attempting to get the referrer URI in Kohana 3.2 using the following code: $referrer = $this->request->referrer(); var_dump($referrer); However the function returns NULL, I'm expecting it to return the page I left to get to this one. Is that…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
4
votes
1 answer

Lower case column names when using SELECT

I'm using the Kohana framework and I need to convert column names to lowercase. I don't have control of the db table structure. I want to do the following: SELECT LOWER(*) FROM ..... but MYSQL does not like that. Whats the proper way of outputting…
Clutch
  • 7,404
  • 11
  • 45
  • 56
4
votes
2 answers

MySQL - How to query items by tags, order by matched tag count

My schema looks something like this: items ( id, title, blah ) tags (id, name ) item_tags ( item_id, tag_id ) I want to list all items, where the item's tags are "in" an array of selected tags, and then order by the number of tags that match the…
tom
  • 718
  • 8
  • 15
4
votes
1 answer

Custom Exception Handling in Kohana3

I have a requirement to create custom exception for the exceptions generated by my app/module. I want to consolidate all the exception classes in one place and handle the exceptions in one place. I might have generic exceptions, like mentioned…
Shrinath
  • 7,888
  • 13
  • 48
  • 85
4
votes
3 answers

How to Debug Uploadify?

I don't know how to debug Uploadify. All seems to be working, but there are no actual file uploaded. From browser... Upladify event prints "Done!". Before I used Uploadify, PHP code worked... so I don't know where is the problem.
daGrevis
  • 21,014
  • 37
  • 100
  • 139
4
votes
1 answer

Should I make this a Different Module in HMVC Codeigniter?

I'm just getting started using HMVC in Codeigniter. The main module is a news/blog site called 'blog'. I want users to be able to log in to comment, so I have authentication files (tank auth actually). Now I also want the users to have their own…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
4
votes
1 answer

Limiting result using ORM kohana

I have written code ORM::factory('cds')->find_all(1, 2); It is returning all row . But according to documentation it should return 2 row. what's wrong in the code ? http://docs.kohanaphp.com/libraries/orm
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186