Skip to content

Commit

Permalink
loggable behavior added but with serious issues. Any request crashes …
Browse files Browse the repository at this point in the history
…apache and generates about 400 logs. [#39]
  • Loading branch information
dogmatic69 committed Jan 2, 2010
1 parent a1baa82 commit 5454141
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app_controller.php
Expand Up @@ -52,7 +52,12 @@ function beforeFilter()
{
parent::beforeFilter();

//$this->Session->write( 'Auth', ClassRegistry::init( 'Core.User' )->find( 'first', array( 'conditions' => array( 'User.id' => 2 ) ) ) );
$this->Session->write( 'Auth', ClassRegistry::init( 'Core.User' )->find( 'first', array( 'conditions' => array( 'User.id' => 2 ) ) ) );

if ( sizeof( $this->uses ) && $this->{$this->modelClass}->Behaviors->attached( 'Logable' ) )
{
$this->{$this->modelClass}->setUserData( $this->Session->read( 'Auth' ) );
}

$this->__checkUrl();
$this->__setupLayout();
Expand Down
6 changes: 4 additions & 2 deletions app_model.php
Expand Up @@ -20,10 +20,12 @@

class AppModel extends Model
{
var $actsAs = array( 'Containable' );

var $useDbConfig = 'default';

var $actsAs = array(
'Containable',
// 'Core.Logable' some wierd issues
);

function lock( $fields = null, $id = null )
{
Expand Down

0 comments on commit 5454141

Please sign in to comment.