this is the output i receive when i visit this page:
http://localhost/cake1.2/comments/
===============
(HTML output from browser source)
<?
class Comment extends AppModel
{
var $name = "Comment";
}
?><br />
<b>Fatal error</b>: Class 'Comment' not found in <b>E:\wamp\www
\cake1.2\cake\libs\class_registry.php</b> on line <b>128</b><br />
===============
Controller file:
comments_controller.php
===============
<?php
class CommentsController extends AppController
{
var $name = 'Comments';
var $scaffold;
}
?>
===============
Model file:
comment.php
===============
<?
class Comment extends AppModel
{
var $name = "Comment";
}
?>
===============
On Mar 6, 6:36 pm, fahad19 <[EMAIL PROTECTED]> wrote:
> installed wampserver. the same problem exists here also.
> i think there must be something wrong with cake1.2 somewhere.
> isnt there anyone else having this problem?
>
> instead of loading the model files, their content (php code) appears
> right before the 'doctype' tag of html output.
> and cake says it cant load model files.
>
> i need to mention that cake1.1.x is also having this problem on
> wampserver2 and easyphp2
> cake1.1.x works fine on easyphp1.8
> but cake1.2.x crashes apache when run on easyphp1.8
>
> both the versions having problem when tested on easyphp2 and
> wampserver2
>
> On Mar 6, 4:34 pm, fahad19 <[EMAIL PROTECTED]> wrote:
>
> > have you used cake1.2 on XAMPP or Wampserver?
>
> > On Mar 6, 12:40 pm, Stephen Orr <[EMAIL PROTECTED]> wrote:
>
> > > Well, it could also be that EasyPHP just isn't very good.
>
> > > So far, my recommended WAMP setups are either XAMPP or Wampserver.
> > > I've had problems with several others, including Bitnami WampStack and
> > > EasyPHP.
>
> > > Steve
>
> > > On Mar 5, 9:15 pm, "Juan Luis Baptiste" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > On Wed, Mar 5, 2008 at 2:17 PM, fahad19 <[EMAIL PROTECTED]> wrote:
>
> > > > > i just set up a basic model, and a 'scaffold' controller.
> > > > > instead of loading the model, all the content of the 'model php file'
> > > > > is shown in the 'html output' of cake.
>
> > > > Probably you don't have php support configured on apache.
>
> > > > Cheers,
> > > > --
> > > > Juan Luis Baptiste
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---