Hi Jose,

Am Samstag, den 19.07.2008, 10:50 -0300 schrieb José de Menezes Soares
Neto:
> 
> I would like to create a script with ZF that:
> 
> 1. Access www.username.site.com
> 2. Prints username profile
> 
> I think I need to create an controller USER with action profile (
> http://www.site.com/user/profile/username), and, somehow link it to
> www.username.site.com by .htaccess...
> 
> But I don´t know how... any suggestions?

You could write your own router resolving $user.host.com to your user
controller. In your index.php there would be something like this:

<?php
if (!$is_maindomain) {
    $front->setRouter(new My_Custom_Router());
}

Or you extend the current router and handle both cases in the router
itself.

cu, Lars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to