Thursday, October 18, 2012

Re: Strange array when moved from test to live server.

//**  VIEW  **//
    public function view($id = NULL) {
        $this->Member->id = $id;
        $this->set('member', $this->Member->read());
        $this->set('title_for_loayout', 'Members List');
    }


Here is my controller code

On Thursday, October 18, 2012 12:43:59 AM UTC-5, Sanjeev Divekar wrote:
Can you post your controller code?

On Wednesday, 17 October 2012 19:34:07 UTC+5:30, PlanoCoder wrote:
Good morning all.... I build a site on XAMP local server.  There was no problem when testing.  When i Uploaded the files to the live verio server my code no longer works.
here is what i am talking about

in my view file my code on the test server looks like this

$key['Member']['username'];

when i moved to the live server i have to change the code to

$key[0]['username'];

for cake to pull the data.

Any idea why this is?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: