Re: specify field instead of string in conditions array

2008-01-10 Thread blange

Thanks that did the trick!

On Jan 10, 5:57 am, grigri <[EMAIL PROTECTED]> wrote:
> There's a 'magic marker' that tells cake not to interfere with
> conditions, and it's "-!" (hyphen - bang)
>
> So this would work:
>
> $conditions = array(
> 'Post.id' => '-!Post.thread_id')
>
> Of course, cake won't quote your field, so it would be better practice
> to put
>
> $conditions = array(
> 'Post.id' => '-!`Post`.`thread_id`')
>
> (makes it more readable too)
>
> On Jan 10, 1:07 pm, avairet <[EMAIL PROTECTED]> wrote:
>
> > Hello Brian,
>
> > Can you explain more? What is your context?
> > Because "conditions" array is normally for SQL conditions (e.g. :
> > "Post.id > 5" or "Post.id <> 10"), not for fields...
>
> > BR
>
> > Avairet
>
> > On 10 jan, 02:32,blange<[EMAIL PROTECTED]> wrote:
>
> > > $conditions = array(
> > > 'Post.id' => 'Post.thread_id',
>
> > > How to I make cake interpret Post.thread_id as the field instead of a
> > > string.
>
> > > Thanks.
>
> > > -Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



specify field instead of string in conditions array

2008-01-09 Thread blange

$conditions = array(
'Post.id' => 'Post.thread_id',


How to I make cake interpret Post.thread_id as the field instead of a
string.

Thanks.

-Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Cake for large websites...Zend?

2007-12-23 Thread blange

Can cake handle very large enterprise websites?  We have a site with
user submitted articles, blogs, and an active forum with tens of
thousands of users. Some of the developers are skeptical that cake can
handle the load.

Would zend be a better choice for a large site. If so, why?

Thanks in advance,

Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



ajax redirect

2007-08-08 Thread blange

how do I redirect inside of an ajax request?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Accessing fck editor data inside controller

2007-07-26 Thread blange

How do I go about accessing fck editor data inside the controller?
It is not available by default with $this->params.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



fck editor accessing data

2007-07-25 Thread blange

How do access form data from the fck editor?

When I output $this->data none of the changes to the textarea are
displayed.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---