> [mailto:[EMAIL PROTECTED] On Behalf Of ShepherdWeb
> That makes sense.  My current implementation is the other way around
> though:
> 
> (my url looks like this: /products/color/<color_id>)

So...

In colors_controller:

function getById( $id )
{
   $this->Color->id = $id ;
   return $this->Color->read() ;
}

In products_controller:

function color( $id )
{
   $this->set( 'data', $this->requestAction( "/colors/getById/$id" ) ) ;
}

// view same...

And you're good to go <g>

--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to