An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.
Questions tagged [kohana-3.2]
151 questions
0
votes
2 answers
Using Kohana Classes in Install.php
I'm attempting to run kohana classes in the install.php file but am having no luck i moved where its included in index.php down below bootstrap.php is loaded hoping that would work but its failing anyone got any ideas?
Thanks
Heres the relevant part…

Clark T.
- 1,470
- 2
- 11
- 25
0
votes
1 answer
Kohana installation: Logs Directory is not writable. Can't change the root of the directory in the bootstrap.php
I've just installed kohana in my new project temp.loc
I type in the browser temp.loc and Environment Tests says:
Cache Directory The /work/temp.loc/wwwroot/application/cache/ directory is not writable.
Logs Directory The…

Haradzieniec
- 9,086
- 31
- 117
- 212
0
votes
1 answer
Kohana: What is the best way to serve robots.txt?
In our web app we're redirecting all 404's to a pretty error page, but for robots.txt we need to server a default page (or return 404), else google won't index us.
Should I be adding a route to bootstrap.php specifically for…

David Parks
- 30,789
- 47
- 185
- 328
0
votes
1 answer
Proper way to handle pivot data operations (via has_many "through")
In a basic blog application, I have an articles module which allows me to select the related categories.
There are 3 tables; articles, article_categories, categories. 2 models, Model_Article and Model_Category extending ORM with has-many 'through'…

ephemeron
- 396
- 2
- 12
0
votes
1 answer
Kohana 3.2 Route::get
I'm trying to add simple links in kohana inside a view inside a loop .
Here is the code i have :
echo HTML::anchor(Route::get('parent')->uri(array('id' => $parent->id)), HTML::chars($parent->email))
Now this return a link to root…

Tarek
- 3,810
- 3
- 36
- 62
0
votes
1 answer
Kohana 3.2 - i want to get distinct dates
so i have a table with the following:
id
transaction_timestamp (TIMESTAMP CURRENT_TIMESTAMP)
i would like to get distinct dates from the transaction timestamp using Kohana ORM
i have a Model named Model_Transactions
if i do…

Gian Crescini Santillan
- 89
- 3
- 14
0
votes
1 answer
Kohana 3.2 set router for a controller which has a prefix URI belongs to another controller
I have 2 controllers account.php and address.php in the same directory APP/controller. For the first controller account.php, I use default router for URI like: account/create, account/login, account/logout... When writing second controller, I want…

lnguyen55
- 737
- 6
- 16
-1
votes
1 answer
KOHANA Themes - how to set theme in K3
dudes.
I hope this question is not a repost.
I'm newbie on Kohana. I'm working in a system made by other guy.
I need to understand how to set the theme but I can't find anything here nor google.
I found that in some systems is set a cookie called…

JuanMatias
- 87
- 1
- 1
- 10
-1
votes
1 answer
Trying to send a tiff file in php to client but the file is damaged after download
I'm trying to send a tiff file from a controller in Kohana framework version 3.2 (I know it's a bit old) using the response->send_file() method, file is downloaded in browser and the size is ok. but when I try to view it I get an error showing the…

babak
- 55
- 1
- 7
-1
votes
2 answers
PHP/Kohana - Converting time to different format
In my kohana app, I need to convert the time retrieved from the database into a format like 45 seconds ago, 1 minute ago, etc. What is the best place to do it? Can I override any methods in the Model so that the method automatically converts the…

logeeks
- 4,849
- 15
- 62
- 93
-1
votes
1 answer
Wrong kohana3 error when i have syntax error
Everytime when i have syntax error, kohana show this:
HTTP_Exception_404 [ 404 ]: Unable to find a route to match the URI
Why? Before i see my syntax error...
My route is fine, whats happening is that every time there is some sort of syntax error…

gellezzz
- 1,165
- 2
- 12
- 21
-1
votes
1 answer
Kohana "has many" issue
I have a model named permission.
Permission has many roles
permission has many users
permission has many denied users
Below is from the permissions model:
protected $_has_many = array(
'user' => array('through' => 'user_permission'),
…

Aaron A
- 535
- 7
- 20
-1
votes
2 answers
kohana kostache partial logic
Started an project using kostache.
I have made some partials like banner,navigatons and footer in my class View_Layout with extends kostache_layout . Partials work fine on each page.
One problem. The navigation show always the same links. My goal…

woodle
- 59
- 5
-1
votes
1 answer
Kohana - Validate ORM
I'm using Kohana for some time now. I'm using "has_many", "has_one", "belongs_to" without a problem, my question is:
If I have 2 tables like this:
tbl_foo1
id | tbl_foo2_id | field1
-------------------------
1 | 2 | bar
2 | 1 |…

Ricardo Ferreira
- 186
- 1
- 9
-2
votes
1 answer
Cascade Update or Delete - kohana
I have two tables Groups and Tracking and they are connected. I wanna delete Groups records, and delete foreign key in Tracking, but i don't know how to delete or update into NULL value this foreign key. I don't wanna delete all records from…

R0ck99
- 113
- 1
- 1
- 7