Clicky

I have moved the model files and they are getting a: Class "Authacl_Model_UserService" not found (Zend Studio Alerts me to this fact) but the error message at the bottom also indicates this.  The controller files work fine, but the model and form directories do not work.

The program dies in the session.php.  I'll add the error message following all the text description.

I thought the following application.ini entry is all I should have to do:
;; RESOURCE MODULES and it's Path
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""

class name
from:  Application_Model_UserService  
to:   Authacl_Model_UserService

file name
from:  UserService.php  
to:   UserService.php

dir structure:
from:  application/models
to:     application/modules/authacl/models

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
Fatal error: 
Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - 
C:Program Files (x86)endServershareendFrameworklibraryendLoader.php(Line:146): 

Error #2 include_once() [<a href='function.include'>function.include</a>]: 
Failed opening [b]'AuthaclModelCurrentUser.php[/b]' for inclusion 
(include_path='C:wwwstd_templateapplication/../library;C:wwwstd_templatelibrary;.;
C:Program Files (x86)endServershareendFrameworklibrary') 
Array' in C:Program Files (x86)endServershareendFrameworklibraryendSession.php:493 

Stack trace: 
#0 C:Program Files (x86)endServershareendFrameworklibraryendSessionNamespace.php(143): 
	Zend_Session::start(true) 
#1 C:Program Files (x86)endServershareendFrameworklibraryendAuthStorageSession.php(87): 
	Zend_Session_Namespace->__construct('Zend_Auth') 
#2 C:Program Files (x86)endServershareendFrameworklibraryendAuth.php(91): 
	Zend_Auth_Storage_Session->__construct() 
#3 C:Program Files (x86)endServershareendFrameworklibr in 
  C:Program Files (x86)endServershareendFrameworklibraryendSession.php on line 493

asked 04/25/2011 12:28

MTTDev's gravatar image

MTTDev ♦♦


4 Answers:
make sure you have included all files or include path in initialization or application file
link
mjangid's gravatar image

mjangid

If the controller files in my module are being picked up shouldn't the model files be picked up?  They are both subdirs of the same module
link
MTTDev's gravatar image

MTTDev

I added this to my bootstrap of the default module:  Seems to have solved the path issues problems.
      

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
protected function _initResourceLoader ()
	{
	
		$resourceLoader = new Zend_Loader_Autoloader_Resource(
			array('basePath'      => APPLICATION_PATH . 'modules/',
			    'namespace'     => 'Authacl',
				    'resourceTypes' => array(
						'controller' => array(
				            'path'      => 'controllers/',
				            'namespace' => '',
				        ),						
				    	'form' => array(
				            'path'      => 'forms/',
				            'namespace' => 'Form',
				        ),
				        'model' => array(
				            'path'      => 'models/',
				            'namespace' => 'Model',
				        ),
				 ),
			)
		);
	}
link
MTTDev's gravatar image

MTTDev

Comments from the expert were correct in that during boot strapping something needed to to happen.  More direction and/or followup questions were required to be helpful in solving the problem.

The code above was the answer to the problem.  No points were awarded.
link
MTTDev's gravatar image

MTTDev

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1

Asked: 04/25/2011 12:28

Seen: 811 times

Last updated: 04/30/2011 09:22