2011年1月20日星期四

[fw-mvc] Re: Config appnamespace

I am doing so:

aplication
|- models
| |--Form
| | |---Reservations.php
| |-Room.php
|
|-modules
|--hotelfornt
| |-controller
| |-views
|
|--hotelreservation


aplication.ini:

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

Bootstrap:

protected function _initAutoload() {
$modelLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));

return $modelLoader;
}

Using Form:
new Model_Form_Reservations();
Using Room:
new Model_Room();
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Config-appnamespace-tp3228784p3228799.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: