Re: How to make this query the Cake way?

2009-10-13 Thread Amit Rawat
Try the Ad-hoc joins:- http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Re: How to make this query the Cake way?

2009-10-13 Thread lapinski
tal, Robots.*, Users.username > FROM > (`robots_tags` INNER JOIN robots ON (robots_tags.robot_id = > robots.id)) > INNER JOIN users ON robots.user_id=users.id > WHERE tag_id IN (1,2,3) > GROUP BY robot_id > ORDER BY total DESC > LIMIT 4 > > > > -- View this mess

How to make this query the Cake way?

2009-10-13 Thread Xoubaman
Robot HABTM Tag User hasMany Robot Robot belongsTo User I want to get related robots based on his tags. More tags in common, more related. So, whats the way to put this query using $this->Robot->find(...) or $this->Robot->RobotsTag->find(...) SELECT count(tag_id) as total, Robots.*, Users.usern

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Martin Westin
I only have a few general things to share. You have probably at least some of this in mind already but sometimes repetition is good :) First. It doesn't sound at all like you HAVE TO use plugins for what you describe. Plugins in cake can basically be two things. An optional functionality (a fract

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Evert
Well, the system that I thought required requestAction() was like this: I wanted to build a cms that's so complete you would only need to create a new database and a new css-file to create a whole new website. Plugins are used as codeblocks. So if I have a page with some content (an article or wha

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Richard
It really depends on why you are creating your CMS, as that would have a strong influence on your architecture. If you can provide more specific questions, maybe we/i can help :) To address your technical question, about plugins with requestAction - again, that depends on your architecture. I've n

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Evert
Ok, some people told me I didn't need to use requestAction as much as I thought. I'll try to build a cms with plugins by only using it's models and elements.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

What's the Cake-way to build a cms?

2009-04-20 Thread Evert
I've tried to think of several ways to build a cms in cake. But every system I could think of depended a lot on plugins. One system might use several plugins with one page load and that would be quite slow cause you needed to use requestAction() a lot. (In that system plugins weren't like mini-app

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread teknoid
ard to tell what you're doing. > > However I think most people would recommend you should do more inside > > your models. Components should just be to help out controllers with > > requests. > > > On Oct 31, 9:41 pm, Skal Tura <[EMAIL PROTECTED]> wrote: > >

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Skal Tura
ll what you're doing. > However I think most people would recommend you should do more inside > your models. Components should just be to help out controllers with > requests. > > On Oct 31, 9:41 pm, Skal Tura <[EMAIL PROTECTED]> wrote: > > > > > I am wonde

Re: The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Adam Royle
am wondering did i chose the Cake way of doing things with this, or > atleast close :) > > We have multiple models, all of which access same set of tables > handling massive amounts of data, searched using fulltext indexes. > There's additions, searches, modifies etc. from 2 diff

The Cake way of doing this? Multiple models accessing a huge dataset

2008-10-31 Thread Skal Tura
I am wondering did i chose the Cake way of doing things with this, or atleast close :) We have multiple models, all of which access same set of tables handling massive amounts of data, searched using fulltext indexes. There's additions, searches, modifies etc. from 2 different models, a

Re: The Cake way?

2007-01-03 Thread nate
Start here: http://manual.cakephp.org/appendix/blog_tutorial It'll give you a good feel for how to handle basic things like that in Cake. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

The Cake way?

2007-01-02 Thread dani
Dear Bakers, As I'm rather new to the Cake concept, I would be very grateful for some simple rules of thumb or links, concerning the following issue: When it comes to PHP programming, my usual practice is to set up some divs, into which I "include()" content based on simple GET vars. A common