If this fails, I'll get you to tar up your files and and them to me to  
check...

Are you editing on a windows machine? It's possible that some line  
endings are being screwed up.

Remove all unnecessary whitespace just to eliminate any issues there.

Gentoo's latest Php is 5.2.11-p0. So I mightbe a good opportunity to  
upgrade also.

Cheers
Graham

On 10/11/2009, at 11:05 AM, dtirer <[email protected]> wrote:

>
> Note:  Outside of Cake, this server has no problem deal with OOP and
> classes
>
> On Nov 9, 6:53 pm, dtirer <[email protected]> wrote:
>> So I've been toying with Cake apps on my local server for a little
>> while now.  Now, Im working with developing one on live server.  The
>> install/setup went fine.
>>
>> As a test, I create a simple table called 'cases' with just an 'id'
>> field in it (primary key, auto_increment)
>>
>> I then created a cases_controller.php file and put it in the
>> Controllers folder.  The content of that file is:
>>
>> <?php
>>
>>         class CasesController extends AppController
>>         {
>>
>>         }
>>
>> ?>
>>
>> I then created a case.php file and put it in the Models folder.  The
>> content of that file is:
>>
>> <?php
>>
>>         class Case extends AppModel
>>         {
>>
>>         }
>>
>> ?>
>>
>> When I try to navigate to the /cases controller in the browser, I get
>> the following error:
>>
>> Parse error: syntax error, unexpected T_CASE, expecting T_STRING in /
>> data/www/safepassagenm.com/htdocs/admin/app/models/case.php on line 3
>>
>> There is no problem on line 3 of the case.php file that i can see.
>> This same system works fine locally on my machine.
>>
>> The live server is running PHP Version 5.2.10-pl0-gentoo
>>
>> Any ideas?
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to