Questions tagged [kohana-3.0]
12 questions
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
1
vote
2 answers
Kohana query builder
i am building query in kohana framework which looks like this:
DB::select('users.email')->from('users', 'roles_users')->
where('users.id', '=', 'roles_users.user_id')->
and_where('roles_users.role_id', '=', '2');
it would output:
SELECT…

Linas
- 4,380
- 17
- 69
- 117
1
vote
2 answers
Kohana user model
I'm trying to add custom pages to user model.
If I would be making simple pages I would simply create controller in my application\classes\controller and a view file in \application\views, but now I would like to do same thing with user module.
I…

Linas
- 4,380
- 17
- 69
- 117
1
vote
1 answer
Kohana 3.0: how to get distinct entries?
In a Kohana query, I need to retrieve only one element having the same id.
I have a method in the model:
public function next_products_images($id)
{
return $this->where('product_image_product', '>=', $id-5)->limit(5)->find_all();
//for taking…

dana
- 5,168
- 20
- 75
- 116
1
vote
1 answer
Kohana 3: Callback validation
NOTE: This question refers to Kohana 3.0 only. Kohana 3.1 and newer handle validation callbacks in a completely different way.
I'm doing a validation with a callback (ORM). These are my code:
class Model_Loja extends ORM {
// more code goes…

thom
- 11
- 5
1
vote
1 answer
How to custom Error Pages in Kohana 3.0
I've been trying to find a full explanation on how to custom error pages in Kohana 3.0 and I haven't been lucky so far. So, based on the solution provided by Kohana Guide can anyone show me how to do it?
When I say full explanation I mean, the…

BigJoke
- 855
- 1
- 7
- 14
0
votes
1 answer
kohana 3.0.12 get a range of the multiple records
I have a kohana 3.0.12 based website and I want to get the first 3 values from the database, then the following 3.
I know that in Kohana v2.3.x it could be done using find_all(1,3) method, so I have tried:
$restricted_footer_links =…

dana
- 5,168
- 20
- 75
- 116
0
votes
2 answers
Kohana validation complete rules list
i can't find complete list of kohana validation rules list, can someone point me to the right documentation page? btw if some one doesn't understand what i'm talking about:
return Validation::factory($arr)
…

Linas
- 4,380
- 17
- 69
- 117
0
votes
1 answer
Kohana 3 - How to use memcached for cache query results?
I'm working in a large project using Kohana 3 framework, actually I need to improve it adding a cache system to reduce the number of MySQL connections.
I'm thinking in develop a basic (but general) module to generate a full query results caching but…

Andrés Morales
- 793
- 7
- 20
0
votes
2 answers
Redirect after checking referrering route in Kohana
I have a Kohana-based website and I want to verify, in a function, where a user comes from. So if he comes from a specific route, I have to redirect him somewhere.
Is there a way to verify what is the route a user comes from (or simply where he…

dana
- 5,168
- 20
- 75
- 116
0
votes
1 answer
Redirect to incorrect URL, Kohana 3.0.9
iam trying add the multilangual in kohana 3.0.9, and when iam enter in browser link like, http://site-name.com/en/, it redirect to http://site-name.com//en/en

Sergey Smekodub
- 92
- 1
- 1
- 13
-1
votes
1 answer
Implementing breadcrumbs in Kohana framework
I want to include breadcrumbs on my Kohana website and would like to see a small snippet/example of implementation e.g Controller, View.

user990479
- 115
- 2
- 8