Small update.  The model in question should have been called: 
module.php.  Renaming it has removed the first error in the page:

Warning: overload() was unable to locate class 'modules' in 
c:\inetpub\wwwroot\cake\basics.php on line 74

Now I only have the view path to sort out.

Regards,
Langdon


Langdon Stevenson wrote:
> Hi
> 
> I am having a strange problem with displaying a view.  I am running:
> 
> - Cake 1.1.7.3363
> - IIS 5
> - MS SQL Server
> 
> I have the following model, controller, and view:
> 
> controllers/modules.php:
> 
> <?php
>    class Module extends AppModel
>    {
>      var $name = 'Module';
>      var $useTable = "tblModules";
>    }
> ?>
> 
> 
> models/modules_controller.php:
> 
> <?php
>    class ModulesController extends AppController
>    {
>      var $name = 'Modules';
>       
>      function index() {
>       
>      }
> }
> ?>
> 
> 
> views/module/index.thtml
> 
> <p>Modules page</p>
> 
> 
> 
> However when I try to open:  http://myserver/index.php/modules/
> 
> I get the following error:
> 
> 
> Warning: overload() was unable to locate class 'modules' in 
> c:\inetpub\wwwroot\cake\basics.php on line 74
> 
> CakePHP Rapid Development
> Missing view
> 
> You are seeing this error because the view 
> cinetpubwwwrootappviewsmodulesindex.thtml for action index in controller 
> Modules could not be found.
> 
> Notice: this error is being rendered by the 
> app/views/errors/missing_view.thtml view file, a user-customizable error 
> page for handling missing/invalid views during rendering.
> 
> Fatal: Unable to load view file 
> cinetpubwwwrootappviewsmodulesindex.thtml for action 
> ModulesController::index()
> 
> 
> What interests me most is the path to the "missing view":
> 
> cinetpubwwwrootappviewsmodulesindex.thtml
> 
> It should be: c:\inetpub\wwwroot\app\views\modules\index.thtml
> 
> If cinetpubwwwrootappviewsmodulesindex.thtml is the path Cake is trying 
> to open then there is no surprise that it fails.  The question is why is 
> it dropping the directory separator?
> 
> My core.php file has the following settings enabled for IIS:
> 
>    define ('BASE_URL', env('SCRIPT_NAME'));
>    define('SERVER_IIS', true);        
>       
> Does anyone have any ideas what might be going on here?
> 
> Any advice greatly appreciated.
> 
> Regards,
> Langdon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to