So I installed CakePHP on my Macbook Pro in the /Libraries/WebServer/
Document directory. Its a standard install - no changes in document
structure. The .htaccess files all seem to be there. The main page
is rendered nicely and the database config seems just fine as the
output when the browser is pointed to http://localhost is
CakePHP Rapid Development
Your database configuration file is present.
Cake is able to connect to the database.
I followed a couple tutorials that basically gave the same directions
and created a simple users database and added the following files to
the setup:
/app/controllers/users_controller.php
<?php
class UsersController extends AppController {
var $name = 'Users';
}
?>
/app/models/user.php
<?php
class User extends AppModel
{
var $name = 'User';
}
?>
/app/views/newuser.php
<form action="/users/newuser" method="post">
<p>New User Account Form</p>
<label>Username:</label><input name="username" size="40" />
<label>Password:</label><input type="password" name="password"
size="40"
/>
<label>Email Address:</label><input name="email" size="40"
maxlength="255" />
<label>First Name:</label><input name="f_name" size="40" />
<label>Last Name:</label><input name="l_name" size="40" />
<input type="submit" value="register" />
</form>
When I point my browser to http://localhost/users/ (or any similar
URL) I get:
CakePHP Rapid Development
Missing controller
You are seeing this error because controller UsersController could not
be found.
Notice: If you want to customize this error message, create app/views/
errors/missing_controller.thtml.
Fatal: Create the class below in file : app/controllers/
users_controller.php
<?php
class UsersController extends AppController {
var $name = 'Users';
}
?>
I checked mod_rewrite and AllowOverride syntax in /etc/httpd/
httpd.conf and have it set properly I believe. I'd really like to use
the MVC setup to develop a business app but am having a difficult time
getting off the ground...
I am a total cake noob, but have a decent amount of php experience so
feel free to tell me to lrn2cake - just give me a clue?
TIA
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---