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
1
vote
0 answers

PHP foreach loop doesn't run all the iterations. I have 1500 users but it only executes for about 1000 users, then gives back a blank page

This gets all users and stores them in an array For each of those users, generate email and SMS. There is also selection of the email template to be used. This only generates like 1000 emails and SMS, stops execution and returns a blank view with no…
Frank Inc
  • 31
  • 3
1
vote
2 answers

Kohana 3.3 subdirectory controllers not loaded in Heroku

I'm trying to develop an app using Kohana 3.3 and Heroku. The main problem is when I have controllers in sub directory as follow example dirname\Class1 dirname\Class2 Class2 extends Class1 Then I have a route set to this location which works great…
1
vote
1 answer

Kohana Restful Put

I have a problem with put in kohana restfull api. It's looks like my $post doesn't work, because after i use this function i can only see 'Data not found!'. Any idea? Thanks for help. Here is my code. $trg_id = $this->request->param('id'); …
R0ck99
  • 113
  • 1
  • 1
  • 7
1
vote
1 answer

kohana ---- auto insert

How to insert same data into database after update in ORM? For example i have function save() and inside this function i have update and it's working, but i don't know how to make insert with old update data. I mean it should make something like…
R0ck99
  • 113
  • 1
  • 1
  • 7
1
vote
1 answer

How to redirect a user after submit of a form in kohana 3.3

I want to redirect a user after they submit their messages to a database. The submit query executes but the redirect request fails and gives an error message "ErrorException [ Fatal Error ]: Call to undefined method Request::instance()" I don't know…
Mbengchan
  • 166
  • 3
  • 17
1
vote
1 answer

I am trying to integrate pagination in kohana, but don't know what is happening. I get these error " Undefined variable: pager"

trying to integrate pagination in kohana 3.3 but i get these error after integration "ErrorException [ Notice ]: Undefined variable: pager" Following is my controller: ` class Controller_Welcome extends Controller_Application { public function…
Mbengchan
  • 166
  • 3
  • 17
1
vote
1 answer

How to change mysql Delimiter inside Kohana framework during call one model method?

I have one method that must create mysql procedure, and run it. The problem is to change delimiter public function doSomeThing(){ $run = array(); $run[] = DB::query(null, "DELIMITER $$"); //... here we continue of pushing more commands …
LINKeRxUA
  • 559
  • 6
  • 26
1
vote
1 answer

Kohana throws errors while adding filter to routes

I'm using Kohana framework v3.3.1. Here's the default route in my bootstrap.php, Route::set('default', '((/(/)))') ->filter( function(\Route $route, $params, \Request $request) { $params['action'] =…
1
vote
0 answers

Kohana 3.3. Why do my 404 page has 200 Ok Status?

I use kohana 3.3 for my web-site and i got this issue. Somewhere in the code i'm throwing custom exception like HTTP_Exception_404 $article = ORM::factory('article',array('url' => $url)); if(!$article->loaded()){ throw new…
1
vote
1 answer

Kohana 3. Join with multiple condition using OR

I'm using Kohana Query Builder and trying do next: $query ->join(«t1», «INNER») ->on(«t1.id»,»=»,»t2.parent_id») ->on(«t1.id»,»=»,»t3.x_id») This means: INNER JOIN t1 ON(t1.id = t2.parent_id AND t1.id = t3.x_id) But how force to use OR instead…
LINKeRxUA
  • 559
  • 6
  • 26
1
vote
1 answer

Kohana/PHP Auth fails while issusing a request through AJAX

I have a base class which is inherited by all the controllers. I am having a function in the base class which determines the logged in users role using Auth. Once the users role is determine a variable $LoggedIn_role is set. This method is correctly…
logeeks
  • 4,849
  • 15
  • 62
  • 93
1
vote
1 answer

Adding geocode module to kohana 3.3

I have a problem with using geocode module. I used several complete modules, for example kohana-geocode. I copied folder to modules, added config/geocode.php to config in application and added module in bootstrap.php but the result…
szczepan54
  • 11
  • 1
1
vote
1 answer

Tags from head moved to body from Kohana generated html in Chrome

Why my generated site with Kohana framework (but I thik this is Chrome problem) contains tags from head in body? And all body is moved down .. It looks strange :( This is output of Kohana after call url: http://127.0.0.1/weu/Test …
Atiris
  • 2,613
  • 2
  • 28
  • 42
1
vote
1 answer

What is the right way to pass parameters to a Kohana 3.3 controller called through HMVC?

I am trying to use Kohana 3.3 HMVC approach. I have created a view and a controller for generating a segment of a page (meant to be integrated into the actual web page by another controller and to be never accessed through HTTP from outside a…
Ivan
  • 63,011
  • 101
  • 250
  • 382
1
vote
1 answer

Where to place application/classes/request.php in Kohana 3.3

I am trying to extend request.php. Placing file in application/classes/request.php was working in older version of kohana. But id doesn't work in kohana 3.3. I have also tried application/classes/Request.php Edit: File is getting loaded. I…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
1
2
3
10 11