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
8
votes
3 answers

Can I setup routes in Kohana to only match particular HTTP methods (GET/POST/etc)

I'm exploring a few PHP frameworks and the current front runner is Kohana. Having a Rails background I've become used to what the rails community calls "RESTful" routes. So a "GET /posts" displays all posts and is handled by the index method of the…
James Healy
  • 14,557
  • 4
  • 33
  • 43
7
votes
4 answers

Role based access control - correct MVC pattern

I started using the MVC pattern a half year ago, and I still have some misunderstandings. Now I want to implement a role based access control in my application. However, my question is not about RBAC, it is about MVC. My implementation of RBAC is…
Tamás Pap
  • 17,777
  • 15
  • 70
  • 102
7
votes
3 answers

How Scalable is Codeigniter V Other PHP Frameworks?

How Scalable is Codeigniter V Other PHP Frameworks? I'm new to Codeigniter and love to know how scalable it is when compared to other PHP Frameworks?
Imran
  • 11,350
  • 20
  • 68
  • 78
7
votes
1 answer

Get full site home URL in Kohana 3

I installed Kohana (in a "kohana" directory in my xampp public folder) and I'm trying to get the full base URL with the domain and protocol. When I try: url::base(); I only get /kohana/ back as a result, but want http://localhost/kohana/…
Marek
  • 71
  • 1
  • 2
7
votes
3 answers

Kohana 3 - Get URLs

could you help me with following questions. How do i get the: absolute/relative current url http://www.example.com/subdir/controller/action /subdir/controller/action absolute/relative application url http://www.example.com/subdir/ /subdir/ I…
n00b
  • 16,088
  • 21
  • 56
  • 72
7
votes
4 answers

When sending headers to download a PDF, Safari appends .html

Here is the request and response headers http://www.example.com/get/pdf GET /~get/pdf HTTP/1.1 Host: www.example.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Accept:…
alex
  • 479,566
  • 201
  • 878
  • 984
7
votes
3 answers

PHPUnit - test MVC controller with $_POST variable

I'm starting work with PHPUnit with Kohana. My application have many controllers which simply takes data from some form, validates and inserts/updates/deletes into/-/from database. How should I write a test cases for that. I know that if I want to…
Lukasz Lysik
  • 10,462
  • 3
  • 51
  • 72
7
votes
3 answers

Call a Kohana helper from cron (or any URL)

I need to call a Kohana helper (or any php MVC framework) from a Cron job. How can I do this? The server is Linux, so, I can only think of two possible solutions: 1- Open an URL from the cron job, which hits a controller and does what it has to…
Petruza
  • 11,744
  • 25
  • 84
  • 136
7
votes
3 answers

kohana transaction with orm

is it possible (how) to use mysql transactions and rollbacks using kohana ORM ?
gpilotino
  • 13,055
  • 9
  • 48
  • 61
7
votes
7 answers

Proper Design of a MVC Project

I've been using Kohana for a couple months now, and am still relatively new to the MVC style of organizing your code/presentation/db-layer. Unfortunately, while there is plenty of documentation on how to create a controller, establish a view, and…
Sampson
  • 265,109
  • 74
  • 539
  • 565
6
votes
6 answers

How to set up .htaccess for Kohana correctly, so that there is no ugly "index.php/" in the URL?

After 2 hours now I couldn't get it right. The Kohana installation is accessible directly under my domain, i.e. "http://something.org/" Instead of http://something.org/index.php/welcomde/index I want to have URLs like…
Thanks
  • 40,109
  • 71
  • 208
  • 322
6
votes
3 answers

Architecture: API as core for a website & mobile-app

I have different questions about a full architecture idea. I hope someone with great experience could help me out because I am pretty much getting stuck in all possibilities. I'm planning to rewrite a community website. Our customer wants to make…
mauserrifle
  • 604
  • 1
  • 7
  • 17
6
votes
1 answer

Is it possible to re-use a Kohana ORM query for the row count?

So I have my query as so... $records = ORM::factory('category'); Add a WHERE clause as so... $records = $records->where('categoryid', 'LIKE', 'aa'); Grab a count for pagination as so... $count = $records->count_all(); And my where clause gets…
Serhiy
  • 2,505
  • 3
  • 33
  • 49
6
votes
3 answers

Getting Error 324 (net::ERR_EMPTY_RESPONSE). when using memcache in kohana

i'm getting this error when i try to use memcache using kohana. all i did was changed the hostname in the configuration file and used $cache = Cache::instance('memcache');. i can telnet my memcached servers so probably the problem is not there. any…
gianebao
  • 17,718
  • 3
  • 31
  • 40
6
votes
1 answer

PHP kohana framework template rendering issue - blank page

I have created one function to fetch the user inbox message and display it using "user-profile-messages" templates. Also I have added functionality (in the same function) to deleting bulk inbox message if user clicked on delete all button. But…
Rahul
  • 2,511
  • 3
  • 20
  • 20