Re: [nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Daniel Convissor
On Thu, Apr 30, 2009 at 03:13:40PM -0400, Randal Rust wrote: > > Yeah, already did that too. I even modified the *broken* record to see > if I could get it to work. No luck. But what's the difference between the two types of records? > > A possibility is that the query is doing an (inner) JOIN

Re: [nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Randal Rust
On Thu, Apr 30, 2009 at 3:07 PM, Daniel Convissor wrote: > So chances are the data inside the table is the problem, not the query. > Do a very careful comparison of a record that works vs one that doesn't. Yeah, already did that too. I even modified the *broken* record to see if I could get it t

Re: [nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Daniel Convissor
On Thu, Apr 30, 2009 at 02:46:00PM -0400, Randal Rust wrote: > > You owe me a beer:) Cool! Hey, double or nothing... > I've checked all of that. What's even more strange is that I found out > that for 3 of the 20 records the view will actually work. The others, > no luck. So chances are the d

Re: [nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Randal Rust
On Thu, Apr 30, 2009 at 2:37 PM, Daniel Convissor wrote: >> $whereClause = '`District`.`id` = "' . >> $this->mrClean->sql($this->passedArgs[0]) . '"'; >> $this->set('district', $this->District->find($whereClause)); > I'll bet you a beer that it's because there's no record in the database > with

Re: [nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Daniel Convissor
On Thu, Apr 30, 2009 at 11:10:16AM -0400, Randal Rust wrote: > > $whereClause = '`District`.`id` = "' . > $this->mrClean->sql($this->passedArgs[0]) . '"'; > $this->set('district', $this->District->find($whereClause)); ... > If I remove $whereClause from the second line, the view works. But I > get

Re: [nyphp-talk] anyone have idea about the following warning message?

2009-04-30 Thread Chris Snyder
On Thu, Apr 30, 2009 at 1:25 PM, John Campbell wrote: > DRY! DRY! DRY! Don't repeat yourself... three times for emphasis. ;-) ___ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show

Re: [nyphp-talk] anyone have idea about the following warning message?

2009-04-30 Thread John Campbell
DRY! DRY! DRY! Try something like this: $cart_keys = array( 'mouse_choice','monitor_choice','wifi_choice','subtotal','offsets','amount','desc','first_name','last_name','address','city','state','zip','phone','billeve','email','ship_to_first_name','ship_to_last_name','ship_to_address','ship_to_city

[nyphp-talk] Help with a CakePHP View

2009-04-30 Thread Randal Rust
We have inherited a Cake app that needs to be up and running by the end of next week. I downloaded the application and installed it locally. While running through testing, I discovered that some things work, and some don't. The particular piece of code that is being troublesome is this: $whereClau

Re: [nyphp-talk] jQuery (Was: PHP hosting and standard tool-chain for newbie?)

2009-04-30 Thread Chris Snyder
On Wed, Apr 29, 2009 at 9:53 PM, Ajai Khattri wrote: > On Fri, 24 Apr 2009, Kenneth Downs wrote: > >> I found myself settling on jQuery UI and then trying to do minimal >> additions, this gave some sense of stability. > > Well the fact that jQuery plays nice with the namespace compared to > script

Re: [nyphp-talk] anyone have idea about the following warning message?

2009-04-30 Thread chad qian
I check link:http://www.spiration.co.uk/post/1231/Your%20script%20possibly%20relies%20on%20a%20session%20side-effect and make change. However,I still get the same warning message. I list my php code as the following: Any more help?Many thanks! chad > Date: Wed, 29 Apr 2009 23:33:2

Re: [nyphp-talk] Remote addess

2009-04-30 Thread Anthony Wlodarski
Well not to beat on a dead horse but has anyone ever found a good use for this (Other than Michele's need for this.)? I have never designed/developed any piece of software in PHP to access its code base via an external server. -Anthony On Thu, Apr 30, 2009 at 9:04 AM, Michele Waldman wrote: > T

Re: [nyphp-talk] Remote addess

2009-04-30 Thread Michele Waldman
This was one of the narrow circumstances where it might be a very practical idea because we're dealing with over 800 portals. There was some nervousness over the decision. But, it would have made maintenance practical. But, some of the code contained ajax, so we couldn't do it, anyway, which suc

Re: [nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-30 Thread Hans Zaunere
Hi, > Hi experienced and talented community of which I have been trolling for > a few years! > > I have a question for all of you and I hope this makes sense. > > First, the background. I am coding a PHP Web application that has to > call a external program, however, because only one instance of

Re: [nyphp-talk] Remote addess

2009-04-30 Thread Tim Lieberman
On Apr 29, 2009, at 10:53 PM, John Campbell wrote: On Wed, Apr 29, 2009 at 8:21 PM, Michele Waldman wrote: Does anyone know how to configure the server to allow remote access? There is never a valid reason to include remote files, but if you really want to do it, just enable allow_url_fopen