Questions tagged [kohana-3.3]

Kohana is an open source, object oriented MVC web framework built using PHP5 by a team of volunteers that aims to be swift, secure, and small.

Anything can be extended using the unique filesystem design, little or no configuration is necessary, error handling helps locate the source of errors quickly, and debugging and profiling provide insight into the application.

To help secure your applications, tools for input validation, signed cookies, form and HTML generators are all included. The database layer provides protection against SQL injection. Of course, all official code is carefully written and reviewed for security.

156 questions
0
votes
1 answer

Kohana: Validation on a multidimensional array

How to perform a validation of a multidimensional array? Array (print_r): Array ( [btitel] => Array ( [1] => [2] => ) [btext] => Array ( [1] => [2] => ) ) The deepest values may not be empty and must have more then 3 characters. Is it…
Moe
  • 130
  • 5
0
votes
2 answers

require_once in kohana3.3 showing the Server error

In kohana 3.3 i need to include one of the controller file in the another controller I used require_once( realpath(dirname(FILE) . '/Twitteroauth.php' ) ); Its showing the server error. Thanks in advance.
mangala
  • 143
  • 1
  • 2
  • 13
0
votes
1 answer

custom error page - can't get into handler

I'm trying to add my custom pages. I'm using Kohana 3.3. The official documentation states that I should ovveride the method hander of native Kohana_Exception class. This is pretty easy to do so I've done that. Now I'm expecting that Kohana would…
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488
0
votes
1 answer

Have this error Class 'Kohana_Form' on webserver but not locally on WAMP

ErrorException [ Fatal Error ]: Class 'Kohana_Form' not found 1
0
votes
2 answers

Kohana 3.3 not using MySQLi driver

I'm working on a project that uses Kohana 3.3. I've run into a problem where I want to connect to a database. The application is telling me it's using MySQL and it's decrepated. To solve this I've downloaded a MySQLi driver for Kohana 3.3 and…
user1433479
  • 135
  • 1
  • 5
  • 20
0
votes
1 answer

How do I use Kohana ORM's values function when my form field names do not match the table column names?

I'm using Kohana 3.3 ORM and have setup the rules method for validation. Now I would like to actually create a record to my table. I want to populate all the values to my ORM object by calling $ormtable->values($_POST) but my problem is that not…
Chad
  • 1,708
  • 1
  • 25
  • 44
0
votes
2 answers

Kohana - Database_Exception [ 2 ]: mysql_connect() 2

I am trying to setup my database config as demonstrated here: http://kowsercse.com/2011/09/04/kohana-tutorial-beginners/ I have cut and pasted the database.php with my mysql credentials. I then get an error which I fixed by renaming the file to…
QWERTY
  • 1
  • 1
  • 1
0
votes
1 answer

Advanced query with kohana ORM

If you know my tables looks like these [category] -category_id -lft -rgt .... [catinfo] -catinfo_id -category_id -lang_id -name .... [lang] -lang_id -language How can I rewrite this query in Kohana ORM? SELECT node.category_id, catinfo.name,…
Moe
  • 130
  • 5
0
votes
2 answers

Kohana and ORM relationship has_many_through

I have problem with Kohana 3.3 and ORM relationship has_many_through. I have two models Model_Category class Model_Category extends ORM { protected $_table_name = 'category'; protected $_primary_key = 'category_id'; protected $_has_many…
vuz3
  • 229
  • 2
  • 11
0
votes
0 answers

Redirect to Facebook login URL using PHP SDK in Kohana 3.3

I have a controller handling user registration using FB data: if ($this->isLogged()) { try { $apiObject = $this->_fb->api('/me'); } catch (FacebookApiException $e) { $apiObject = null; throw $e; …
0
votes
2 answers

kohana3.3.0 native session lifetime expired by incorrect calculation

bootstrap.php: Session::$default="native"; my session configure file: return array( 'native' => array( 'name' => 'session', 'lifetime' => 10, // 10 secs ), ); I found the calculation of expired time is time() -…
menes127
  • 1
  • 2
0
votes
1 answer

Kohana 3.3 Twitter and Auth orm integration

HI I am new to Kohana I am trying to use twitter sign in module, I can access the twitter info, but while registering I am using Auth orm registration (I have extended my user model with Model_Auth_User or else it gives problem while logging in ),…
Anand Joshi
  • 452
  • 7
  • 23
0
votes
1 answer

Cross Origin Request with Kohana and JavaScript

I'm trying to implement some code that will allow me to have one sub-domain communicate with another sub-domain, e.g. one.example.com and two.example.com. The two sites have the ability to share cookies and session data as I have set the cookie to…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
0
votes
0 answers

how to use kohana 3.3 Route::url get urls end with a slash "/"?

the route setting: Route::set('movie', '(/.htm)', array('id' => '[1-9][0-9]*') )->defaults( array('controller' => 'Movie', 'action' => 'index') ); create a url with Route::url(): Route::url('movie', array('id' => 2)); then,…
sunchuo
  • 53
  • 2
  • 5
0
votes
1 answer

kohana3.3 Route::url() not working very well

``` route setting: Route::set('home', '()(_

.htm)', array( 'action' => '(movie|tv|new)', 'p' => '[2-9]|[1-9][0-9]+' ) )->defaults( array( 'controller' =>…

sunchuo
  • 53
  • 2
  • 5