Re: 中文cakephp讨论组(cakephp discuss grp for guys who use Chinese)

2006-12-24 Thread Daniel Hofstetter
There exist already a Chinese group: http://groups.google.com/group/cakephp-cn -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: how would you scale a cake app?

2006-12-24 Thread Langdon Stevenson
It's an interesting question. I am working on an application that (if it works out for the client) may grow to support thousands of users with requirements for high availability. If it ever grows that far, then I expect that we will need to redevelop at least some parts of the application

Merry Chirstmas

2006-12-24 Thread 杨苏立 Yang Su Li
Hi Guys, Merry Chirstmas~! Wish you good luck in the coming year :) -- 此致 敬礼! 杨苏立 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: how would you scale a cake app?

2006-12-24 Thread Nimrod A. Abing
On 12/24/06, keymaster [EMAIL PROTECTED] wrote: .. just dreaming, but.. If one wanted to use cake to build an app which is scalable to the extreme, ie. flickr.com or yourtube.com or myspace.com, how would you do it? http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html

Re: how would you scale a cake app?

2006-12-24 Thread Chris Lamb
Langdon Stevenson [EMAIL PROTECTED] wrote: I think that I would likely just replicate the entire application across multiple web servers, and hand out the requests in a round robin to the web servers. Or maybe FastCGI's load balancing? I would be very interested to hear anyone else's

Re: Merry Chirstmas

2006-12-24 Thread purepear
Merry Christmas! :) --~--~-~--~~~---~--~~ 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]

Re: Update on translations.

2006-12-24 Thread Olivier Percebois-Garve
You'll receive the french version pretty soon I think, we are debating some points and then Bruno Baudry should send you the file. Larry E. Masters aka PhpNut wrote: Below is a list of the files we currently have and need translated still. core.po files need to be translated: Danish

RE: Merry Chirstmas

2006-12-24 Thread Mariano Iglesias
Merry Chirstmas, Happy Hanukkah, and a Wonderful New Year for all CakePHP bakers. May this year be the one where CakePHP establishes itself as the greatest framework of all times ;) -MI --- Remember, smart coders answer

RE: how would you scale a cake app?

2006-12-24 Thread Mariano Iglesias
Check this out, it's not that high of an explanation but provides some useful tips on how to improve PHP performance: http://talks.php.net/show/hpp For some reason the creators of that presentation decided that they don't support IE so you'll need to use FF or something else to view it. In

Rendering non-ajax view after calling action with ajax call

2006-12-24 Thread igor
Hi all, I have this index.thtml where I have XMLHTTPRequest call to my /editors/topics_publishing action. This call is working - i get the data in /editors/topics_publishing action. What I want now is, after calling this action, to render this view like a new page, not like xmlhttp Respond.

Re: how would you scale a cake app?

2006-12-24 Thread Olivier Percebois-Garve
A simple way to let a webapp scale is to moved session's and db's data to cookies as much as possible. olivvv Nimrod A. Abing wrote: On 12/24/06, keymaster [EMAIL PROTECTED] wrote: .. just dreaming, but.. If one wanted to use cake to build an app which is scalable to the extreme, ie.

RE: Rendering non-ajax view after calling action with ajax call

2006-12-24 Thread Mariano Iglesias
But you are just asking for a normal AJAX update, why are you trying to do it by yourslef? DRY baby ;) Try this: index.thtml: ?php echo $ajax-div('updateableDiv'); ? form method=post id=finished_topics_form name=finished_topics_form onsubmit=return false; ... ?php echo $ajax-submit('

Re: Rendering non-ajax view after calling action with ajax call

2006-12-24 Thread igor
Thanks for answer, but I wasn't asking for that. I used Ajax.Updater before and what You have described I already used. I will try to explain differently: If I call my action like usual (ie. non-ajax): http://myserver/mycontroller/myaction/ I get normal response. OK? I want to have that

Re: Update on translations.

2006-12-24 Thread Bruno Baudry
Yes we're close, but Santa's calling, so we'll have to deliver the file tomorow... merry christmas to all of you. Olivier Percebois-Garve a crit : You'll receive the french version pretty soon I think, we are debating some points and then Bruno Baudry should send you the file. Larry E.

Re: how would you scale a cake app?

2006-12-24 Thread bgmill
I'm running a cake app on 3 webservers (round robin dns) and 1 mysql server right now, traffic yesterday was around 200,000 uniques and 400,000 page views. Caching is being used on some of the heavier hit controllers but all in all, load is minimal across the board -- we could easily handle 2

Re: how would you scale a cake app?

2006-12-24 Thread keymaster
On Dec 24, 4:01 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: CakePHP is a framework that allows you to easily develop your application thinking about scalability all the way, so take advantage of that. I understand how the MVC separation and strict coding conventions make maintainability

Re: IDE of choice?

2006-12-24 Thread joelmedia
I use both phpeclipse and Macromedia Homesite. I prefer eclipse for the coding long hauls, and home site for quick and dirty editing. One thing I did that helped a lot was to associate the .thtml extension with php in the file preferrences of my editors. Bingo bango bongo, this turned on the

RE: how would you scale a cake app?

2006-12-24 Thread Mariano Iglesias
Your situation sounds like a great source for a potential bakery article, mainly for: 1. Understanding how CakePHP is behaving on a high-traffic/clustered server. 2. Giving a short tutorial on how you managed to add new servers and how it impacted on your application. Just a thought :) -MI

