<?php
class TeamsController extends AppController {
var $name = 'Team';
function index() {
$this->set('teams', $this->team->find('all'));
}
function Welcome() {
}
}
?>
With that said, I have a model named teams...




Posted 25 April 2012 - 08:40 AM
<?php
class TeamsController extends AppController {
var $name = 'Team';
function index() {
$this->set('teams', $this->team->find('all'));
}
function Welcome() {
}
}
?>
Posted 25 April 2012 - 08:56 AM
$this->set('teams', $this->team->find('all'));
Posted 25 April 2012 - 09:23 AM
$this->Team->find('all')
Posted 25 April 2012 - 09:28 AM
$this->property_name
$this->property_name = value
Posted 25 April 2012 - 09:44 AM
Posted 25 April 2012 - 10:23 AM
Your $name variable in the controller should be 'Teams'.
Posted 25 April 2012 - 10:38 AM
Posted 25 April 2012 - 10:54 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
