What about a modular application structure?

Yii is a framework for developing large-scale Web applications.

What about a modular application structure like in Zend Framework?

This it is not enough controllers organized in subdirectories.

A module is more of an application-level concept. IMO, a module is a self-contained sub-application which in terms of MVC consists of a set of controllers, models and views. While not called module, an Yii extension can be a module. For example, you can create a user-management Yii extension which is readily plugged into an application.

In this I with you agree.

But as be with address space of application?

By e.g.

admin/users/view

admin/users/view/id/123

admin/users/edit/id/123

admin/orders/edit/id/123

personal

personal/orders/view

personal/profile/edit

personal/shoppingcart

catalog

catalog/categories

catalog/categories/view/id/123

catalog/manufacurers/view/id/123

catalog/products/view/id/123

news

The URL address space is not a problem. Yii supports mapping of controller IDs. That is, given a module of controllers, you can freely configure how to organize the URLs to access corresponding controllers (which is not necessarily according to their file storage.)

I already found a answer and solution how to determine where we are located.

This is a 'id' public property of CController.

CVarDumper::dump();

http://test5.ru/cata…categories/view

(

    [layout] => null

    [defaultAction] => 'index'

    [CController:_id] => 'catalog.categories'

    …

For me first part 'catalog' is a module.

And second part is controller in a module.

Thanks.

One trouble with this.

Our existing site already indexed by search engines with URLs with no comma separator.

Current URLs are look as

catalog/categories/view/id/123

With Yii this will be

catalog.categories/view/id/123

It is possibly to extend CUrlManager to manage with one more format (or optional parameter?) for recognition URL without comma separation?

Let this will be little slowly, but this will useful be for compatibility with applications written in other frameworks.

So to speak, by force.

Sorry, for slang. I use dictionary.

Yii is a good project and alternative.

The Velocity and simplicity is a power.

I don't wnat use routes. I don't love them.

This thread is very similar, I think:

http://www.yiiframew…106.msg520.html