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
82
votes
5 answers

PHP: What does __('Some text') do?

Reading about Kohana templates and saw something I've never seen before: $this->template->title = __('Welcome To Acme Widgets'); What does __('Text') mean? What is it? What does it do?
Svish
  • 152,914
  • 173
  • 462
  • 620
63
votes
6 answers

client denied by server configuration

I try to setup kohana 3 project as virtual host. Config: DocumentRoot "D:/Devel/matysart/matysart_dev1" ServerName matysart-one.local ServerAlias www.matysart-one.local DirectoryIndex index.php Error…
Codium
  • 3,200
  • 6
  • 34
  • 60
61
votes
12 answers

Favourite Kohana Tips & Features?

Inspired from the other community wikis, I'm interested in hearing about the lesser known Kohana tips, tricks and features. Please, include only one tip per answer. Add Kohana versions if necessary. This is a community wiki.
The Pixel Developer
  • 13,282
  • 10
  • 43
  • 60
42
votes
4 answers

Apache server ignores .htaccess

I'm trying to get a website working on my test environment, but somehow it is not working. I can load the normal index page, but when I want to access /page/test it throws an error saying the page does not exists. My log says: File does not exist:…
Rene Terstegen
  • 7,911
  • 18
  • 52
  • 74
34
votes
4 answers

Kohana 3: Example of model with validation

I find examples and tutorials about models and about validation. And I places that say the validation (or most of it at least) should be in the model, which I agree with. But I can't any examples or tutorials that show how that should be done.…
Svish
  • 152,914
  • 173
  • 462
  • 620
24
votes
2 answers

How is Kohana different from CodeIgniter?

I've been using CodeIgniter for a long time, however lately I've been feeling the need to move to a more advanced/more OOP framework. Kohana seems to be an often recommended option, my question is, how exactly is Kohana different from CodeIgniter? A…
Ali
  • 261,656
  • 265
  • 575
  • 769
18
votes
3 answers

Kohana 3 get current controller/action/arguments

In Kohana 2 you could easily get that information like this: echo router::$controller; echo router::$method; echo router::$arguments[0-x]; Any idea how that works in Kohana 3? Thanks in advance!
n00b
  • 16,088
  • 21
  • 56
  • 72
15
votes
12 answers

TCPDF HTML with Special Characters displays empty PDF file

I am using TCPDF Library Version: 5.9.011. I am trying to execute HTML layout as PDF. For which I tried with example provide with the site $html = '

HTML Example

List

Some special characters: < € € € & è è…
Asif Mulla
  • 1,652
  • 2
  • 22
  • 32
14
votes
5 answers

"WHERE column IS NOT NULL" with Kohana v3 Query Builder

Is it possible with Kohana v3 Query Builder to use the IS NOT NULL operator? The where($column, $op, $value) method requires all three parameters and even if I specify ->where('col', 'IS NOT NULL', '') it builds and invalid query eg. SELECT * FROM…
MeatFlavourDev
  • 1,149
  • 1
  • 11
  • 22
13
votes
2 answers

How do I write log messages in Kohana 3.2?

Ok I've tried searching all over but can't seem to get just a simple straight forward answer. I want to write log messages (INFO, ERROR, etc.) to the Kohana log file /application/logs/YYYY/MM/DD.php. How do I do it?
krische
  • 1,010
  • 3
  • 11
  • 17
11
votes
3 answers

Kohana PHP - Multiple apps with shared model

I'm using Kohana 3 to create a website that has two applications, an admin application and the actual site frontend. I have separated my folders to have the two applications separated, so the hierarchy looks as follows: /applications /admin …
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
11
votes
3 answers

What Can I Use the HMVC Architecture for?

the PHP framework I am using (Kohana) recently implemented the HMVC architecture. I have read that it's a layered mvc where requests are made on top of each other. It is a bit like ajax, just purely server-side. I have applied it a bit on some…
yretuta
  • 7,963
  • 17
  • 80
  • 151
10
votes
3 answers

Securing Cookies and Sessions

The issue I'm having, which may not be solvable, is as follows: I have a client that is a large organization of 1,500+ users at 7-8 different locations. The application is a PHP application build on the Kohana v3.0 framework. The organization sits…
norris-md
  • 306
  • 2
  • 10
10
votes
1 answer

Displaying same page differently for users with different roles

I wanted some suggestions from someone with experience in php. I am making a website in php which will have 4 kinds of users : 1. guest(unregistered), 2. registered, 3. registered with special privilages, 4. admins So the same page will be…
Paras Narang
  • 621
  • 1
  • 8
  • 20
10
votes
4 answers

Kohana framework - Ajax implementation best practices

I am developing an application in Kohana framework. I would like to know the best practices in implementing ajax in kohana. So far I am using different controller for ajax. I think the important concerns will be minimizing the resources requirement…
Shameer
  • 3,036
  • 1
  • 21
  • 27
1
2 3
56 57