I really need help, im a beginner in cakephp, i need to know how to
fix this:

---------------------------------------------------------------------------------------------------------------------------------------------
OUTPUT ERROR:
---------------------------------------------------------------------------------------------------------------------------------------------
Notice (8): Undefined property: FondosFuncionalesController::
$FondoFuncional [APP\controllers\fondos_funcionales_controller.php,
line 10]

Code



        function index() {

            $this->set('fondos_funcionales', $this->FondoFuncional-
>find('all'));

FondosFuncionalesController::index() - APP\controllers
\fondos_funcionales_controller.php, line 10
Object::dispatchMethod() - CORE\cake\libs\object.php, line 115
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88


Fatal error: Call to a member function find() on a non-object in C:
\xampp\htdocs\cake_1_2\app\controllers
\fondos_funcionales_controller.php on line 10

---------------------------------------------------------------------------------------------------------------------------------------------
MODEL CODE (app/models/fondo_funcional.php)
---------------------------------------------------------------------------------------------------------------------------------------------

<?php
        class FondoFuncional extends AppModel
        {
                var $name = 'FondoFuncional';
        }
?>

---------------------------------------------------------------------------------------------------------------------------------------------
CONTROLLER CODE (app/controllers/fondos_funcionales_controller.php)
---------------------------------------------------------------------------------------------------------------------------------------------
<?php
        class FondosFuncionalesController extends AppController
        {
               var $name = 'FondosFuncionales';

function index() {
                        $this->set('fondos_funcionales', 
$this->FondoFuncional->find
('all'));
                }

        }
?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to