i have defined some custom routes in ini file.
e.q.:
routes.person.type = "Zend_Controller_Router_Route_Regex"
routes.person.route =
"([\w_+-]+)/kontaktni-osoby/([0-9]+).html"
routes.person.defaults.controller = "person"
routes.person.defaults.action = "detail"
routes.person.map.1 = "subjectUri"
routes.person.map.2 = "personId"
routes.person.reverse = "%s/kontaktni-osoby/%s.html"
...
in bootstrap is inicialize router and setup to FrontController.
$Router = new Zend_Controller_Router_Rewrite();
$Router->addConfig($LanguageRoutes,'routes');
$FrontController->setRouter($Router);
And here is my problem.
Into view script have it:
$this->url(array('personId' => $person->ID_KontaktniOsoba, 'subjectUri' =>
$this->subjectUri),'person'),
All parameters have the correct type and value
>From normal request is output from url helper
http://www.example.org/foo/kontaktni-osoby/8.html. This is corect.
But if i use the same view script for rendering ajax request from dojo, is
result from url helper only: http://foo/kontaktni-osoby/8.html => All
hostname is missing
I am doing something wrong?
Debian - Apache 2.2
lestr@lestr-nb:~$ php -v
PHP 5.2.6-0.1+b1 with Suhosin-Patch 0.9.6.2 (cli) (built: Dec 1 2008
20:27:44)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by
eAccelerator
with Zend Debugger v5.2.12, Copyright (c) 1999-2007, by Zend
Technologies
Zend Framework 1.7.1, but the current svn trunk behaves well
Sorry for bad english.
--
View this message in context: http://www.nabble.com/Bad-url-from-url-helper-using-XMLHttpRequest-tp20917418p20917418.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论