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
61
votes
12 answers

Favourite Kohana Tips & Features?

Inspired from the other community wikis, I'm interested in hearing about the lesser known Kohana tips, tricks and features. Please, include only one tip per answer. Add Kohana versions if necessary. This is a community wiki.
The Pixel Developer
  • 13,282
  • 10
  • 43
  • 60
5
votes
3 answers

Kohana 3.3 Routes where the name of a Controller and Directory are the same

How do I correctly setup routes in Kohana 3.3 where the name of my controller and directory are the same as in my example below? /application/classes/Controller/Admin/Author.php - admin/author - admin/author/add -…
HAL9000
  • 55
  • 1
  • 4
4
votes
2 answers

Kohana 3.3: How to handle Redirects within Try...Catch blocks

New in KO 3.3 is the HTTP::redirect method, which works by throwing an HTTP_Exception_302, which bubbles up and gets handled by the system to do the actual redirect. My question is: how can I do a redirect without catching its exception if I'm…
Murray Rowan
  • 3,597
  • 2
  • 19
  • 32
3
votes
1 answer

PHP 5.5 on Windows microtime() behavior

I'm trying to profile my Kohana project using Profiler. I'm on XAMPP on Windows with php 5.5.3. On this version of PHP I'm getting 0.000000 sec. execution time for main request, find_file() or database calls. Same behavior with PHP 5.4.19. If I move…
Kanstantsin K.
  • 512
  • 4
  • 17
3
votes
1 answer

Kohana - database config per environment

I want to set in my bootstrap the right config I will use functions of the environment. I try to use Database::instance('my_conf'); or Kohana::$config->attach(new Config_File('config/'.$environment)); This isn't working.... Any idea ? Kohana…
emilie zawadzki
  • 2,035
  • 1
  • 18
  • 25
2
votes
0 answers

Kohana 3.3 and Phpunit test cmd line Without Minion mod

I am trying to get Phpunit command line to work Kohana 3.3.1 and Php, but it's giving this error: Please enable the Minion module for CLI support. I do not want to do this as Phpunit test works fine via the GUI. phpunit.xml:
Krazyeyez
  • 41
  • 5
2
votes
1 answer

Kohana Model_Auth_User_Token not getting overridden

PDO doesn't support the list_columns function. To get around this when using PDO with Kohana's Auth module, you simply have to list the table names as array keys in an extension of the model class, thusly:
Brian S
  • 4,878
  • 4
  • 27
  • 46
2
votes
3 answers

Add relationship, handling duplicating entries - KOHANA 3.3

I need to add a ROLE relation to a USER. So I did the following: $user->add('roles', $roles_ids_array ); It works, but the system tries to add it without checking if the relation ALREADY EXISTS in the DB, giving me a mysql "Duplicate entry"…
Theo
  • 87
  • 1
  • 10
2
votes
3 answers

Kohana/JQuery Auth access issue

I have a website using the Kohana ORM Auth. I am having a url which when called via ajax will check whether the user is logged in and return json_encoded data corresponding to the users role. this url is working fine when i tried it in normal…
logeeks
  • 4,849
  • 15
  • 62
  • 93
2
votes
1 answer

Kohana can't find controller from other module when uploaded to the server

I have an application that is working fine locally. However, when it was uploaded to my (shared) server, it wasn't able to find one of the controllers (that was exteded to). I suspect that it happened because this controller is in another module…
Andrade
  • 1,179
  • 12
  • 15
2
votes
1 answer

Kohana 3.3 Redirect Exception

hope you can help me with this strange problem: I'm trying to redirect from within a Controller but Kohana keeps throwing an Exception that I just can't figure out why: code in Cadastro.php: try{ $this->redirect('/dados', 302); } catch…
Andrade
  • 1,179
  • 12
  • 15
2
votes
1 answer

Unexpected characters on pages with Kohana 3.3

My kohana 3.3 site contains page, which I implemented like: $block_center = 'here is html form'; $this->template->block_center = array($block_center); Of course, I used constructions like View::factory(' .. ')->bind ... - doesn't matters (result is…
Parks
  • 71
  • 1
  • 7
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
3 answers

What is VENDOR folder for in Kohana 3.3?

In DOCROOT folder of Kohana 3.3 there is a new vendor folder. What is it for?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
1
vote
1 answer

How do I add an admin page with Kohana?

I'm new to Kohana (inherited an older project). I'm trying to add an admin page by copying how other admin listing pages have been done like this in application/bootstrap.php: Route::set('admin_jobusers',…
TJ Moyer
  • 23
  • 4
1
2 3
10 11