controller:

$this->set('some_var', $this->ModelName->query($your_sql));

view:

debug($some_var);

By "dynamic query" I'm assuming you mean you're not using find().

On Mon, Apr 14, 2008 at 8:45 PM, UTDStudent <[EMAIL PROTECTED]> wrote:
>
>  Hey all,
>
>  I am creating dynamic queries in my application and need help figuring
>  out how to display them elegantly in CakePHP.  I could hard code a
>  bunch of views in with a lot of if statements, but I was wondering if
>  there was a more elegant way of displaying the result set.
>
>  Thanks,
>
>  Jeff Lott
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to