Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello, On Mon, Oct 25, 2010 at 2:50 AM, djogo wrote: > its hard to say... you might check which processes the CPUs are > running. I'm not familiar with sar, but top and ps let you know which > are the processes consuming most CPU/memory. yes, I've started to find the causes of problem... > if i

Re: 1.3 custom find types

2010-10-24 Thread DanielMedia
If anyone is interested, I pulled together a few tid bits here and there about this and wrote a quick post about what I have learned: http://daniel-salazar.com/content/22/cakephp-13-custom-find-types Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP re

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello,, On Sun, Oct 24, 2010 at 11:08 PM, cricket wrote: > On Sat, Oct 23, 2010 at 1:49 PM, airween wrote: >> >> On that machine another MVC frameworks and another sites (CMS's) >> (which uses Codeigniter, Drupal...) I _can't_ create this effect. > > Do these other sites have any caching enabled

Re: Sessions and http/https

2010-10-24 Thread dtemes
Thats another option, and by doing that you don't have to touch the core code, I will take a look at it before upgrading to 1.3.5... On 24 oct, 14:23, odd wrote: > dtemes schrieb: > > > I tryed with a custom save handler, but then i moved to database > > driver sessions, so finally I decided to

Cakephp pretty url problem

2010-10-24 Thread Robin
Hi, I am working on to migrate a site from Joomla to Croogo, the cakephp cms. I have successfully imported the users and contents (nodes) from Joomla. Now I am having a problem. I am using shared hosting account in Godaddy where I host some other sites as well. So I want to disable mod_rewrite and

Re: Cookies--getting chocolate in my peanut butter (and vice versa)

2010-10-24 Thread cricket
Apologies--using 1.3.5 On Mon, Oct 25, 2010 at 1:28 AM, cricket wrote: > On Mon, Oct 25, 2010 at 12:57 AM, cricket wrote: >> I have two plugins, Comments and Poll. Both have a component, and each >> of those components uses CookieComponent. They also both handle Cookie >> settings in startup().

Re: Cookies--getting chocolate in my peanut butter (and vice versa)

2010-10-24 Thread cricket
On Mon, Oct 25, 2010 at 12:57 AM, cricket wrote: > I have two plugins, Comments and Poll. Both have a component, and each > of those components uses CookieComponent. They also both handle Cookie > settings in startup(). Unfortunately, it appears that they're sharing > the same component instance,

Translate behavior - auto generation for views?

2010-10-24 Thread mpeshev
I'm creating a multilingual site using the Translate behavior. Looking at the CakePHP docs and some blogposts it is clear that we use a i18n table (or few tables for i18n), attach the Translate and tables to every model and remove the international fields from original tables. If we don't have the

Cookies--getting chocolate in my peanut butter (and vice versa)

2010-10-24 Thread cricket
I have two plugins, Comments and Poll. Both have a component, and each of those components uses CookieComponent. They also both handle Cookie settings in startup(). Unfortunately, it appears that they're sharing the same component instance, as the 'poll' cookie is being re-named to 'comments'. I'v

Re: 2 column css layout: click on link in left column, opening the view in the right column

2010-10-24 Thread LarryTX
It sound like to me that you've got a simple menu in the left column. You'd put your $content_for_layout in the right column. Then in your left column, you'd have the standard hyperlinks like Pictures (I'm assuming that Address, Pictures, Contacts, and so forth are each a separate class.) Each hyp

Re: Multiple apps / one login

2010-10-24 Thread Zaky Katalan-Ezra
I think plugins is what you are looking for. http://book.cakephp.org/view//Plugins If each site installed on different server you may want to use openid for single sign on. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You r

Re: I'm new and need help

2010-10-24 Thread Anthony
What don't you understand? On Oct 22, 11:18 am, k2zs wrote: > Hello, > > I am new to using any type of MVC framework. 10+ years experience with > PHP but always used the "top-down" method with includes. > > My interests are in CMS and I have installed cake and have the blog > tutorial working but

1.3 custom find types

2010-10-24 Thread DanielMedia
Does anyone know of a good blog post or resource for defining custom find types in 1.3? I was reading this article earlier: http://bakery.cakephp.org/articles/tehtreag/2010/08/08/model-repletion Just wondering if anyone knows of anything more in-depth on this (For 1.3) Check out the new CakePHP

