problem s url router a nalezeni odpovidajiciho presenteru

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
vosy
Člen | 532
+
0
-

na lokalu opet vse funguje a na produkcnim mam

router nastaven na:

/* FRONT */
		$router[] = $frontRouter = new RouteList('Front');

		$frontRouter[] = new Route('sitemap.xml', 'Homepage:sitemap');
		$frontRouter[] = new Route('robots.txt', 'Homepage:robots');

		$frontRouter[] = new Route('<presenter>/<action>[/<id>]', 'Homepage:default');


		return $router;

pri adrese
http://www.navlastninohy.cz/…/koordinator

Cannot load presenter ‚Front:Koordinator‘, class ‚App\FrontModule\Presenters\KoordinatorPresenter‘

pritom by to melo hledat InzeratyPresenter

.htaccess

# Apache configuration file (see httpd.apache.org/docs/current/mod/quickreference.html)

# disable directory listing
<IfModule mod_autoindex.c>
	Options -Indexes
</IfModule>

# enable cool URL
<IfModule mod_rewrite.c>
	RewriteEngine On
	# RewriteBase /

	# prevents files starting with dot to be viewed by browser
	RewriteRule /\.|^\. - [F]

	# front controller
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
</IfModule>

# enable gzip compression
<IfModule mod_deflate.c>
	<IfModule mod_filter.c>
		AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
	</IfModule>

Server Apache/2.2.22 (Debian) PHP/5.4.39–0+deb7u2
Nette 2.3.0

Editoval vosy (15. 9. 2015 14:18)

David Matějka
Moderator | 6445
+
0
-

Nemas tam jeste jinou routu? matchnulo to opravdu tuhle routu? (zjistis v tracy panelu)

David Grudl
Nette Core | 8239
+
0
-

Rekl bych, ze se spatne detekuje document_root, tj jako root bere celou url.