Hi

I am accessing a default module controller named kmenu from a blog module's
layout.phtml file using "$this->layout()->Knav = $this->action('index',
'kmenu');"

So the KMenuController is sitting in the Default module that uses "Kcats"
model from Default as well.

This works all fine on my test machine which is a wampserver running php
5.2.9, but I am getting fatal error on the web hosting provider's production
server also running php 5.2.9

Below is the error message, not sure if double slashes (//) is causing the
problem

------Start Error message----------

Warning:
include(/var/www/vhosts/zftest.com/httpdocs/system/application/models/DbTable//Kcats.php)
[function.include]: failed to open stream: No such file or directory in
/var/www/vhosts/zftest.com/httpdocs/system/library/Zend/Loader/Autoloader/Resource.php
on line 176

Warning: include() [function.include]: Failed opening
'/var/www/vhosts/zftest.com/httpdocs/system/application/models/DbTable//Kcats.php'
for inclusion
(include_path='/var/www/vhosts/zftest.com/httpdocs/system/application/../library:/var/www/vhosts/zftest.com/httpdocs/system/library:.::../library')
in
/var/www/vhosts/zftest.com/httpdocs/system/library/Zend/Loader/Autoloader/Resource.php
on line 176

Fatal error: Class 'Default_Model_DbTable_Kcats' not found in
/var/www/vhosts/zftest.com/httpdocs/system/application/controllers/KmenuController.php
on line 14

------End Error message----------

So in nutshell, if I access a Default controller accessing a Default model
from a named module, I get this error. But works fine on my test machine

thanks
-- 
View this message in context: 
http://n4.nabble.com/can-t-access-model-from-default-module-tp998990p998990.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to