I think you must create your controller as the following:
//app\controllers\trading_systems_controller_controller.php
class TradingSystemsController extends AppController
{
var $name = 'TradingSystems';
}
take a look at your controller is it (TradingSystemsController) or
(TradingsystemsController)...
If it's asking you to create app\models\tradingsystem.php then you
have wrongly created a TradingsystemsController instead of
TradingSystemsController.
Regards
On Mar 23, 1:53 am, "lamacq" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to figure out why cake isn't seeing my model. I've got a
> table named trading_systems, a controller named
> TradingSystemsController in controllers/
> trading_systems_controller.php, and my model is named TradingSystem
> and is in the file models/trading_system.php.
>
> When I accesshttp://localhost/trading_systems/I get this message:
>
> "Missing Model
>
> No class found for the Tradingsystem model"
>
> And it wants me to create this class in app\models\tradingsystem.php:
>
> <?php
> class Tradingsystem extends AppModel {
> var $name = 'Tradingsystem';
>
> }
>
> But I already have
>
> <?php
> class TradingSystem extends AppModel {
> var $name = 'TradingSystem';}
>
> ?>
>
> in app\models\trading_system.php. Note if I put var $uses =
> array('TradingSystem') in the controller, it works (although the view
> path is still messed up, views/tradingsystems instead of views/
> trading_systems/).
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---