Questions tagged [kohana-3]

Kohana 3 is a HMVC (Hierarchical Model-View-Controller) PHP framework that places security, scalability and rapid development at its forefront.

Kohana is an HMVC (Hierarchical Model-View-Controller) PHP5 framework that provides a set of components for building web applications.

Kohana 3 is the first version of Kohana that supports HMVC.


Useful links


Related tags

846 questions
0
votes
3 answers

Kohana 3.2 Concatenating % to variable when doing a 'where like'

Answer: I feel like a complete dummy =( I didn't realize it was adding a space at the end of the string in my code. After I rtrim the empty space from the string it all works. I'm very sorry to have wasted everyones time =S I came across an odd…
adamj
  • 4,672
  • 5
  • 49
  • 60
0
votes
2 answers

Modifying url param in Kohana 3.3

Is there any way to change a parameter in a url request on load? My route basically checks for a language in the url http://localhost// However the problem is that if a random text is inserted in the language parameter, it then…
clifford.duke
  • 3,980
  • 10
  • 38
  • 63
0
votes
1 answer

Kohana 3 class name convention

This may be a really stupid question. As Kohana 3 requires a directory to be created in order to be able to use underscores in the class name, the question is : a)Should I create a directory structure in order to be ableto have class names like…
Juan Antonio Gomez Moriano
  • 13,103
  • 10
  • 47
  • 65
0
votes
1 answer

Using the I18n functionality in Kohana 3.3

I'm having trouble with the I18n functionality in Kohana 3.3 My I18n folder structure is as follows i18n/ en/ us.php zh/ hk.php cn.php The problem I'm getting is that everywhere I read it should be possible to load the language like so…
clifford.duke
  • 3,980
  • 10
  • 38
  • 63
0
votes
1 answer

Kohana Auth module login system

I recently started working at a company that uses Kohana with the Auto-modeler module and k0stache module. And I am currently making a login system but I can find some decent information about using the Auth in combination with Auto-modeler and…
0
votes
2 answers

Kohana 3 ORM - joins and has_many relationships with static methods

I have Model_User which extends ORM, with a $_has_many relationship with roles: protected $_has_many = array( 'roles' => array('model'=>'role','through'=>'users_roles'), ); I have a static function return all active users: public static…
xylar
  • 7,433
  • 17
  • 55
  • 100
0
votes
1 answer

Load default action and controller if none were found

I'm not sure if it's possible, but what i need is to load default controller and action if specified controller has not been found from the url, so let's say if i have this url: http://mywebsite.com/john It would have to call user controller and…
Linas
  • 4,380
  • 17
  • 69
  • 117
0
votes
1 answer

Kohana Routing Issue

I know that there are countless threads about this, but I would appreciate a quick pointer to explain what I am missing here. I have a controller called Controller_Index_Orders which resides in /conroller/orders/index.php. It has one method…
thatidiotguy
  • 8,701
  • 13
  • 60
  • 105
0
votes
1 answer

Kohana3 and MySQL: is it possible to keep related records?

I'm not sure if this question is about MySQL db or about the framework. I think both. So, my code below refreshes the table, but removes the other related records from another tables. The code below is in Kohana3 framework. ORM::factory ( 'deal' )…
Haradzieniec
  • 9,086
  • 31
  • 117
  • 212
0
votes
1 answer

How to set static variable in kohana

I use framework Kohana and I need to set global static variable which could be seen in every place of the code. Where may I declare it and in what way? (I think it do in bootstrap.php)
user1440167
  • 1,913
  • 2
  • 12
  • 12
0
votes
1 answer

Searching fields by many time of OR operand in ORM?

I need to find a records where the values of some field are different, it looks like IN, better to say FIND ALL WHERE field=1 OR field=2... OR field=9 And these OR can be a lot. Is it possible to make somethig with this in ORM on Kohana?
Victor Czechov
  • 237
  • 1
  • 6
  • 12
0
votes
2 answers

How can I render view of another action in the controller? I use Kohana 3.0.11

I need use the same view for three different actions in controller. How can I render one view for all of actions? I googled but found nothing useful... And important is I use Kohana 3.0.11
user1440167
  • 1,913
  • 2
  • 12
  • 12
0
votes
1 answer

Kohana 3 – any easier than Kohana 2?

All the way while I have been trying to migrate from Kohana 2 to Kohana 3.2 in a new project, I was wondering how is it better? There is an evidence that databases work slower in Kohana 3 Captcha module was left out of the framework (so that one…
Webmezha
  • 117
  • 1
  • 8
0
votes
1 answer

How to back up a table and remove old data using cron in kohana

I want to run a cron which will take back up of data of a particular table for last three months and then it will delete the data which has been saved to the backup file. I have not done this before. Can I have some guidelines how to accomplish it…
KutePHP
  • 2,206
  • 6
  • 36
  • 54
0
votes
2 answers

downloading files as a corrupted files in kohana

hi guys i'm facing problem with file upload and download in kohana my controller is like this: class Controller_Test extends Controller { public function action_display() { $type = $_FILES['file']['type']; switch…
Ratna
  • 51
  • 7