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
3 answers

Kohana 3: Validation rule for has_many through relationship

Is it possible to create a validation rule in Kohana 3 that will validate the has_many through relationship? Using the example on the guide page, a blog post can have many categories through the categories_posts table. Is there a validation rule…
krische
  • 1,010
  • 3
  • 11
  • 17
1
vote
1 answer

Can I use kohana 3.0 Auth module with 3.2

I am trying to upgrade my app to Kohana 3.2 but I'm having trouble because all my users are in the database with passwords encrypted by Auth from Kohana 3.0. It looks like 3.2 does it differently. Can I configure 3.2 to use the same encryption?
Rich Standbrook
  • 648
  • 7
  • 20
1
vote
1 answer

Kohana 3.2 has_one model not loaded

I've got 2 tables: Profiles ------ id Stats ------ profile_id v1 v2 and 2 models: Profile_Model $_has_one = array( 'stat' => array() ); Stat_Model $_belongs_to = array( 'profile' => array() ); I do: $profile = ORM::Factory( 'profile', $id…
1
vote
1 answer

Binding Variables to Kohana Messages

Is there a way to pass through a variable to Kohana messages, which can then be picked up by the il8n translation e.g.: Kohana::message('user', 'greeting') messages/user.php: return array ( 'greeting' => __('user.greeting', array(':user' =>…
xylar
  • 7,433
  • 17
  • 55
  • 100
1
vote
2 answers

Custom i18n error messages in Kohana 3.2

I understand the way of creating custom error messages in Kohana 3.2: Kohana 3.2: Custom error message for a custom validation rule? My problem with it is the too much repeat, because I need a separate file for User Model, Post Model etc. Are there…
Subi
  • 11
  • 3
1
vote
2 answers

Bootstrap needs extra routes for controllers not caught by default rule in Kohana 3.2

I have multiple controllers in my Kohana 3.2 project where the routes where initially: Route::set('default', '((/(/)))') ->defaults(array( 'controller' => 'user', 'action' => 'index', )); It was working fine for all my…
Tarek
  • 3,810
  • 3
  • 36
  • 62
1
vote
1 answer

Additional "<" (<) character in html output in Kohana 3.2

I'm having a trouble with the response output of the Kohana Framework 3.2 Perhaps this is a known issue, but I have not been able to find a similar question or a response in the matter. Whenever I make a request to a controller and I get a…
safink
  • 13
  • 4
1
vote
1 answer

Kohana 3.2: Calling model with underscore in name

I have the following model: class_user nammed after a table in my database clas_user. When I call this model with the following code: $class_user = new Model_Class_User(); It can't find my model. Within my model file, the class is named exactly the…
Prusprus
  • 7,987
  • 9
  • 42
  • 57
0
votes
1 answer

Getting array data from an file inside \config

Kohana 3.2 with Kostache Mustache. I'm new on this. I have this in a view $this->config = Kohana::$config->load('information'); if(isset($this->config["techinfo"][Request::current()->param('product')])) { …
JGSilva
  • 120
  • 1
  • 1
  • 9
0
votes
1 answer

Return values from database in original datatypes (Kohana ORM)

I have a column in database table active which should return whether user has confirmed mail or not. It is tinyint(1) and if it is set 0 and I test it strictly against FALSE operator doesn't return TRUE. I use ORM to communicate with database. This…
Almir Sarajčić
  • 1,520
  • 3
  • 16
  • 19
0
votes
1 answer

Kohana 3.2 : Error reading session data (Debian Platform)

I have recently got my website launched on Debian platform. However, I keep getting this 'Error reading session data' whenever try to read the session data. I suspect it could be caused by corrupted session data. I had tried to ini_set…
DPH
  • 1
  • 1
0
votes
1 answer

kohana 3.2.3.1 route not working when controller is in a sub folder

I've just been given a project for a CRM called Kohana, which i've never heard of until now. Everthing works ok except for controllers that are in a sub folder and when the controller name isn't just a single word. This controller is in…
Glen Elkins
  • 867
  • 9
  • 30
0
votes
0 answers

Auth in Kohana 3.2 doesn't login users after migration to another hosting

After a migration to the new hosting, users can't login with correct data. All DataBase and auth settings were left the same (except new DB host, DB user name and password) Here is the settings of auth.php: return array( 'driver' =>…
0
votes
0 answers

Synchronous XMLHttpRequest on the main thread is deprecated in min.js 1.6.3

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/. ****// Open the socket // Passing null username,…
arulraj
  • 105
  • 2
  • 12
0
votes
1 answer

How to redirect the URL/public/language to URL/public

we are using kohana 3.2 (PHP). Now our website have more language. we will pass the URL/language/public/. This path must be redirect to URL/public/. can you advise us. en/public/white/css/en_style.css changed to /public/white/css/en_style.css
arulraj
  • 105
  • 2
  • 12