Hi!

I need some help. In last 6 hours I tried to setup my application based on this:

subdomains:
games.sayusi.hu
library.sayusi.hu
blog.sayusi.hu

Every subdomains point the public/ directory.

directory structure:

app/
app/modules/
app/modules/games/
app/modules/games/controllers
app/modules/games/models
app/modules/games/views
app/modules/library/controllers
app/modules/library/models
app/modules/library/views
app/modules/blog/controllers
app/modules/blog/models
app/modules/blog/views
lib/
lib/Zend
lib/MyLibs
public/
public/index.php

I read these - [1] [2] [3] [4] - howtos and documentation pages but I'm failed.

[1] - http://www.noginn.com/2008/09/03/using-subdomains-as-account-keys/
[2] - 
http://www.noginn.com/2009/02/04/revisiting-hostname-routing-with-the-zend-framework/
[3] - http://www.mail-archive.com/fw-general@lists.zend.com/msg18229.html
[4] - 
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname

Now, I don't decide my whishes are to high or I'm to stupid for this.
I did make one route but if I want to more than one the nightmare is
started. I'm not sure I have or haven't to add the modules controller
directorys to $controller. If I added I got this exception
"$moduleName_IndexController is invalid controller name". If I didn't
add the directory the application using the default controllers.

Can somebody show me a live example?

I would appreciate your kind help!

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell

Reply via email to