Premke
Premke

Reputation: 57

Why i get this error, where i made error?

I tried register script for cake from here and i get this error:

Fatal error: Using $this when not in object context in D:\premke\xampps\xampp-win32-1.7.3\xampp\htdocs\register.php on line 23

Where i made error. Thanks in advance. :)

Upvotes: 0

Views: 74

Answers (1)

benjamin
benjamin

Reputation: 2185

it looks like you have taken something out of the cakephp context - the normal cake or app folder - and installed it in the root folder of your webserver. Without being processed by cake this is meaningless. I would suggest you start again from a vanilla cake installation and edit the files in place (in fact, it occurs to me that you manipulated the default.ctp and created php-file from that).

Upvotes: 2

Related Questions