Hi

Have encounter the same issue as bellow after upgrading an cake
application to 1.3 when a try to use a Ajax based contact form
It makes no different if a have
function beforeFilter() {
        $this->Auth->allow('*');
}
It only works if a remove the Auth component

http://cakephp.lighthouseapp.com/projects/42648/tickets/746-form-stop-working-after-upgrade-to-13-database-table-users-for-model-user-was-not-found

Database table users for model User was not found
In Cake 1.2 my contact form works without any problem .

But a do not know what they mean at the end off the link bellow that
there settings is not right do any have any ideas how to allows forms?
For now it seems that you only can allow functions/actions.

My app_controller
function beforeFilter(){
        $this->Auth->authorize = 'controller';
        $this->Auth->authenticate = $this->ApplLogin;
        $this->Auth->userModel = 'ApplLogin';
        $this->Auth->sessionKey = 'User';
        // Login action
        $this->Auth->loginAction =
array(Configure::read('Routing.admin') => false, 'controller' =>
'appl_logins', 'action' => 'login');

        // Login redirect
        $this->Auth->loginRedirect = array('/', 'controller' =>
'appl_logins', 'action' => 'index');

        // Change fields to authenticate agains
        $this->Auth->fields = array(
            'username' => 'useridee',
            'password' => 'passwdee'
            );


        // Put extra critieria to login check
        $this->Auth->userScope = array(
            'ApplLogin.termdate+1 > SYSDATE',
            'ApplLogin.applcode' => 120
        );

        if(!array_key_exists('0',$this->Auth->userScope))
                $this->Auth->loginError = "Kontrakt upphört";

        // Auto redirect turned off
        $this->Auth->autoRedirect = false;

        //$this->set('Auth', $this->Auth->user());
    }

My form
<?php echo $form->create(null, array('controller'=>
'Placments','action' => 'contact','id'=>'contact'));?>
     <?php echo $form->hidden('RequestAnswer.trid', array('value' =>
$trid)); ?>
    <?php echo $form->hidden('RequestAnswer.persid', array('value' =>
$persid)); ?>
   <?php echo $form->textarea('RequestAnswer.comment',
                                                                                
array('class'=>'placment-textfield','rows'=>'5')
                                                                       ); ?>
        <?php echo $form->submit('skicka.gif',array('class'=>'treatment-
button')); ?>
<?php echo $form->end(); ?>

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to