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
1 answer
How to changes the Route::set in kohana 3.2
we have used kohana 3.2.
We need to changed the url xyz.com/ar measn the site working arabic lanugag and xyz.com/en means the site working in english language.
Now the default 3 param is id. I need to changes this.
Route::set('custom',…

arulraj
- 105
- 2
- 12
0
votes
3 answers
Need to convert the floating values to integer format below the condition in php
Need to convert the floating values to integer format below the condition
$val = 75.00 means the value must be show 75
$val = 75.50 means the values must be show 75.50
the floating points values .00 means no need to display otherwise will display…

arulraj
- 105
- 2
- 12
0
votes
1 answer
Kohana 3 - Redirect to other localhost project
$this->request->redirect('localhost/project2/');
From a controller in project1, I have this code, but it's always redirecting me to localhost/project1/index.php/localhost/project2. How can I properly redirect to localhost/project2/ ?
I tried using…

Alex Coroza
- 1,747
- 3
- 23
- 39
0
votes
1 answer
Sub-request response stops the initial request in Kohana 3.2?
Following: https://kohanaframework.org/3.2/guide/kohana/requests
I have this code:
$request = Request::factory($url);
$request
->client()
->options(array(
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_USERPWD => 'test' . ':' . 'token'
…

Karem
- 17,615
- 72
- 178
- 278
0
votes
1 answer
Creating routes for controllers in subdirectories in Kohana 3.2
My question is almost similar to this question. His goes 2 more directories deep and mine is just 1. That question was unanswered too.
This is the directory i wish to create:
classes
|--controller
|--tests
|--general.php
All i want to do is…

jagc
- 209
- 3
- 13
0
votes
1 answer
kohana ajax controller sessions are not working with auto render
Using ajax function working with sessions. In controller with ajax action i'm setting the session values using $this->session->set('coupons',$data). After setting this session i'm not able to get in another controller file already added session.Can…

sankar muniyappa
- 356
- 5
- 14
0
votes
1 answer
Kohana 3.2 routing issue
I have set up my routes so that most classes are called in the standard controller/action style. However for my front end I don't want users to see the action being called, so all front end pages have their own controller and use the index action.…

Styphon
- 10,304
- 9
- 52
- 86
0
votes
1 answer
cant read css and js includes after setting kohana to remove index.php in url
http://kohanaframework.org/3.0/guide/kohana/tutorials/clean-urls
following this tutorial, i managed to remove index.php from the url. I edited the "base_url" in bootstrap.php and the edited the .htaccess according to the tutorial. But now, I'm…

Alex Coroza
- 1,747
- 3
- 23
- 39
0
votes
1 answer
Kohana 3.2 not working Form helper
I have some code, where is used Form helper. All worked well. Now I have error
Call to undefined method Form::open()
When I check SYSPATH exist classes Form and Kohana_Form
This situation is in each file where is used this helper.
This is kohana…

110precent
- 322
- 4
- 19
0
votes
3 answers
kohana 3.2 creating a model for a table with underscore in its name
I am having trouble in creating a model for a table named product_details, and after searching sometimes, I found this answer
Kohana 3.2: Calling model with underscore in name
acoording on the answer, I resorted to the following approach. I created…

Alex Coroza
- 1,747
- 3
- 23
- 39
0
votes
1 answer
Kohana 3.2: class Model_Database not found
I am getting this error when I try to run my code on server.
The error is for model file cities.php
The code in cities.php is as follows:
class Model_Cities extends Model_Database {}
It works fine on local server. But gives error for production…

Harshala
- 21
- 7
0
votes
1 answer
Kohana/PHP- adding more information to a record before passing it to the view
Scenario: I have a view to which i pass a kohana record-set object, and view will go through each record and display its values in appropriate format. In the view i have to alert user with a message. This alert will only get activated if certain…

logeeks
- 4,849
- 15
- 62
- 93
0
votes
3 answers
How Do I Dynamically (based on server env) Choose Which Database My Kohana ORM Connects To?
This is for Kohana v3.2
How can I dynamically choose the database an ORM model connects to? Specifically, I am trying to change an ORM model to work with databases in my local dev, staging and production environments.
The Kohana Guide tells me I…

eysikal
- 579
- 1
- 6
- 13
0
votes
1 answer
How to make unit testing work for Kohana 3.3
How can i make the unit test module work for kohana 3.3 framework? I have uncommented the unittest module in bootstrap.php. Can anyone please tell me what is the next step? I don't think i have the phpunit installed as i am on a shared server. Will…

logeeks
- 4,849
- 15
- 62
- 93
0
votes
1 answer
In Kohana query builder is it possible to compare column to another column, rather then a string or other value?
I am trying to build a query in Kohana and struggling to convert the query given to me by a DB admin into kohana query builder syntax. The query is failing when trying to compare the following:
AND du.user_key = dd.user_key
Using the…

Opentuned
- 1,477
- 17
- 21