I am trying to insert record using Cakephp.My model name is something like User.php. And My working controller name is SignupsController.I want to insert record using this two but I cant.I am give my some codes below :
View :
<?php echo $this->Form->create('Signups',array('action' => 'registration'));?>
                        <div class="row-fluid">
                            <div class="span5">
                                <label class="">*First Name</label>
                                <?php echo $this->Form->input('first_name', array('type' => 'text','label' => false, 'class' => 'input-xlarge validate[required]', 'div' => false)); ?>
                            </div>
                            <div class="span5">
                                <label class="">*Last Name</label>
                                <?php echo $this->Form->input('last_name', array('type' => 'text', 'label' => false, 'class' => 'input-xlarge validate[required]', 'div' => false)); ?>
                            </div>
                        </div>
<?php echo $this->Form->end(); ?>
My controller code is given below :
class SignupsController extends AppController {
var $name = 'Signups';
var $uses=array("User");
public function registration()
    {
        $this->layout="reserved";
        $this->Club->create();
        if (isset($_POST['registration'])) {
            echo "This is";
            echo "<pre>";print_r($this->request->data);echo"</pre>";
            $this->User->save($this->request->data);
            //$this->Session->setFlash(__('Promoter registration has been done successfully'));
            //$this->redirect('registration');
            //$this->redirect(array('action' => 'registration'));
        } 
    }
}
My model name is different which's name is User.php I want to insert the record using this above code.Any idea how to insert?