kohana-3
Kohana 3 internal actions
I think that framework shouldn\' be a cage for developer, and because Kohana gives a lot of freedom I am just wondering how do other guys handle two action-related things:[详细]
2023-03-17 08:38 分类:问答kohana 3.1 orm validation on updating user details
I\'m running a update_user form through $user = ORM::factory(\'user\', $id)->update_user($this->request->post(), array([详细]
2023-03-16 10:20 分类:问答Kohana/ORM - Assign relations to views
I have an object in a controller\'s method: $post = ORM::factory(\'post\', array(\'slug\' => $slug);[详细]
2023-03-16 08:57 分类:问答Setting cookie using Kohana 3.1 helper class results in server error : 500
I am trying to make use of Kohana helper \"Cookie\" class.开发者_开发知识库 Doesn\'t seem to work, gives 500 error on calling.[详细]
2023-03-16 05:32 分类:问答Displaying same page differently for users with different roles
I wanted some suggestions from someone with experience in php. I am making a website in php which will have 4 kinds of users :[详细]
2023-03-15 21:07 分类:问答Where This Code Belongs? MVC & ORM
I\'m reading unofficial Kohana 3.0 docs at the moment. Where this code belongs? In controller or in model (class Model_MyName extends ORM model?)? I think that it should go in model. Am I right? If th[详细]
2023-03-15 19:49 分类:问答How To Get Array From Session Object In Kohana?
I\'m using Kohana 3.0 and I need to get array from Session object. For example: $session = Session::instance();[详细]
2023-03-15 13:38 分类:问答What's the proper way of setting the salt for cookies in Kohana 3?
I could just dive into the Kohana_Cookie class and set public static $salt = \'blah\'; But this doesn\'t seem like a very elegant solution... is there a propper way开发者_如何学运维 to set it in a[详细]
2023-03-14 14:08 分类:问答How to write the following query in orm using kohana
select * from u_question uq,users u where uq.asked_by=u.id andasked_by in (select u.id from fb_relations[详细]
2023-03-14 14:00 分类:问答Kohana 3 (ORM or DB) returning single field
What is the best way to retrieve results from one field using DB or ORM? For example, I need an array of user\'s friends ids to pass them to other function. I\'m currently doing it like this开发者_St[详细]
2023-03-14 04:12 分类:问答