Questions tagged [kohana-3]

Kohana 3 is a HMVC (Hierarchical Model-View-Controller) PHP framework that places security, scalability and rapid development at its forefront.

Kohana is an HMVC (Hierarchical Model-View-Controller) PHP5 framework that provides a set of components for building web applications.

Kohana 3 is the first version of Kohana that supports HMVC.


Useful links


Related tags

846 questions
10
votes
3 answers

how can I get post data in Kohana 3 controller?

I've got a view with a form, so when user submits it - could anyone give me a link or a simple example of code Documentation and tutorials for Kohana 3 are so poor against CI .
shershen
  • 9,875
  • 11
  • 39
  • 60
10
votes
5 answers

Which is the best way to display 'flash messages' in kohana v3?

I would like to know the best way to display flash messages in Kohana v3? Some tutorials or examples would be helpful.
ramabarca
  • 298
  • 2
  • 14
10
votes
3 answers

Kohana3: Different .htaccess rewritebase and kohana base_url for dev and production environment

In my bootstrap.php I have the following: if($_SERVER['SERVER_NAME'] == 'localhost') Kohana::$environment = 'development'; else Kohana::$environment = 'production'; ... switch(Kohana::$environment) { case 'development': …
Svish
  • 152,914
  • 173
  • 462
  • 620
9
votes
6 answers

How to integrate Wordpress into Kohana 3

I now need to make a Kohana 3 site have a Wordpress blog. I've seen Kerkness' Kohana For Wordpress, but it seems to be the opposite of what I want. Here are the options I have thought of Style a template to look exactly like the Kohana site (time…
alex
  • 479,566
  • 201
  • 878
  • 984
9
votes
2 answers

How to arrange business logic in a Kohana 3 project

I'm looking for advice, tutorials and links at how to set up a mid-sized web application with Kohana 3. I have implemented MVC patterns in the past but never worked against a "formalized" MVC framework so I'm still getting my head around the…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
8
votes
6 answers

Multiple models vs single model

I have a question about MVC. Particularly about models. Suppose that I have a category table in my database. Now I would like to get results both for a single category for detailed view and multiple categories for a listing. Also I may need to…
Sinan
  • 5,819
  • 11
  • 39
  • 66
8
votes
4 answers

How To Start Using Kostache?

I just asked a question ( Templates In Kohana 3.1 ) about templates and now I know that I should use Kostache. It's a module for the Mustache template language. Anyway, I just enabled Kostache module for my Kohana 3.1 and all works. It's installed…
daGrevis
  • 21,014
  • 37
  • 100
  • 139
8
votes
2 answers

Smarty and Kohana

Is there a standard "official" way of using Smarty with Kohana 3? I see there are some options that seem less than ideal and will probably break when either Smarty or Kohana's minor version number increases. (as a side question, is it a good idea to…
cambraca
  • 27,014
  • 16
  • 68
  • 99
8
votes
3 answers

How to perform an external request in Kohana 3?

I've always used cURL for this sort of stuff, but this article got me thinking I could request another page easily using the Request object in Kohana 3. $url = 'http://www.example.com'; $update = Request::factory($url); $update->method…
alex
  • 479,566
  • 201
  • 878
  • 984
8
votes
2 answers

Get a random row from a database query in Kohana 3

I'm using the ORM module in Kohana 3 and instead of displaying the first row of a database result set, what query should I use in my code when I want to get a random row from a certain table?
ed.
  • 83
  • 1
  • 4
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
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
6 answers

I need an API. Where should I start?

I'm building a PHP application from scratch (using Kohana3 framework). I'm going to architect it so that I can use an API to access the data internally. At the same time, I want to eventually offer it to the public. I plan on using the RESTful…
Andres
  • 5,002
  • 6
  • 31
  • 34
6
votes
3 answers

Kohana 3 pagination

I'm really lost on how pagination works in kohana 3. Is there a good example of pagination in Kohana 3 anywhere?
AdamB
  • 3,101
  • 4
  • 34
  • 44
1
2
3
56 57