An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.
Questions tagged [kohana-3.2]
151 questions
2
votes
1 answer
How to set an own Exception on wrong database connection?
When I'm trying to connect to wrong database I'm getting standart kohana exception message like this:
Database_Exception [ 1049 ]: Unknown database 'mywrongdatabase'
MODPATH\database\classes\kohana\database\mysql.php [ 108 ]
protected function…

Smash
- 513
- 5
- 23
2
votes
2 answers
How to upgrade from Kohana 3.2 to 3.3 (implementing PSR-0)?
What steps do I need tot take to upgrade from Kohana 3.2 to 3.3 with respect to the implementation of PSR-0 and what commands have to be executed from the command line?

Daan
- 7,685
- 5
- 43
- 52
2
votes
2 answers
Kohana ORM cascade delete
Is there any method in Kohana 3.2 ORM for cascade delete.I am a beginner in kohana so any one can help me in this matter?

minhas
- 55
- 4
2
votes
2 answers
PHP Kohana 3.2.2 multipart form $_POST not set on MAC but works on Win
I've just encountered a weird problem. I've recently developed a medium size website using Kohana 3.2.2 + jquery + html + WAMP on Windows 7 platform. And everything seems to be working fine, until someone tries accesing the page from Mac platform.…

user1455750
- 23
- 4
2
votes
1 answer
Enable PECL HTTP in Kohana PHP framework
I'm totally new to kohana framework and I downloaded and installed kohana 3.2.2 version which is latest stable version.
But when i run the install.php it pass all the requirements but not this requirement.
PECL HTTP Enabled Kohana can use the…

Ruwan Dissanayaka
- 305
- 1
- 8
- 19
2
votes
2 answers
Kohana ORM insert NULL and not empty string
In Kohana 3.2, when you overwrite the function 'values' of the ORM, and then do something like:
public function values(array $values, array $expected = NULL) {
if($values['a_column'] == "") $values['a_column'] = NULL;
return…

Pierre
- 4,976
- 12
- 54
- 76
2
votes
2 answers
Kohana 3.2 ORM Check the existence of a single record
I'm having a bit of trouble trying to figure out the best way to check if a particular result contains any records for the following code:
$record = ORM::factory('my_table', $id);
What I would normally do is use a counter method like…

Onema
- 7,331
- 12
- 66
- 102
2
votes
2 answers
nested data in mustache template
I'm totaly new in mustache and this is my first project i'm trying it out. I use it with kohana 3.2 and Kostache module and PHP implementation of mustache.
I have a collection of sport tournaments and each of it has many events and each event has 3…

SET001
- 11,480
- 6
- 52
- 76
2
votes
1 answer
some problems with kohana unittest (cli and web access)
I've configured kohana (3.2) unittest module as described here.
So I have:
APPPATH/tests/
phpunit.xml
sampletest.php
And last lines index.php file:
require APPPATH.'bootstrap'.EXT;
if ( ! defined('SUPPRESS_REQUEST'))
…

witzawitz
- 416
- 1
- 5
- 11
2
votes
3 answers
kohana won't display errors, gives blank page
I am obviously doing something wrong with a new class/function I am trying because the page won't render at all. All I receive is a blank page if I call this new errorous class/function.
In order to debug it, to see where it bursts, I am trying to…

Phil
- 13,875
- 21
- 81
- 126
2
votes
3 answers
Kohana Database query builder with JOIN & ON & AND
I'm working on a query that uses COALESCE for retrieving localized strings for my current project
The sql works when used as a raw query but i cant seem to get the joins structured in this way with the query builder
LEFT JOIN text as text_se
ON…

Johan Tell
- 21
- 1
- 2
2
votes
1 answer
External GET Request in Kohana 3.2 is stripped out via factory method
I am trying to make an external request. I am following examples provided here in Kohana Docs.
Thing is, I am trying to do a GET with GET params. As soon as I provide a URL with GET params to the factory method, the params get stripped from the URL…

Michal M
- 9,322
- 8
- 47
- 63
2
votes
1 answer
Kohana - passing variables to a view
I'm not able to pass a simple variable to the view , can someone tell me what I'm doing wrong ?
I have a controller user :
class Controller_User extends Controller_Template_Login {
public function action_index()
{
$this->template…

Tarek
- 3,810
- 3
- 36
- 62
1
vote
2 answers
PHPUnit and Kohana Request object
I'm trying to get familiar with PHPUnit testing within Kohana. At the moment, I seem to be having problems with Request::current()->redirect calls in my code.
For example, I am trying to test the login functionality. Once our user is…

Emilie
- 403
- 2
- 5
- 17
1
vote
1 answer
Suppressing the request when running PHPUnit with Kohana 3.2
I'm having trouble correctly setting up unit testing in Kohana 3.2.
I installed PHPUnit. I changed the bootstrap to activate Kohana's unittest module. I also changed the index.php file to look like this:
if ( ! defined('SUPPRESS_REQUEST'))
{
…

Emilie
- 403
- 2
- 5
- 17