Nevermind. I figured out that all I needed to do was add an action to the
function call.
ORIGINAL CODE (found in join.ctp):
<?php echo $this->Form->create('User');?>
<?php
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('firstname');
echo $this->Form->input('lastname');
echo $this->Form->input('email');
?>
<?php echo $this->Form->end(__('Submit', true));?>
MODIFIED CODE (added to my home.ctp):
<?php echo $this->Form->create('User', array('action' => 'join'));?>
<?php
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('firstname');
echo $this->Form->input('lastname');
echo $this->Form->input('email');
?>
<?php echo $this->Form->end(__('Submit', true));?>
Thanks
Doug
On Mon, Jun 27, 2011 at 1:37 AM, Ryan Schmidt <[email protected]>wrote:
>
> On Jun 24, 2011, at 12:15, Doug wrote:
>
> > I want people to be able to join right from the home page. I copied
> > the contents of views/join.ctp into layouts/home.ctp. When I do, I get
> > the following:
> >
> > Missing Method in UsersController
> > Error: The action display is not defined in controller UsersController
> >
> > Error: Create UsersController::display() in file: app\controllers
> > \users_controller.php.
> >
> > <?php
> > class UsersController extends AppController {
> > var $name = 'Users';
> > function display() {
> > }
> > } ?>
>
> When you say "join" I assume you mean a registration form, and/or a login
> form. If you want such a feature to be available on multiple pages, then
> perhaps you want to be looking into what CakePHP calls "elements".
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php