Re: Making AJAX play nice with $this-model-validates()

2009-09-20 Thread euromark (munich)
actually thats not quite how it is supposed to be done you only need one validate_ajax method or whatever if you set up your rules according to the cookbook (and without using required=true!!!) you are able to pass only the form vars necessary for the current validation - inside your single ajax

Exclude directory from routing

2009-09-20 Thread ross.hagg...@googlemail.com
Hi I'm having problems excluding a directory from routing. I want to add a directory that will only be available to admin, but is not part of the cakephp application. Ignoring the admin issues, i've tried the following:

IIS7, PHP and Fastcgi

2009-09-20 Thread lordG
Hi All, I just recently switched my php over to fastcgi from isapi as we are introducing the new sqlsrv (mssql) driver for php. But outside of this driver, php (maybe cakephp) is running extreamly slow. literrally 15 seconds to render a page. I have tried the solution provided at

How setting htaccess for redirect http://example.com to http://www.example.com

2009-09-20 Thread Petr Vytlačil
How setting htaccess for redirect http://example.com to http://www.example.com and where in dir structure cakephp. THX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: AJAX

2009-09-20 Thread Nectom
Hey,Thanks alot :) On Sun, Sep 20, 2009 at 1:14 AM, schneimi michael.schne...@arcor.de wrote: Hi, I think what you need is to set 'evalScripts' = true in the ajax options of your button. On 19 Sep., 21:00, Dave nec...@gmail.com wrote: Hi, I'm trying to load additional content to my

Re: Problem with fixtures and test data

2009-09-20 Thread Jules
Found a solution; http://www.sitepoint.com/forums/showthread.php?p=4381257 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Making AJAX play nice with $this-model-validates()

2009-09-20 Thread young.steveo
THANK YOU! That was exactly the problem. I was using notEmpty, AND required = true. Also, thanks for the tip on using a single controller action! On Sep 20, 3:03 am, euromark (munich) dereurom...@googlemail.com wrote: actually thats not quite how it is supposed to be done you only need one

RE: How setting htaccess for redirect http://example.com to http://www.example.com

2009-09-20 Thread Dave Maharaj :: WidePixels.com
I have this in my webroot htaccess: IfModule mod_rewrite.c RewriteEngine On RewriteCond %{HTTP_HOST} ^mysite\.com$ RewriteRule (.*) http://www.mysite.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$

Code Editors

2009-09-20 Thread Dave Maharaj :: WidePixels.com
What do you use to edit code? I cant seem to get the formatting to look structurally like all the code samples people post.I like the clean looking blocks, or the arrays are in clean blocks. I use Dreamweaver (i know shame on me) but have tried netbeans, phpdesigner, tried everything to get

Re: Code Editors

2009-09-20 Thread euromark (munich)
it is your responsibility to make it look clean the editors can only help and assist and phpdesigner (as well as many others) does a really great job so i dont know what your problem is... On 20 Sep., 17:13, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: What do you use to edit

form date/ time

2009-09-20 Thread lorenx
hi all. i'm dealing with dates. in my form i would like to edit a DATE database field with the chance to save a null (or empty) value and, of course, the current option, if present, selected. this code does not display a label and i'm not able to pre-select the current database value: echo

Install app

2009-09-20 Thread Jorge Horacio Cué Cantú
Hello, I need to create an Install process for my application. In some point during the intallation process I need to create the database.php file and check if the cake is able to connect to the database. The code to create the database.php file is: $driver = $this-data['Database']['driver'];

RE: Code Editors

2009-09-20 Thread Dave Maharaj :: WidePixels.com
Right on.. Was just curious. Dave -Original Message- From: euromark (munich) [mailto:dereurom...@googlemail.com] Sent: September-20-09 1:04 PM To: CakePHP Subject: Re: Code Editors it is your responsibility to make it look clean the editors can only help and assist and phpdesigner

Strange error: Missing Controller ~usernameController

2009-09-20 Thread mykro76
I'm getting strange rewriting behaviour in CakePHP. When I navigate to http://localhost/~bob/project, CakePHP produces a Missing Controller page, saying Error: ~bobController could not be found. The steps I followed: - Ubuntu 9.04, apache2 - I used sudo a2enmod userdir to set up user

