kohana-3

htaccess to escape percent (%) from URL

匆匆过客 提交于 2019-11-27 08:06:05
问题 Having percent sign inside URL, returns bad request (error 400) to the browser. I have a file name that have percent (%) sign, resides at server. Original File name: 204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pdf Url in browser after clicking on download link: http://www.example.com/204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1%2C2%25.pdf This returns 400 error with bad request. I am using Kohana 3. Existing .htaccess file contents are as follows: RewriteEngine On

Kohana 3 ORM: How to perform query with 2 many to many relationships

最后都变了- 提交于 2019-11-27 07:28:12
问题 I have a products model with 2 many to many relationships defined. protected $_has_many = array ( 'foodcats' => array('model' => 'foodcat', 'through' => 'products_foodcats'), 'foodgroups' => array('model' => 'foodgroup', 'through' => 'products_foodgroups') ) I need a query where I find products with a given foodcat id and a given foodgroup name. I know I can do the following to get all products with a given foodcat id $foodcat = ORM::factory('foodcat',$foodCatId); $products = $foodcat-

client denied by server configuration

前提是你 提交于 2019-11-27 01:06:17
I try to setup kohana 3 project as virtual host. Config: <VirtualHost *:80> DocumentRoot "D:/Devel/matysart/matysart_dev1" ServerName matysart-one.local ServerAlias www.matysart-one.local DirectoryIndex index.php </VirtualHost> Error (403): [client 127.0.0.1] client denied by server configuration: D:/Devel/matysart/matysart_dev1/ Could somebody help? In my case, I modified directory tag. From <Directory "D:/Devel/matysart/matysart_dev1"> Allow from all Order Deny,Allow </Directory> To <Directory "D:/Devel/matysart/matysart_dev1"> Require local </Directory> And it seriously worked. It's seems

client denied by server configuration

无人久伴 提交于 2019-11-26 09:35:18
问题 I try to setup kohana 3 project as virtual host. Config: <VirtualHost *:80> DocumentRoot \"D:/Devel/matysart/matysart_dev1\" ServerName matysart-one.local ServerAlias www.matysart-one.local DirectoryIndex index.php </VirtualHost> Error (403): [client 127.0.0.1] client denied by server configuration: D:/Devel/matysart/matysart_dev1/ Could somebody help? 回答1: In my case, I modified directory tag. From <Directory "D:/Devel/matysart/matysart_dev1"> Allow from all Order Deny,Allow </Directory> To