I have this in the Pass.php template:
<?php
class Passagem extends AppModel {
public $name = 'Passagem';
}?>
And this in PasswordsController.php:
<?php
class PassagensController extends AppController {
public $helpers = array('Html','Form');
public $name = 'Passagens';
public $components = array('Session');
function index(){
$this->set('passagens', $this->Passagem->find('all'));
}
}?>
When I access the Passages page, an error occurs with this description:
"Error: Call a member function find () on a non-object File: C: \ wamp \ www \ SalesPassages \ app \ Controller \ PasswordsController.php Line: 8 "
Note: In the project there are other Models and Controllers. But only in "Passes" this error occurs.
What can it be?