{"id":742,"date":"2013-12-05T17:27:00","date_gmt":"2013-12-05T16:27:00","guid":{"rendered":"http:\/\/webpiraten.de\/?p=742"},"modified":"2013-12-05T18:23:10","modified_gmt":"2013-12-05T17:23:10","slug":"howto-get-kohana-3-3-x-or-3-2-x-up-and-running-when-default-route-failes-after-fresh-installation","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/frameworks\/howto-get-kohana-3-3-x-or-3-2-x-up-and-running-when-default-route-failes-after-fresh-installation\/","title":{"rendered":"howto get kohana 3.3.x or 3.2.x up and running when default route failes after fresh installation"},"content":{"rendered":"<p>copy the <em>system\/classes\/kohana\/request.php<\/em> to your <em>application\/classes\/kohana\/request.php<\/em> directory and open the file.<br \/>\nedit the file at around line <strong>332<\/strong> in the <em>detect_uri<\/em> method.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n\tpublic static function detect_uri()\r\n\t{\r\n\r\n\t\t...\r\n\r\n\t\t\/\/ cut out the initial base part to make sure the internal routing will get correct input\r\n\t\t$uri = str_replace(Kohana::$base_url.Kohana::$index_file, '', $uri);\r\n\t\treturn $uri;\r\n\t}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>copy the system\/classes\/kohana\/request.php to your application\/classes\/kohana\/request.php directory and open the file. edit the file at around line 332 in the detect_uri method. public static function detect_uri() { &#8230; \/\/ cut out the initial base part to make sure the internal routing will get correct input $uri = str_replace(Kohana::$base_url.Kohana::$index_file, &#8220;, $uri); return $uri; }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121,3,26,5,54],"tags":[513,505,509,514,9,507,511,633,508,506,166,510,512],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-debugging","category-frameworks","category-kohana-framework","category-php","category-server","tag-bootstrap","tag-default","tag-hack","tag-index","tag-kohana","tag-match","tag-params","tag-php","tag-request","tag-route","tag-routing","tag-uri","tag-welcome"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":7,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/742\/revisions\/749"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}