On Tue, Dec 7, 2010 at 6:34 AM, Ahmed El-Sharkasy
<[email protected]> wrote:
> I am a new cake developer and this is my first project , i created a
> controller file named users_controller in which u define a
> UserController class , created a user file in the model and a register
> file in the view
> each time i  tried to open the register.ctp from the browser by typing
> localhost/........../users/register.ctp
> i got this error
>
> Error: Create the class ViewsController below in file: app/controllers/
> views_controller.php

It looks like Cake thinks you're making a request to 'views' instead
of 'users'. What is  '/........../'?

Do you have a custom route for this request?

> Also i am facing an error linking my database although i change the
> config in database.php

It'd be helpful if you at least told us what the error is. In the
interest of speeding things up, though:

Do you have a database installed?
Is it running?
Can you connect to it through the terminal?
Can you connect to it through a normal PHP script?
Finally, if all of those tests pass, don't forget to provide us with
the error message.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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