Re: Easy way to deal with enum's?

2007-09-28 Thread guitarclap
For boolean fields tinyint(1) works great! A while back, I ran into situations where ENUM was the best way to go so I created the Enumerable behavior. http://bin.cakephp.org/view/513331644 Not sure if it still works or not (haven't tested it in a while). It stores the integer representation of

Re: create subdomain.

2007-09-28 Thread guitarclap
If you are using Windows as your local dev environment this I am pretty sure this is impossible. Windows can't handle local wildcards in hosts (windows\system32\drivers \etc\hosts) (Won't work) 127.0.0.1 *.site.local (Will work) 127.0.0.1 sub1.site.local 127.0.0.1 sub2.site.local You will also

Re: Cake 1.2 Cache Problem - Submitting a Form doesn't Reset Cache

2007-09-28 Thread guitarclap
I ran into a similar situation when I tried to cache a login page; when the form was submitted it would just simply show the same view again. I am pretty sure that this is by design - or fixed in the svn (somewhere). If you check out the file in /tmp/cache/views/ you will see why - cake caches t

Re: money_format?

2007-05-19 Thread guitarclap
NumberHelper has a currency() method. On May 17, 11:36 am, Enchy <[EMAIL PROTECTED]> wrote: > Hi > > money_format doesnt work when I run it in CakePHP > Is there any alternative I can use? > > L --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Admin as a plugin

2007-05-18 Thread guitarclap
Thanks for your reply! I agree with everything that you say. To me, it's kinda non conventional to mix the admin_* methods within non .. mostly because you can't look at the controllers and discern which ones have those methods until you open up the file. This way through a plugin you know what

Admin as a plugin

2007-05-18 Thread guitarclap
I was wondering what the cons were to making 'admin' an actual plugin. It seems to me that this might make the app much more organized since regular and admin_* functions aren't mixed in the same file. What are your thoughts? Is there more overhead doing it this way? --~--~-~--~~-

Where to find CakePHP Programmers

2006-11-16 Thread guitarclap
I am in Charleston, SC (yes, i know, not the mecca for computer technology) and our company has finally allowed to bring on a few full time programmers but I am having trouble finding any resources to locate these people. (php programmers with some basic knowledge of cake/mvc) The resume searches

Re: unnecessary left joins in findCount()?

2006-11-16 Thread guitarclap
If I am not mistaking 0 returns just hasOne and belongsTo ... 1 returns all .. .. 2,3,4,etc levels deep of recursion and -1 returns no recursions --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: unnecessary left joins in findCount()?

2006-11-16 Thread guitarclap
$this->{model}->findCount(null, -1); // 2nd param is the recursive On Nov 16, 3:56 pm, "sbarre" <[EMAIL PROTECTED]> wrote: > I'm running into peformance issues with the findCount() method in the > model class.. > > I am doing a listing of records in a given table, and the record has a > few assoc

Re: high load and benchmarking

2006-11-16 Thread guitarclap
Not sure actual benchmarking tools but hopefully this is helpful: www.pokerinside.com - 22.44 queries per second (77,190 per hour) - 69,265 members, with 9,959 active members - 3,100 unique visitors daily with 38,000 unique page views - 8 cron jobs run every 5, 30, 60 minutes - Server: Dual P4 2.

Re: Future of the "Internet"

2006-09-19 Thread guitarclap
I guess I went off on sort of a tangent with some of my post but the basics of my post, IMO, are quite applicable to this group since our existance as a community is based on the net and our main tool (Cake) is web-based development. Any small change in the net can affect us all ... with some cha

Future of the "Internet"

2006-09-18 Thread guitarclap
I am curious to see what other's think about this ... Where is the internet headed in the near future? It seems that recently there is a huge onslaught of community-based sites and digital music but it is definitely starting to fade ... why? You can thank News Corp, Time Warner and the other ad

Re: Cake and Traffic

2006-08-12 Thread guitarclap
www.pokerinside.com ... 100% CakePHP ... --~--~-~--~~~---~--~~ 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

HUGE inefficiencies

2006-08-11 Thread guitarclap
I have recently come to terms on how cake deletes associated models with the 'dependent' variable. This is a powerful but I feel that it is hugely inefficient when it comes to deleting (especially a hasMany relationship). I have a few models whos afterSave and afterDelete callbacks decriment/inc