Re: Containable, Pagination and HABTM

2009-08-12 Thread sunertl
On 12 Aug., 19:00, brian wrote: > Why not just use find()? Can a User belong to so many Groups that you > need to paginate them? Normally, a user will belong to about 10 groups, but the "moderators" belong to much more (30-50). Also groups are used only for one year tops and I would like to keep

Containable, Pagination and HABTM

2009-08-12 Thread sunertl
Hey there, after hours of googling and reading tutorials I am desperate now and seek your help. I am working with Cake 1.2.4.8284, I have two models, User (table users) and Group (table group) where User HABTM Group. The join table is called groups_users, it contains user_id and group_id and an a

Re: Top 10 Framework

2009-02-02 Thread sunertl
ort films and videos.http://www.youtube.com/browse?s=tr&c=0&l=&b=0 > > You decide popularity by voting and popular is not always the same as > good. > > What I conclude is that Akelos have some very dedicated fans. That is > all. > > On Feb 2, 1:26 pm, sunertl wrote: &

Re: Top 10 Framework

2009-02-02 Thread sunertl
I tested Yii for a while. It seems nice but not as fully featured as Cake. E.g. code generation is not even half as nice as in Cake - relations are made by hand in every model, controller, view. a little bit annoying. But it is fast as hell. I implemented a little project database which I also mad

Reuse of code via elements, requestAction etc.

2007-12-04 Thread sunertl
I have a question concerning the reusage of code in cakephp. as far as i understood the optimum to reach in mvc-frameworks is that no code is written twice. cake gives me means like elements and requestAction to reach this goal. but: every requestAction results in a new http-request, for elements

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread sunertl
is your browser configured to display utf-8? what you describe happend to me with german umlauts and back then it helped to switch the encoding in the browser (it was iso-8859-1) to utf-8 manually. i always thought the browser (firefox in my case) switches automatically but maybe a add-on or somet

Re: Generate fields onthe fly for task manager

2007-05-22 Thread sunertl
I had a similar problem and did the following: I made one table containing the names of the fields. It is pretty simple, just id and name. In my case it was named parameters. There was also a second table called systems (which would be your tasks). Those two had a habtm-relation, which created a t

Re: Eclipse PDT

2007-04-27 Thread sunertl
You can use it via the team-functionality. so if you select synchronisation for you project you can select webdav, cvs and ftp (and some more if you installed the plugins). choosing ftp will let you 1. let you synchronise your files with your server and 2. simulate something like versioning by sh

Re: Are you going to let this happen?

2007-03-25 Thread sunertl
btw. today it is CakePHP 50k (!) and Symphony 3.3k :-D - that's what I call realistic ;-) On 25 Mrz., 09:33, "Mandy" <[EMAIL PROTECTED]> wrote: > Went and paid my tributes :) > > On Mar 25, 1:03 am, "francky06l" <[EMAIL PROTECTED]> wrote: > > > Actually I mean 21K and about 5k for the sum of all

Re: Navigation element

2007-03-20 Thread sunertl
I would recommend another way. gwoo's solution means a request to the db every time(!) the navigation is shown. IMHO too much db-action. I would create a function in the controls controller like function updateNavigation() { $entries = $this->Control->findAll(); $string = '';

Re: created-filed in db-table

2007-03-19 Thread sunertl
Oh I please do not get me wrong! I really love the concept of cake and the restrictions it has because it really made me a better and tidier programmer since I use it. But sometimes - and really only sometimes - it lacks of fallback options. Like in this case. As far as I understand the code it ch

Re: created-filed in db-table

2007-03-19 Thread sunertl
hm... I wrote a pretty long answer but somehow it was not posted?!?! damn. ok, again but a little bit shorter. I have to use the unix timestamp because it is obligatory in our company. Using datetime simply would lead to not getting my app approved. Changing the name is the way I use now. But I

Re: created-filed in db-table

2007-03-19 Thread sunertl
I worked around the problem by changing the name but in my opinion this is not how it should work. Currently I am developing a system for project management in cake and we need the unix timestamp for interchanging purposes. It is the format which is understood by all of our (non-cake-)systems wit

created-filed in db-table

2007-03-19 Thread sunertl
I use the (amazing) 1.2 alpha-release for a few days now and have problems with fields named "created" in db-tables. For some reasons I do not use datetime but integer for "created". Cake seems to have problems with that because I always get errors in line 1052 in cake/ model/model.php. I tried to