Perhaps you should start reading here:
http://book.cakephp.org/view/78/associations-linking-models-to and get
a grasp of models relations and how to specify conditions. Then you
can use bake http://book.cakephp.org/view/113/code-generation-with-bake
to materialize the scaffold code and start coding the application
logic.
On Sun, Jul 13, 2008 at 12:18 PM, PaulMan <[EMAIL PROTECTED]> wrote:
>
> Hello Everyone,
> Using Scaffold,
> I Have a Model "Event" that belongsTo Result.
> The Problem is when i edit an Event How can i filter Results so that
> only rows ( Records ) with a especific condition, like
> Result.is_final=1, are available for select.
>
>
> class EventsController extends AppController {
> var $name = 'Events';
> var $components=array("auth");
> var $scaffold;
> }
>
>
>
> class Event extends AppModel
> {
> var $name = 'Event';
> var $displayField= 'description';
> var $belongsTo=array('Pool','Result' => array(
> 'className' => 'Result',
> 'foreignKey' => 'result_id'
> ));
>
> }
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---