Re: getting a blank page

2010-10-24 Thread Dr. Loboto
NEVER use queries without limit. You just go out of memory. By the way, phpmyadmin SET limit 30. That's why you see there results at all. On Oct 24, 3:34 pm, ravidp wrote: > by the way, > > if i run this query on phpmyadmin,  it works fine returns about > 200,000 results. Check out the new CakeP

Re: CakePHP high CPU utilization

2010-10-24 Thread djogo
its hard to say... you might check which processes the CPUs are running. I'm not familiar with sar, but top and ps let you know which are the processes consuming most CPU/memory. if it's httpd, then you're right, cakephp is consuming all those cpu cycles. alas, you may check for invalid redirectio

Re: Media Behaviour - OGG not detected correctly

2010-10-24 Thread David Persson
Hi odd, Thanks for the helpful report and digging through the code. The problem occurs only if trying to detect just by extension. This might be (indirectly) caused by: (a) no path to a physical existent file has been provided (b) the magic detection non being available (c) magic detection still

Re: Logout not... logging out?

2010-10-24 Thread xtraorange
I figured out what happen... stupid move. So a little background: my database was totally wiped on my test platform, and I had failed to keep a backup (stupid, I know). At any rate, I failed to realize that although I had set all actions to be allowed in the app controller while fixed everything,

Re: Get Function Name

2010-10-24 Thread odd
Doesn't have much to do with CakePHP, see magic constants in the PHP manual, you are searching for __FUNCTION__ or __METHOD__ http://php.net/manual/en/language.constants.predefined.php Regards Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Get Function Name