RE: how would you scale a cake app?

2006-12-24 Thread Mariano Iglesias
I am talking about what the CakePHP framework offers you in terms of scalability, things like: 1. View caching: you can cache views as a whole or even specify which parts of a view should not be cached: http://manual.cakephp.org/chapter/view_cache 2. Model/Object caching: cache model queries

RE: Rendering non-ajax view after calling action with ajax call

2006-12-24 Thread Mariano Iglesias
So by normal response when called by AJAX you mean that the whole layout should be returned? Then it's just a matter of setting your layout accordingly, isn't it? Or do you mean more like handling the action redirect? If you are redirecting within the same controller then use setAction passing

Re: Rendering non-ajax view after calling action with ajax call

2006-12-24 Thread igor
That's not what I was looking for, but thanks anyway... Guess my language is not quite good in explaining.. :) Anyway, I solved what I wanted... I wanted to submit this form to a new page. But I had some other AJAX calls in the same form that updates this form (I am transfering some serialized

findBy issue

2006-12-24 Thread Kynlem
Hello, I've been having some problems with a findByfield function. When I've called the method with a not empty string as argument, it worked fine, but when I've passed an empty string, Cake generated the query with the WHERE clause like: WHERE (`User`.`username` = ) I've spent a bit of time

Re: how would you scale a cake app?

2006-12-24 Thread bgmill
I may well write an article for the bakery after the holiday season - are there any other high traffic sites known to be using cake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: how would you scale a cake app?

2006-12-24 Thread Langdon Stevenson
Hi bgmill Sounds like you have a good system/site there. Can you tell me what sort of hardware it is running on? Regards, Langdon I'm running a cake app on 3 webservers (round robin dns) and 1 mysql server right now, traffic yesterday was around 200,000 uniques and 400,000 page views.

RE: findBy issue

2006-12-24 Thread Adrian Godong
I'm assuming that you don't want any 'User' added on the query? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kynlem Sent: 25 Desember 2006 5:24 To: Cake PHP Subject: findBy issue Hello, I've been having some problems with a findByfield

Re: Update on translations.

2006-12-24 Thread ERic ZoU
Thanks Larry. The chinese version is working great. Either UTF-8 or zh_cn. They are all display correctly. Happy Baking! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: findBy issue

2006-12-24 Thread Olexandr Melnyk
2006/12/25, Adrian Godong [EMAIL PROTECTED]: I'm assuming that you don't want any 'User' added on the query? What do you mean? The problem is that there is no value on the right side of the comparison operator in the where clause. -- Olexandr Melnyk,

Re: how would you scale a cake app?

2006-12-24 Thread the_woodsman
Caching, and lots of it, and DB clustering/replication are definitely the quickest fixes. One minor point is to avoid using Cake's multi join SQL, which (I believe) can literally add thousands of queries when a single one would do. In such cases, don't be afraid to use query() instead of

RE: findBy issue

2006-12-24 Thread Adrian Godong
Pardon me. I got it now. I usually set up a default value just in case the user does not supply a parameter. But I think your solution will be useful. From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Olexandr Melnyk Sent: 25 Desember 2006 8:09 To:

Re: how would you scale a cake app?

2006-12-24 Thread Olexandr Melnyk
Also, check if Cake doesn't get more than you need, and consider dynamic unbinding where you don't need as much info as you get using default models' options. -- Olexandr Melnyk, http://omelnyk.net/ --~--~-~--~~~---~--~~ You

Re: Update on translations.

2006-12-24 Thread Shunro Dozono
Hello, translators: FYI: If you are using FireFox, you can view other translations of translation.cakephp.org. For example (Windows platform), download 1) Locale-Switcher Extension for Firefox and Thunderbird http://benjamin.smedbergs.us/switch-locales/ (All you have to do is just click the

Re: findBy issue

2006-12-24 Thread Olexandr Melnyk
2006/12/25, Adrian Godong [EMAIL PROTECTED]: I usually set up a default value just in case the user does not supply a parameter. But I think your solution will be useful. Do you think this is a CakePHP bug? Worth a report? -- Olexandr Melnyk,

Re: debugging documentation for cake internals

2006-12-24 Thread Dr. Tarique Sani
On 12/24/06, keymaster [EMAIL PROTECTED] wrote: Is there any developer documentation on the internals of cake? http://api.cakephp.org/ ? HTH Tarique -- = PHP Applications for E-Biz: http://www.sanisoft.com Coppermine Picture

Re: Insert Multiple recors at once (desesperate help)

2006-12-24 Thread Kevin Uni
Is $data['id'] existing or not an empty value? --~--~-~--~~~---~--~~ 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

Re: how would you scale a cake app?

2006-12-24 Thread Dr. Tarique Sani
On 12/24/06, bgmill [EMAIL PROTECTED] wrote: I'm running a cake app on 3 webservers (round robin dns) and 1 mysql server right now, traffic yesterday was around 200,000 uniques and 400,000 page views. What kind of hardware are you using? Not to sound like a prick but 400,000 page views are