> [mailto:[EMAIL PROTECTED] On Behalf Of ShepherdWeb
> <?php
> class ColorsController extends AppController
> {
> var $name = 'Colors';
> }
> ?>
>
> in file : app/controllers/colors_controller.php
Do you have this class? You need it. And put that getById function inside it.
You will also need to create a Color model, if you don't have one.
You could start with this:
<?php
class ColorsController extends AppController
{
var $name = 'Colors';
var $scaffold = true ;
function getById( $id ) { return $this->Color->findById( $id ) ; }
}
?>
--
Regards,
Ryan Ginstrom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---