Top Contributors

2009-09-20 Thread Dave Maharaj :: WidePixels.com
How can this be done. Users create Posts...now I want to get a list of top 10 Posters (users who have made the most posts). How would you do the conditions = array() for this? How can I get a list of Users when the User.id is unknown or all of them? Surely there must be an easily solution

Re: How setting htaccess for redirect http://example.com to http://www.example.com

2009-09-20 Thread midas
Try this: Non-www to www: RewriteCond %{HTTP_HOST} !^www\. RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L] www to non-www: RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^/(.*)$ http://%1/$1 [R=301,L] Bonus tip: Remove trailing slash from address line RewriteRule ^(.+)/$

Re: Install app

2009-09-20 Thread Paul R. Zwiers
Title: Re: Install app Hello Jorge, Sunday, September 20, 2009, 5:59:12 PM, you wrote: $database = $this-data['Database'['database']; You missed a ] after ['Database' -- Best regards, Paul --~--~-~--~~~---~--~~ You received this message because you are

Re: Code Editors

2009-09-20 Thread Miles J
What do you mean format it structurally? I use dreamweaver and all my code looks clean. Its just taking the time to indent and place your lines where you want them to be. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Top Contributors

2009-09-20 Thread Alexandru Ciobanu
On 9/20/2009 7:33 PM, Dave Maharaj :: WidePixels.com wrote: How can this be done. Users create Posts...now I want to get a list of top 10 Posters (users who have made the most posts). How would you do the conditions = array() for this? How can I get a list of Users when the User.id is

RE: Top Contributors

2009-09-20 Thread Dave Maharaj :: WidePixels.com
Sounds good. Will give it a try. Thanks. Dave _ From: Alexandru Ciobanu [mailto:ics.cake...@gmail.com] Sent: September-20-09 3:43 PM To: cake-php@googlegroups.com Subject: Re: Top Contributors On 9/20/2009 7:33 PM, Dave Maharaj :: WidePixels.com wrote: How can this be done.

Using too much memory/cpu/resource

2009-09-20 Thread Miles J
On my current host I was on a shared environment and would constantly get an internal error message. After contacting my host they said I was using way too many resource/memory/cpu on the shared environment. So I upgraded to a dedicated private server and can now see my usage graphed. On average

Re: Using too much memory/cpu/resource

2009-09-20 Thread dogmatic
what are you doing? lots of gfx with gd or big db calls --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Using too much memory/cpu/resource

2009-09-20 Thread Alexandru Ciobanu
On 9/20/2009 9:55 PM, Miles J wrote: On my current host I was on a shared environment and would constantly get an internal error message. After contacting my host they said I was using way too many resource/memory/cpu on the shared environment. So I upgraded to a dedicated private server and

url parameters + logic + save

2009-09-20 Thread borcho
Still getting my hands around cakephp. Trying to figure out what the best way is to put together a jump page that performs logic based on url parameters and cookie variables, saves data to model and redirects page without any input fields or user triggered actions. For exampe,

Web Interface to manage Shell/Cron

2009-09-20 Thread Colin
Hey everyone, I'm developing an application that makes use of the CakePHP shell and cron jobs to execute scheduled tasks at specific times. What I'd like is a way to manage when these jobs will run directly from the application as opposed to having to manage them from crontab. This would allow

Re: Using too much memory/cpu/resource

2009-09-20 Thread Miles J
Yeah ive optimized all my controllers, models, queries, etc. Applied persistent models, cache SQL queries, everything. I think ill try APC next then. On Sep 20, 12:32 pm, Alexandru Ciobanu ics.cake...@gmail.com wrote: On 9/20/2009 9:55 PM, Miles J wrote: On my current host I was on a shared

Re: No Listbox for HABTM Relationship using Scaffold

2009-09-20 Thread josephusbrown
The issue appears to be with the current version of cakephp 1.2.5. I went back to previous version and HABTM list boxes appear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: Top Contributors

2009-09-20 Thread Braindead
You should also have a look at CounterCache: http://book.cakephp.org/view/816/counterCache-Cache-your-count Hope that helps. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this