An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.
Questions tagged [kohana-3.2]
151 questions
5
votes
1 answer
Kohana accessing client ip
I am using kohana 3.2, and i would like to acces client ip from request class, in documentation i can see public static string $client_ip which should contain client ip, now if i try to access it i like so:
Request::$client_ip;
I get: string(3)…

Linas
- 4,380
- 17
- 69
- 117
4
votes
1 answer
scraping all images from a website using DOMDocument
I basically want to get ALL the images in any website using DOMDocument.
but then i cant even load my html due to some reasons I dont know yet.
$url="http:///";
$dom = new DOMDocument();
@$dom->loadHTML($url); //i have also tried…

Leonid
- 340
- 1
- 3
- 16
4
votes
2 answers
Kohana validation: correct syntax for range rule
In setting up validation for one of my models, I'm having trouble getting the correct syntax for the 'range' rule. Every variation seems to pass only the (first) min parameter and not the (second) max.
/**
* @var array Validation rules
…

Rookwood
- 683
- 1
- 5
- 11
4
votes
1 answer
How to create new worksheets with PHPExcel using kohana 3.2
$excel2 = PHPExcel_IOFactory::createReader('Excel2007');
$excel2 = $excel2->load('ExampleSpreadsheettest.xlsx');
$excel2->setActiveSheetIndex(0);
$excel2->getActiveSheet()->setCellValue('A4', 'first page')
->setCellValue('A1', '5')
…

Jabeen
- 357
- 2
- 4
- 15
4
votes
1 answer
Kohana 3.2 session expires too soon, shorter expirations work as expected
Kohana 3.2 sessions are expiring too soon. My current config is:
return array(
'native' => array(
'name' => 'kohanasession',
'lifetime' => 0,
),
);
Using lifetime => 0 means that the session will end when the browser is closed.…

Juan Antonio Gomez Moriano
- 13,103
- 10
- 47
- 65
3
votes
2 answers
how to manage multiple templates and template assets
I am totally newbie with Kohana and have been reading Docs, tutorials and forum posts to know how it works.
I am trying to implement this framework on one of my application and now I am stuck at managing multiple templates and it's assets.
Basically…

Prakash
- 2,749
- 4
- 33
- 43
3
votes
1 answer
Kohana 3.2 controllers in classes/controllers//
I already saw many questions that are quite similar to this question (such as this one and this), but my problem is I have my controllers in a subfolder within a folder inside the controllers folder. My directory structure looks like this:
classes/
…

Alex Coroza
- 1,747
- 3
- 23
- 39
3
votes
3 answers
Oauth::timestamp refused error in linkedin api
I have done linkedin oauth api in my local. API response from linkedin is working fine in localhost. When I've moved to server, i got error in linkedin api on the server like as…

jeeva
- 1,573
- 2
- 15
- 24
3
votes
1 answer
Kohana 3.2 Response::send_file seems broken to me
I'm trying to send a file to the browser to download, and not having a luck using $this->response->send_file($file_path); in the controller.
I get the following error:
ErrorException [ Warning ]: finfo::file() [finfo.file]:…

badsyntax
- 9,394
- 3
- 49
- 67
3
votes
2 answers
pagination module not found in the Kohana::modules() in bootstrap file
hi i'm new to kohana when i'm trying to use kohana pagination module i got error like this
ErrorException [ Fatal Error ]: Class 'Pagination' not found
later i look in bootstrap file then there is no Pagination module in Kohana::modules()
my…

Clarence
- 896
- 1
- 9
- 27
3
votes
2 answers
How to set CURL options when using Kohana Request
Trying to use the Request class to get an external resources, but can't figure out how to set more default curl options.
I get the data like this:
$data = Request::factory($url)->execute()->body();
I figured adding CURL options was a simple matter…

Svish
- 152,914
- 173
- 462
- 620
3
votes
1 answer
Kohana 3.2 Auth ORM: I can't seem to stay logged in with the "remember me" option set
I'm having a problem with Auth / ORM and auto_login. I have the lifetime set to two weeks, but I get logged out after about an hour, regardless of whether the browser is closed or not. In fact, it's time-based, since the session does stay, even over…

Mr Mikkél
- 2,577
- 4
- 34
- 52
2
votes
2 answers
Kohana ORM reports that record is not loaded when it is loaded
I'm having a problem with the loaded() function of the Kohana ORM. I'm loading a record, and the record is definitely loaded since I can access its properties. However, the loaded() function returns false. Below is the code I'm using:
$sessionUuid =…

laurent
- 88,262
- 77
- 290
- 428
2
votes
2 answers
What is a minimal, complete example of pagination in Kohana 3.2?
I found much information about pagination in Kohana 3.2 but most of it is scattered across forum comments and blog posts with no single complete source to refer to.
(note: I intended to self answer this question)

Jong Bor Lee
- 3,805
- 1
- 24
- 27
2
votes
2 answers
Error reading Excel file using Spout
I am having trouble using the spout library in kohana 3.2 to import a big Excel file into mysql. These are the installation steps I have taken:
In the portal file index.php, I added this line of code:
require_once…

hhq163
- 21
- 1
- 3