Questions tagged [kohana-3.2]

An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.

151 questions
0
votes
1 answer

How to get GET params from view to controller with anchor tag in Kohana 3.2

I have an anchor in view: echo HTML::anchor("admin/supm_find?page=".($page+1).'&tselected='.$selected, "Next"); Wenn, i ckick on anchor tag, that's call "admin" contorller with "supm_find" action and "page" and "selected" params. In…
Vincent
  • 15
  • 1
  • 3
0
votes
3 answers

How get db name in Kohana 3.2?

how can I get currently used database name in Kohana 3.2? I've got app(store) with multiple db's and I need to debug whole app if it's working properly. Kind regards Mark
Marek Kaliszuk
  • 577
  • 5
  • 21
0
votes
0 answers

kohana 3.2 returns empty ORM result

I have problem with kohana 3.2 and Orm query. My code returns empty result but I am 100% sure that the row what I need is in table. $product_desc = ORM::factory('product_description') ->where('language_id', '=', 1) …
Marek Kaliszuk
  • 577
  • 5
  • 21
0
votes
0 answers

Kohana 3.2 redirect in javascript

I need create redirect with delay after ajax action. A have code setTimeout(function(){ window.location.href=""; },2000); in ajax success function. Of course I have session error in kohana. I have no idea how…
110precent
  • 322
  • 4
  • 19
0
votes
1 answer

Redirect 404 Page using Kohana Framework

How to redirecting page to homepage use Kohana 3.2 I try use .htaccess file but failed: RewriteBase / ErrorDocument 404 http://www.domain.com/ ErrorDocument 400 http://www.domain.com/ ErrorDocument 401 http://www.domain.com/ ErrorDocument 500…
Lena Queen
  • 751
  • 1
  • 10
  • 18
0
votes
1 answer

Kohana 3.2 + PHPExcel creates empty document when there are more than 31 rows written.

I'm trying to create a simple excel document that contains a 3-column list. (First Name, Last Name, Email Address) When I output more than 31 rows, a blank excel file is created. Does anyone know how to fix it? My code below: $guests =…
0
votes
2 answers

Kohana 3.2 validate composite primary key

I have following table create table `groupusers`( `id` int not null auto_increment, `user` varchar(100) not null, `group` varchar(100) not null, UNIQUE KEY(`id`), PRIMARY KEY(`user`, `group`) ) My model looks like this, class Model_Groupuser…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
0
votes
1 answer

kohana3.2 routing with subdomains - multilanguage

I've got a small problem with routing in kohana 3.2. I want to create a simple blog with multiple language support. I want to create links like this: pl.yourwebsite.com/kontakt en.yourwebsite.com/contact xx.yourwebsite.com/sometranslation of…
Marek Kaliszuk
  • 577
  • 5
  • 21
0
votes
2 answers

ERROR READING SESSION DATA in Kohana 3.2

I am having a problem with the session with the web development framework Kohana 3.2 that apparently is a bug that, at most, can be workarounded. It reports SESSION_EXCEPTION [ 1 ]: ERROR READING SESSION DATA. My Kohana application isn't in the root…
Andrade
  • 1,179
  • 12
  • 15
0
votes
1 answer

How to make this query with ORM::factory

I dont know how to use this "MAX" with ORM. Use Kohana 3.2. SELECT MAX( version_id ) AS latest FROM pages_versions WHERE page_id = 3
gellezzz
  • 1,165
  • 2
  • 12
  • 21
0
votes
2 answers

Kohana 3.2 ORM questions

Let's summarize what i want to ask. I have a category table and a news table. So a category can have many news as well as sub categories. If i delete a category, the code need to find the category's sub categories as well as news related to that…
0
votes
1 answer

Getting a 404 error for index page

I keep getting this error when trying to go the index page in kohana Kohana_HTTP_Exception[ 404 ]:The requested URL localwebsite/admin was not found onthis server. SYSPATH\classes\Kohana\Request\Client\Internal.php [ 79 ]: if ( !…
Augustus
  • 9
  • 2
0
votes
1 answer

Rewrite to remove url - kohana 3.2 and .htacess

My installation of Kohana 3.2 works well. The site is navigable and also the CRUD functions works. He is in the example address: www.site.com.br/folder/. At .Htacess I have # Turn on URL rewriting RewriteEngine On # Installation…
JGouveia
  • 1
  • 1
0
votes
0 answers

Kohana DB connection change from MySql to PDO

I built a project with kohana 3.2 and used mysql as a default driver, now i am thinking to change it to PDO, i just need to know if it will make any effect on my application, if yes where i should check/fix the possible issues.
Rizwan Yahya
  • 366
  • 3
  • 17
0
votes
4 answers

How to get an old password in ORM?

I need an old password (not hashed) for sending to user but doesn't see a good idea? I read the documentation and there is only a method where I can get a hashed password. What can I do for getting real password?
Smash
  • 513
  • 5
  • 23