Questions tagged [kohana-3.2]

An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.

151 questions
1
vote
1 answer

Automodeler error - $_data = [];

I'm testing Kohana AutoModeler, but I think it is an PHP lack of knowledge. I have just set it up and got this error ErrorException [ Parse Error ]: syntax error, unexpected '[' in /classes/context/user/add/factory.php. When I open the file,…
JGSilva
  • 120
  • 1
  • 1
  • 9
1
vote
0 answers

Proper way to setup cross-site authentication in Kohana 3.2

I am currently running two Kohana 3.2 applications: Web Server Rest API Server (handles web authentication and all database models) We are using password granttype/2-legged oauth2 for authentication. When someone performs a login on the…
1
vote
2 answers

What are the main differences between Kohana 3.2 and Kohana 3.3

On my first view I haven't found no principled differences except new vendor folder. What are they?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
1
vote
2 answers

How can I get an indexed array from query result in Kohana 3.2?

How can I get the INDEXED array result? $qry1 = DB::select('name')->from('people')->execute(); $assoc_array = $qry1->as_array(); $object = $qry1->as_object(); // $indexed_array = [...] Only for learning purposes, thanks. It's…
Giovanne Afonso
  • 666
  • 7
  • 21
1
vote
3 answers

Kohana rewriting urls in .htaccess showing file not found message

I'm using Kohana 3.2 framework, I've put the standard .htaccess file in the same folder of the aplication. my .htaccess file is # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /mysite/ # Protect hidden files from…
GusCh
  • 21
  • 1
  • 4
1
vote
1 answer

"NOT IN" Kohana ORM

i've got the following models: class Model_User extends ORM { protected $_primary_key = 'name'; protected $_has_many = array( 'repositories' => array( 'model' => 'repository', 'through' =>…
trampi
  • 2,214
  • 4
  • 17
  • 17
1
vote
1 answer

Is PHPs mktime() function time zone dependent?

I already know that mktime returns the number of seconds since the epoch (Jan 1 1970 00:00:00 GMT) so the timestamps are GMT based. I have a PHP web app for school fairs and it's written using Kohana 3.2. When a fair is scheduled I create a…
pogeybait
  • 3,065
  • 2
  • 21
  • 23
1
vote
1 answer

Can not send_file with Kohana 3.2

For some reason when using $this->response->send_file($file_to_send, $file->hashed_name.'.'.$file->extension); I get errors like this: ErrorException [ Warning ]: mime_content_type() [
kovpack
  • 4,905
  • 8
  • 38
  • 55
1
vote
1 answer

Response Cookie not getting set in Kohana

I'm trying to pull out the value of a cookie from the response of an external request in Kohana 3.2 $response = Request::factory('http://myurl')->execute(); echo $response->cookie('cookie'); Now in my example above, the server response from…
krische
  • 1,010
  • 3
  • 11
  • 17
1
vote
1 answer

Kohana 3.2 Custom Error Handling

I am trying to make custom error pages for 404, 403, 5xx errors. I followed the doc and created an error controller, override Kohana_Exception class and added a route. Kohana_Exception Class class Kohana_Exception extends Kohana_Kohana_Exception…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
1
vote
2 answers

Kohana Model Saved Twice

I just installed a fresh copy of Kohana 3.2, built my database, wrote my first model, and tried testing it. Everything works fine except the model's "save" method is being executed twice--I end up with two new entries in the database instead of one.…
Mike Ebert
  • 90
  • 3
  • 11
1
vote
1 answer

Get value of selected option from dropdown list using kohana

How to get values from dropdown list when option is selected and trigger the submit button immediately. I can do it in php but i want to do it using kohana but no idea. I am new to it and using kohana 3.2.
user850234
  • 3,373
  • 15
  • 49
  • 83
1
vote
2 answers

reading config file in kohana 3.2

hi friends i know how to read config file in kohana 3.0 my code is $config_file = Kohana::config('ratna'); $value = $config_file['name']; here ratnais config file like below
Clarence
  • 896
  • 1
  • 9
  • 27
1
vote
1 answer

kohana 3.2 routing for e-commerce example.com/categoryname/productname/

I'm working on my ecommerce on kohana 3.2. i need to setup the routing to be able to use links like this: first: example.com/categoryname/ - this shows all products of given category. it would be nice to have pagination there like…
dev1
  • 13
  • 2
1
vote
2 answers

Post a file via Request Factory in Kohana

Is it possible to simulate a file upload request in Kohana 3.2? I was trying the following but not having much luck: $file = file_get_contents('../../testimage.jpg'); $request = new…
esimran
  • 89
  • 2
  • 11