Questions tagged [kohana-2]

Older major version of Kohana PHP framework. Kohana PHP framework in version 2.x is a lightweight, flexible, easily extendable framework based on Code Igniter. It is coded using strict PHP5 OOP principles.

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

Kohana 2 has been superseded by Kohana 3.


Useful links


Related tags

20 questions
3
votes
1 answer

Kohana 2.3.4 : MySQL query to JSON

I am managing a project in Kohana 2.3.4 where I need to create an API for my android backend. What I am doing is send a query on my model which returns $result. $query = "select product.deal_id,product.deal_key,p..." $result =…
Zack
  • 1,527
  • 2
  • 20
  • 32
3
votes
1 answer

Kohana blank page, no errors

So, I've got this working on windows, and now I'm trying to get it to work on ubuntu. I have a Kohana 2.3 app I am developing, at localhost/myapp. When I navigate to that URL, I just get a blank screen. I can echo 'hello' in index.php and that…
Will
  • 1,893
  • 4
  • 29
  • 42
1
vote
2 answers

Kohana 2 Custom 404 error pages

In Kohana 2 you can override the default error page by creating a custom kohana_error_page.php file and putting it in your view directory. However, this overrides ALL errors not just 404's. In the case of 500 errors, I'd still like to get the…
Ray
  • 40,256
  • 21
  • 101
  • 138
1
vote
2 answers

Routing differences between Kohana v2 and v3

In Kohana 2, a controller function could have arguments in it without needing to write a route for it. url: /some/arg/is/here and in the controller, i could simply have four args, of any name, and they'd be automatically accessible from within the…
Kristian
  • 21,204
  • 19
  • 101
  • 176
1
vote
0 answers

install kohana into another website

I have a website that is built with kohana and another one that is built without any framework. I would like to include the first site into the second as an application ( you can write only a report with it). The first website it's not mine( I never…
re_ru
  • 129
  • 1
  • 1
  • 9
1
vote
1 answer

how to validate doc file in kohana 2.x

I am trying to validate files uploaded by users. I am using Kohana 2.3.4. I have applied validation rule for files. Only the doc, docx and PDF are allowed to be uploaded. But the problem is that it is validating the pdf but not the doc or docx.…
Sheraz
  • 71
  • 1
  • 1
  • 7
1
vote
1 answer

Kohana autoload Sub-Model

First of all, i'm using Kohana 2.3.4. My question is, as Kohana docs says, Models must be in application/Models but to improve my app, I would like to have several sub-folders with other Models. This is useful because I can have a file tree more…
andrealmeida
  • 91
  • 1
  • 3
  • 13
1
vote
1 answer

Kohana 2 deleted page warning

I'm using Kohana 2 on my admin panel. But when click Add New button, get Page Not Found warning. Its warning: The requested page was not found. It may have moved, been deleted, or archived. panel/system/core/Kohana.php [842]: The page you…
Karmacoma
  • 658
  • 1
  • 13
  • 37
0
votes
1 answer

Kohana 2.3.4 Admin File Structure

I'm looking to set up a Kohana 2.3.4 site, and would like to have a shared set of models/config/libraries/helpers, with both the front-end and the admin panel having their own controllers/views. What would be the best way to set up the file system…
Joe
  • 15,669
  • 4
  • 48
  • 83
0
votes
1 answer

working with check boxes in kohana 2

I am working with check boxes in php kohana 2. There are multiple check boxes depending on the query result and are displayed in view file. I can check any of them and save this information in DB. I have this in my POST array that [1] is on, [3] is…
json
  • 9
  • 1
  • 3
0
votes
1 answer

Kohana 2.3 establish has one relationship between two tables with primary keys not named as "id"

I have two tables. applicants and applicant_accounts. applicants ->applicant_id int(11) PK ->name varchar(45) applicant_accounts ->account_id int(11) PK ->applicant_id int(11) ->userName varchar(45) I've put this…
Alex Coroza
  • 1,747
  • 3
  • 23
  • 39
0
votes
0 answers

Using Kohana to grab specific fields/cells in a table with Model::factory()

I have a website built on the Ushahidi platform that uses the Kohana framework. Currently the site runs on Kohana 2.x. I would like to grab the report title for each report page on my website. The website in question is a number of "report"…
Doug Fir
  • 19,971
  • 47
  • 169
  • 299
0
votes
1 answer

explode() and maximum function nesting level

I can found in logs errors like:, Maximum function nesting level of '100' reached, aborting! The line is: $keys = explode('.', $keys); Any idea?
dragu
  • 11
  • 3
0
votes
1 answer

pre_filter() in Kohana 2.x not working as expected

As of Kohana 2.x documentation,pre_filter() will execute before validation of input fields but its not working as of expected. I'm trying to trim input values entered by user before validation as, $post =…
Mahesh.D
  • 1,691
  • 2
  • 23
  • 49
0
votes
0 answers

Migrating zend encrypted website between servers

I've been given the task of moving a zend encrypted website (the previous owners fell out with their developers and now they don't have the decrypted version). It's based on the php framework Kohana, (which unfortuantely i've never used) I've done…
MissCoder87
  • 2,669
  • 10
  • 47
  • 82
1
2