2010-10-24 Thread Dave Maharaj
Is there a way to get the name of the function making the call? Example function_one() { //$caller = this function name (function_one) function_two( $caller ); } Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relate

Re: Help with the CakePHP comments plugin

2010-10-24 Thread cricket
On Sun, Oct 24, 2010 at 1:02 PM, iamjonesy wrote: > Hi, > > I'm trying to use the cake comments plugin found here  - > http://cakedc.com/downloads/view/cakephp_comments_plugin I'm having > trouble though. I can add comments - it captures datetime, userid, > etc, etc. but it just doesn't display th

Re: CakePHP high CPU utilization

2010-10-24 Thread cricket
On Sat, Oct 23, 2010 at 1:49 PM, airween wrote: > > On that machine another MVC frameworks and another sites (CMS's) > (which uses Codeigniter, Drupal...) I _can't_ create this effect. Do these other sites have any caching enabled? Check out the new CakePHP Questions site http://cakeqs.org and h

Re: cakephp requirements question

2010-10-24 Thread amarradi
Hello, all this things are installed and runs normally. But no pictures and grafcs where displayed from cakephp i don't know where the fault is On 24 Okt., 22:38, Adrian Arnautu wrote: > Hello, > > You might want to check if your apache works with php5. Also you may want to > activate the mod_re

Re: cakephp requirements question

2010-10-24 Thread Adrian Arnautu
Hello, You might want to check if your apache works with php5. Also you may want to activate the mod_rewrite. A basic CakePHP env consists of - an webserver (apache or something else) - php5 - mod_php5 (this depends of what webserver you use) - mod_rewrite (although it can easily work without it)

cakephp requirements question

2010-10-24 Thread amarradi
Hello together, i've set up an apache and php5 and mysql on the ubuntu-dev-pc. But no pictures an no css will be display. I testet it with phpmyadmin, it will be display normally. What do you install to run the cakephp i used the 1.3.3 and 1.3.5 xampp is no option for me because i use my own ser

Help with the CakePHP comments plugin

2010-10-24 Thread iamjonesy
Hi, I'm trying to use the cake comments plugin found here - http://cakedc.com/downloads/view/cakephp_comments_plugin I'm having trouble though. I can add comments - it captures datetime, userid, etc, etc. but it just doesn't display the comments in the widget. I've added it to the controller's pl

Re: Detecting Form Model

2010-10-24 Thread cricket
On Fri, Oct 22, 2010 at 9:39 PM, Rob Wilkerson wrote: > So, in true me fashion, I found the apparent answer immediately after > posting. It looks like `$this->model` always reports the model > specified in `$this->Form->create()`. Let me know if anyone knows of a > case where my light testing coul

Re: getting a blank page

2010-10-24 Thread cricket
On Sun, Oct 24, 2010 at 6:15 AM, ravidp wrote: > yes, blank page, i think its not from cake but before Have you checked the server log? Do you have PHP set to display errors? My money would be on a lack of memory. Do you have any other associations to these models? Or are there any self-joins? It

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello again, so, I've installed an nginx and php5-cgi, and configured cake access through this scenario - before nginx there is an apache proxy. I _can't_ increment the CPU usage with ab!!! I tried to increment the number of request: ab -n 1 -c 100 http://mysite/foo but the max CPU usage

CakePHP 1.3.5 released.

2010-10-24 Thread mark_story
The CakePHP core team is proud to announce the immediate availability of CakePHP release 1.3.5. Since the release of CakePHP 1.3.4 a month and half ago, there have been over 50 commits[1] and 40 tickets resolved. There have been a few changes that may affect your application: - A warning to inform

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
hello, On Sun, Oct 24, 2010 at 6:53 PM, majna wrote: > There's no view file views/foo/index ? no, there _is_ a file, but it's empty (zero byte length) > try http://github.com/cakephp/debug_kit/tree/1.2 thank you, I will see. a. > On Oct 24, 6:45 pm, Ervin Hegedüs wrote: >> Hello, >> >>

2 column css layout: click on link in left column, opening the view in the right column

2010-10-24 Thread Tomfox Wiranata
hi, i have a simple css layout. header, 2 columns and footerheader for my logo, footer for contacts etc. I use this layout to edit information. now in the left colum I want to show different categories of the product that can be edited. "Address", "Pictures", "Contacts" and so on... so if th

Re: CakePHP high CPU utilization

2010-10-24 Thread majna
There's no view file views/foo/index ? try http://github.com/cakephp/debug_kit/tree/1.2 On Oct 24, 6:45 pm, Ervin Hegedüs wrote: > Hello, > > On Sun, Oct 24, 2010 at 5:16 PM, majna wrote: > > Try with Configure::write('debug', 0); in app/config/core.php > > You are using database, so check SQL q

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello, > oh for pete's sake, I forgot you described your test.  ignore me.   was > suffering from the sleepies. no problem :), thank you for your notice. a. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this mes

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello, On Sun, Oct 24, 2010 at 5:16 PM, majna wrote: > Try with Configure::write('debug', 0); in app/config/core.php > You are using database, so check SQL query times by setting > Configure::write('debug', 2); I've passed these steps... > Check if your language translations are affected with

Re: CakePHP high CPU utilization

2010-10-24 Thread Matt Murphy
oh for pete's sake, I forgot you described your test. ignore me. was suffering from the sleepies. On Sun, Oct 24, 2010 at 8:25 AM, Matt Murphy wrote: > No need to play with maxclients yet... You shouldn't have any, right? :) > > By something interesting, I was referring to bullshit URLs bei

Re: CakePHP high CPU utilization

2010-10-24 Thread majna
Try with Configure::write('debug', 0); in app/config/core.php You are using database, so check SQL query times by setting Configure::write('debug', 2); Check if your language translations are affected with this bug http://cakephp.lighthouseapp.com/projects/42648/tickets/1085-multiple-caching-of-i18

Component into plugin

2010-10-24 Thread rez...@gmail.com
I create a plugin and into this plugin I want to use captcha component when I used it I can't read the security code of the captcha because its can't write the session this component code class CaptchaComponent extends Object { var $controller; var $font = 'plugins/[pluginName]/webroot/mo

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
hello, On Sun, Oct 24, 2010 at 3:02 PM, majna wrote: > Can you paste your controller, view, layout and app/config/core.php code on > http://bin.cakephp.org/ core.php http://bin.cakephp.org/view/913121386 foo_controller.php http://bin.cakephp.org/view/619197128 layouts/default.ctp http://bin.cake

Multiple apps / one login

2010-10-24 Thread hapoo
I've experimented and successfully implemented Auth and Acl on one app. However I want to design a site with multiple independent apps which all share one login system/DB. For example the main site (example.com) will be one app. The blogs (example.com/blog) will be another app, and the recipe page

Pass a pure html input value to controller

2010-10-24 Thread ZAky
I have this code Controller: function cloneSurvey($surveyId,$newName=null) { $newsurvey = $this->Survey->cloneSurvey($surveyId,$newName, 0); } View: New name: Html->link(__('Clone this survey', true), array('action'

Re: CakePHP high CPU utilization

2010-10-24 Thread majna
Can you paste your controller, view, layout and app/config/core.php code on http://bin.cakephp.org/ 2010/10/24 Ervin Hegedüs : > Hello Matt, > >> No need to play with maxclients yet... You shouldn't have any, right?   :) > yes, I just didn't know what about thinking are you. > >> By something int

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello Matt, > No need to play with maxclients yet... You shouldn't have any, right?   :) yes, I just didn't know what about thinking are you. > By something interesting, I was referring to bullshit URLs being hit by > russian (or chinese or whatever) robots attempting to crack your apache > insta

Re: CakePHP high CPU utilization

2010-10-24 Thread Matt Murphy
No need to play with maxclients yet... You shouldn't have any, right? :) By something interesting, I was referring to bullshit URLs being hit by russian (or chinese or whatever) robots attempting to crack your apache install or somesuch. IMHO, your problem isn't going to have anything to do wit

Re: Sessions and http/https

2010-10-24 Thread odd
dtemes schrieb: > I tryed with a custom save handler, but then i moved to database > driver sessions, so finally I decided to touch the cake core code > and set session.cookie_secure to 0, I am not really fond of this kind > of solutions and would prefer a way to set it up from a config file > wit

Re: Associations - How deep is too deep?

2010-10-24 Thread odd
My structure is like this Release hasOne Cover hasMany Track hasMany TrackVariant A release has one cover (image), many tracks (tracks on an album), and every track can be available in various

Re: CakePHP high CPU utilization

2010-10-24 Thread Ervin Hegedüs
Hello Matt, thanks for the reply, On Sun, Oct 24, 2010 at 1:26 PM, Matt Murphy wrote: > I'd be curious to know what your apache logs are reporting during a high > utilization period... nothing... there are just client querys, nothing else. May be do you think about "increasing maxclients", but

Re: CakePHP high CPU utilization

2010-10-24 Thread Matt Murphy
I'd be curious to know what your apache logs are reporting during a high utilization period... Obviously, it isn't google indexing your empty view over and over, but there might be something interesting. Matt Murphy On Sat, Oct 23, 2010 at 1:49 PM, airween wrote: > Hello Cake Users, > > I'm ne

Re: getting a blank page

2010-10-24 Thread ravidp
yes, blank page, i think its not from cake but before On Oct 24, 12:00 pm, Jeremy Burns | Class Outfit wrote: > Have you set debug to 2 in /app/config/core.php? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 24 Oct 2010, at 04:34, ravidp wrote: >

Re: getting a blank page

2010-10-24 Thread Jeremy Burns | Class Outfit
Have you set debug to 2 in /app/config/core.php? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 24 Oct 2010, at 04:34, ravidp wrote: > by the way, > > if i run this query on phpmyadmin, it works fine returns about > 200,000 results. > > Check out the new

Re: getting a blank page

2010-10-24 Thread ravidp
by the way, if i run this query on phpmyadmin, it works fine returns about 200,000 results. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" grou

getting a blank page

2010-10-24 Thread ravidp
Hi, I have a query and for some reason it crashes the application and i'm getting blank page. no debugs, shows nothing at all. the query is simple : " SELECT Measurement . * FROM measurements Measurement, results Result WHERE Measurement.result_id = Result.id " the weird thing is, if i add "LIM

Re: Where to get Cakephp code

2010-10-24 Thread Tilen Majerle
http://cakephp.org :D -- Tilen Majerle http://majerle.eu 2010/10/24 viis > where would it be possible to get Cakephp code libraries and open > source code, > > would like to build a portal and use some code for different parts of > it - like forum , user registration classes, search features e