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

Kohana 3 route not matching

Hi I am having problem while matching Kohana 3 custom route, it seems like every thing is correct but URL doesnot match with route. Following are settings in my bootstrap.php file: Kohana::init(array( 'base_url' => '/basepath/', …
Hafiz
  • 4,187
  • 12
  • 58
  • 111
1
vote
2 answers

Requesting a view with it's controller from another view/controller - Kohana 3.2

I'm having a bit of an issue with a breadcrumb i'm making for a site... I'm relatively new to Kohana so i'm not sure if the way i'm going about this is correct. I have all my pages with their correct controllers working fine, i needed a breadcrumb…
Richard
  • 11
  • 2
1
vote
1 answer

Kohana 3.2 ORM many-to-many - wrong field names

I trying to make many-to-many relation between 2 models: Users_Role and Users_Right class Model_Users_Role extends ORM{ protected $_has_many = array( 'rights' => array( 'model' => 'users_right', 'through' =>…
1
vote
1 answer

Kohana3 session database:Error reading session data

I just use database session with kohana3.2,and set the config file: 'database' => array( 'name' => 'session_name', 'encrypted' => TRUE, 'lifetime' => 24 * 3600, 'group' => 'write', 'table' => 'sessions', 'columns' =>…
Timyes
  • 11
  • 4
1
vote
2 answers

Using a Kohana Config in a non Kohana app

Is there an easy way to use a Kohana DB config file in a non Kohana app? I can't seem to figure it out by reading through the Kohana_Config class. Why? Say I have a cron task that sits in the same directory and I'd like it to use the same DB…
Serhiy
  • 2,505
  • 3
  • 33
  • 49
1
vote
1 answer

How to allow hyphens in controller and action names in Kohana 3

I would like to use hyphens in my URLs, but since controllers are classes and actions are methods, they of course cannot have hyphens in them. I think for example that about-us looks a lot better in a URL than about_usor aboutus. Is there a good and…
Svish
  • 152,914
  • 173
  • 462
  • 620
1
vote
1 answer

How to changes the default URL format in kohana 3.2.

How to changes the default URL format in kohana 3.2. base/news/news_details to news/ Route::set('news_tracking2', 'news/news_details') ->defaults(array('controller' => 'news','action' => 'index','method' => NULL));
arulraj
  • 105
  • 2
  • 12
1
vote
1 answer

Kohana 3.2: Route the control to another path than default

I have tried the following way Route::set('sections', '(/(/(/)))', array( 'directory' => '(admin|affiliate)' )) ->defaults(array( 'controller' => 'home', 'action' =>…
Harshala
  • 21
  • 7
1
vote
1 answer

Getting errors when access one file using Kohana Framework

I use Kohana v=3.2 and want to access check.php that located on webroot webroot modules application system index.php check.php .htaccess but when I access domain.com/check.php, I found HTTP_Exception_404 [ 404 ]: Unable to find a route…
john
  • 55
  • 1
  • 1
  • 6
1
vote
1 answer

Kohana validation. How to use a lambda function to set rule?

I have a problem with Kohana's validation object. For example, I want to check the user_id field. It has to be a number and greater then 0. I've tried following: $validation->rule("user_id", function($str){ return (is_numeric($str) && $str >…
Igor Belykh
  • 101
  • 5
  • 13
1
vote
0 answers

Kohana welcome page not shown xampp

My website path is c:\xamp\dhtdocs\egotist\kohana init \egotist\kohana\ RewriteBase /egotist/kohana/ RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L] Welcome controller path…
1
vote
2 answers

How to get kohana session data outside kohana application?

I want to get the kohana session data outside the kohana application. I mean to say that i want to get the session data in a static file which is not a kohana page.
Manigandan Arjunan
  • 2,260
  • 1
  • 25
  • 42
1
vote
1 answer

Kohana ORM Caching/Caching design approach

This questions is related to Kohana ORM AND Caching module. I use version 3.2 if it matters. I tried to research trust me, but I really couldn't find some good answer... so here it is: What are the correct ways to use ORM::cached() and…
Lim
  • 329
  • 2
  • 15
1
vote
1 answer

How to use Request::factory()->execute() to call an script from another library in the same host

I'm using Kohana 3.2, and I want to be able to call another script (unrelated to Kohana, outside of its 'jurisdiction') that returns a application/json response. When I tried using: $response =…
pocesar
  • 6,860
  • 6
  • 56
  • 88
1
vote
1 answer

kohana ORM foreign_key

I'm trying to find a way to get data from different related tables in Kohana . I have the file table which is defined as : class Model_File extends ORM { protected $_belongs_to = array ( 'student' => array ('foreign_key' =>…
Tarek
  • 3,810
  • 3
  • 36
  • 62
1 2
3
10 11