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

how to establish database connection in kohana mvc framework

I am trying to create a login/Signup page using Auth/ORM module of kohana. i have succesfully installed the MySQLi module and added a line in the bootstrap.php file. Now when I try to create an account with all the details entered i get an error…
0
votes
0 answers

How should I route in this KOHANA?

apache error **Not Found** The requested URL /status was not found on this server. {maindir}/index.php is working My application/bootstrap.php Route::set( 'status', 'status' )->defaults(array( 'controller' => 'solution', …
FoxPro
  • 9
  • 1
0
votes
2 answers

kohana_http_exception 404: The requested URL / was not found on this server. - Linux environment

I am getting this error when I transfer my kohana project form windows to linux environment. Kohana_HTTP_exception [404]: The requested URL / was not found on this server. What could happen? .htaccess is working fine on master branch but when i…
Einlanzer
  • 504
  • 7
  • 10
0
votes
2 answers

As in Kohana 3.3 sort the list of users, the number of orders?

Suppose we have two ORM model: class Model_User extends ORM { protected $_has_many = array( 'orders' => array( 'model' => 'Order', 'foreign_key' => 'order_id', ), ); } class Model_Order…
entermix
  • 43
  • 1
  • 9
0
votes
1 answer

error using kohana 3.3.3.1 mysqli

I have put this driver to MODPATH/database and changed type to 'MySQLi' in APPPATH/config/database.php and got an error Class 'Database_MySQLi_Result' not found. What am I doing wrong? PHP Version 5.5.3-1ubuntu2.6 MySQL 5.5.37
0
votes
1 answer

populating drop down list from the database in kohana framework

how to fetch data from the database in kohana 3.3 framework. I have created dropdown list in the view but i don't know how to connect it with the controller so that i could fetch data from the database and show it in the drop down list
0
votes
1 answer

Call php function in view from mustache and pass a mustache array value into the function call

I would like to pass an array value to a view function so that it can send back some HTML based on that value sent. I want my system to either send back textarea, textbox or radio button. On my mustache I have…
Churchill
  • 1,587
  • 5
  • 27
  • 39
0
votes
1 answer

kohana ORM - add new record for has_many, has_one relationships

Kohana ORM has the following relationships between model: has_one has_many has_many_through For example, I have the following defined: class Model_ORM_Text extends ORM { protected $_has_one = array( 'compiledData' => array('model'…
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488
0
votes
2 answers

Kohana 3.3.3 multi language site

I'm new to Kohana, using version 3.3.3.1, I'm trying to build a simple dynamic site with the content/pages stored in mySQL DB. The site should have multiple languages. I tried searching everywhere for a good solution/module but I couldn't find…
0
votes
2 answers

Kohana multiple loops of foreach ORM objects terminates early

I'm using Kohana 3.3 and trying to output the pages to the menu, and all sub-menus. Sub-menus are stored in the same table as pages, called page. The only difference between a page an a sub-menu is a flag. This is the table structure of page and the…
Styphon
  • 10,304
  • 9
  • 52
  • 86
0
votes
0 answers

Kohana 3. Environment test page

I get environment test page going to any url. I have this in bootstrap file Route::set('default', '((/(/)))') ->defaults(array( 'controller' => 'welcome', 'action' => 'index', )); And i have this in my…
Factory Girl
  • 910
  • 4
  • 18
  • 29
0
votes
1 answer

Kohana Framework: way to load config using absolute file path

How to load config from a specific folder, for example: DOCROOT."assets/config/pre-load.php" Defaults method will search in (APPPATH|MODPATH|SYSPATH)."/config/".DOCROOT."assets/config/pre-load", but I need to go out from…
LINKeRxUA
  • 559
  • 6
  • 26
0
votes
1 answer

Kohana framework-cascade file system. How to add folder to this cascade chain?

How ussualy KO3 works: 1. Get files from "system" 2. Replace some by each used "module" 3. And finally - replace by "application" What I must todo to add in these chain one more folder folder? How to extend this cascade ? For example I want to load…
LINKeRxUA
  • 559
  • 6
  • 26
0
votes
1 answer

Kohana Route setup for different actions

I have route like this (Kohana 3.3) Route::set('project', 'project(/(/(/)))') now is possible querys like this localhost/kohana/project/edit/16 localhost/kohana/project/list/ I want to use pagination on action list - so i need…
YanAlex
  • 99
  • 1
  • 10
0
votes
1 answer

admin module in kohana 3.3.x doesn't route correctly

i have problem with kohana 3.3.x modules. i am trying to create a module called admin in my kohana project. i followed kohana documents & some samples about it to create one but it seems that something goes wrong :( this is my module structure : -…