Hello,

I have a problem with subdomains in Zend Framework 1.7.3 . For example: 

- username.domain.com works (shows user profile)  
- username.domain.com/usermovie/23 - it doesn't work. ZF ignores that this
url has one $_GET['usermovie'] which value is 23 and shows user profile. 

The router which I use is:

$router = $frontController->getRouter();
$pathRoute = new Zend_Controller_Router_Route_Regex( '(.+)|()', array(
'controller' => 'user', 'action' => 'see' ), array( 'action' => 'see' ) );
$accountRoute = new Zend_Controller_Router_Route_Hostname(
':user.domain.com', array( 'module' => 'user' ), array( 'user' =>
'([a-z0-9]+)' ) );
$router->addRoute('user', $accountRoute->chain($pathRoute));    
$frontController->dispatch();


I was looking for solution in this forum, in the ZF documentation and in
google but I didn't find answer for my question. 

Anybody could explain me, why ZF doesn't see variables in my url path ?  


-- 
View this message in context: 
http://www.nabble.com/Subdomains-in-ZF-tp22758754p22758754.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to