howto get kohana 3.3.x or 3.2.x up and running when default route failes after fresh installation
5. Dezember 2013
Kommentare deaktiviert für howto get kohana 3.3.x or 3.2.x up and running when default route failes after fresh installation By webpirat
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() { ... // 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, '', $uri); return $uri; }
bootstrap, default, hack, index, kohana, match, params, PHP, request, route, routing, uri, welcome
Agavi routing specials
Um bestimmte Agavi output_types bei speziellen routings zu bedienen kann man die routing.xml wie folgt anpassen.
<!-- cut out leading slash --> <route name="slasher" pattern="^/" stop="false" imply="true" cut="true" /> <!-- match ajax calls with special http header --> <route pattern="XMLHttpRequest" source="_SERVER[HTTP_X_REQUESTED_WITH]" stop="false" output_type="ajax" /> <!-- match json calls with special http header --> <route pattern="application/json" source="_SERVER[HTTP_ACCEPT]" stop="false" output_type="json" /> <!-- cut out special pointer --> <route name="portal" pattern="^({portal:[a-zA-Z]{3}}/)?" stop="false" imply="true" cut="true"> <callbacks> <callback class="RoutingCallback" /> </callbacks> </route>
agavi, ajax, header, http, http_accept, http_x_requested_with, json, output, routing, specials, types
Neueste Beiträge
Kategorien
- Agavi
- Android
- ANT
- Apache
- Bildbearbeitung
- CMS Systeme
- Codeigniter
- CSS
- Debugging
- Deployment
- Doctrine ORM
- Flash
- Frameworks
- GIT
- Javascript
- Kanban
- Kohana
- Layout & Styles
- Lightroom
- Lighttpd
- Linux
- Management & Prozesse
- MySQL
- Nginx
- OffTopic
- Photographie
- Photoshop
- PHP
- PhpMyAdmin
- PHPUnit
- Postfix
- Propel ORM
- Ruby On Rails
- Scrum
- Server
- Shell
- Sicherheit
- SOAP
- Social Media
- Sonata
- SVN
- Symfony2
- Versionierung
- VIM
- Wordpress
- XDebug
- XML
- XT Commerce
- Zend