Hello, first sorry for my english.

The problem: behavoir Translate does not work, and either others.

Cake version: 1.2.0.6311

my model noticias:

class Noticia extends AppModel {

    var $name = 'Noticia';
    var $actsAs = array('Translate' => array('titulo','descripcion'));
}

my controller noticias

class NoticiasController extends AppController {

        var $name = 'Noticias';
        var $helpers = array('Html', 'Javascript', 'Form');
        var $components = array('Session');

       function beforeFilter() {
                parent::beforeFilter();
                $this->Noticia->locale = 'spa';
                $this->Noticia->bindTranslate('titulo');  --> Error
function no
        }
}

Debug info:

SQL Error: 1064: You have an error in your SQL syntax; bindTranslate

SQL Debug:

        Query   Error   Affected        Num. rows       Took (ms)
1       DESCRIBE `noticias`             1       1       1
2       SELECT `sesiones`.`data` FROM `sesiones` WHERE `sesiones`.`id` =
'lmv5egl3p1etmdp9sve243dmk2'            1       1       0
3       bindTranslate

4       SELECT COUNT(*) AS `count` FROM `noticias` AS `Noticia` WHERE
1 = 1           1       1       0
5       SELECT `Noticia`.`id` FROM `noticias` AS `Noticia` WHERE 1 = 1 LIMIT
20

Dump:

[actsAs] =>
            [Behaviors] => BehaviorCollection Object
                (
                    [modelName] => Noticia
                    [_attached] => Array
                        (
                        )

                    [_disabled] => Array
                        (
                        )

                    [__methods] => Array
                        (
                        )

                    [__mappedMethods] => Array
                        (
                        )

                    [_log] =>
                )


where are the TranslationBehavoir ?, What's the problem ?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to