Re: Behavoirs no load

2008-04-30 Thread inver

ok, gtalk ?

On Apr 30, 2:21 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> It does not appear as declared.
>
> If you speak spanish (I do),  maybe we can meet by chat, fix this and
> post the solution later.
>
> On Wed, Apr 30, 2008 at 9:19 AM, inver <[EMAIL PROTECTED]> wrote:
>
> >  So that does not appear translate behavior in the dump information ?
>
> >  On Apr 30, 2:09 pm, Sliv <[EMAIL PROTECTED]> wrote:
> >  > oh, nevermind, hehe I didn't think the model would be that small
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Dardo Sordi Bogado

It does not appear as declared.

If you speak spanish (I do),  maybe we can meet by chat, fix this and
post the solution later.

On Wed, Apr 30, 2008 at 9:19 AM, inver <[EMAIL PROTECTED]> wrote:
>
>  So that does not appear translate behavior in the dump information ?
>
>
>
>  On Apr 30, 2:09 pm, Sliv <[EMAIL PROTECTED]> wrote:
>  > oh, nevermind, hehe I didn't think the model would be that small
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

yes, the problem, but the model is ok.

var $actsAs = ok

What's happen ?

On Apr 30, 2:18 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Inhttp://mediamadera.oneromtech.com/noticias/I can see for the
> controller dump, that your model Noticias actsAs = null
>
>   [hasAndBelongsToMany] => Array
> (
> )
>
> [actsAs] => // see, here !!!
> [Behaviors] => BehaviorCollection Object
> (
>
> On Wed, Apr 30, 2008 at 9:10 AM, inver <[EMAIL PROTECTED]> wrote:
>
> >  sorry,http://bin.cakephp.org/view/512027239
>
> >  On Apr 30, 2:08 pm, Sliv <[EMAIL PROTECTED]> wrote:
> >  > Please avoid posting code directly to the group, instead please post
> >  > it here so it's readable:http://bin.cakephp.organdreference the
>
> > > resulting url here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

So that does not appear translate behavior in the dump information ?

On Apr 30, 2:09 pm, Sliv <[EMAIL PROTECTED]> wrote:
> oh, nevermind, hehe I didn't think the model would be that small
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Dardo Sordi Bogado

In http://mediamadera.oneromtech.com/noticias/ I can see for the
controller dump, that your model Noticias actsAs = null

  [hasAndBelongsToMany] => Array
(
)

[actsAs] => // see, here !!!
[Behaviors] => BehaviorCollection Object
(

On Wed, Apr 30, 2008 at 9:10 AM, inver <[EMAIL PROTECTED]> wrote:
>
>  sorry, http://bin.cakephp.org/view/512027239
>
>
>  On Apr 30, 2:08 pm, Sliv <[EMAIL PROTECTED]> wrote:
>  > Please avoid posting code directly to the group, instead please post
>  > it here so it's readable:http://bin.cakephp.organd reference the
>
>
> > resulting url here
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

sorry, http://bin.cakephp.org/view/512027239

On Apr 30, 2:08 pm, Sliv <[EMAIL PROTECTED]> wrote:
> Please avoid posting code directly to the group, instead please post
> it here so it's readable:http://bin.cakephp.organd reference the
> resulting url here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Sliv

oh, nevermind, hehe I didn't think the model would be that small

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Sliv

Please avoid posting code directly to the group, instead please post
it here so it's readable: http://bin.cakephp.org and reference the
resulting url here

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

class Noticia extends AppModel {

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


On Apr 30, 2:05 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Please post the model definition.
>
> On Wed, Apr 30, 2008 at 8:54 AM, inver <[EMAIL PROTECTED]> wrote:
>
> >  yes, but the translation no work.
> >  for add, edit ór view is necesary.
>
> >  the problem online:http://mediamadera.oneromtech.com/noticias/
>
> >  On Apr 30, 1:49 pm, Sliv <[EMAIL PROTECTED]> wrote:
> >  > if you didn't type bindTranslate, you wouldn't get this error
>
> >  > "SQL Error: 1064: You have an error in your SQL syntax; bindTranslate
> >  > "
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Dardo Sordi Bogado

Please post the model definition.

On Wed, Apr 30, 2008 at 8:54 AM, inver <[EMAIL PROTECTED]> wrote:
>
>  yes, but the translation no work.
>  for add, edit ór view is necesary.
>
>  the problem online: http://mediamadera.oneromtech.com/noticias/
>
>
>
>
>  On Apr 30, 1:49 pm, Sliv <[EMAIL PROTECTED]> wrote:
>  > if you didn't type bindTranslate, you wouldn't get this error
>  >
>  > "SQL Error: 1064: You have an error in your SQL syntax; bindTranslate
>  > "
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

yes, but the translation no work.
for add, edit ór view is necesary.

the problem online: http://mediamadera.oneromtech.com/noticias/


On Apr 30, 1:49 pm, Sliv <[EMAIL PROTECTED]> wrote:
> if you didn't type bindTranslate, you wouldn't get this error
>
> "SQL Error: 1064: You have an error in your SQL syntax; bindTranslate
> "
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Sliv

if you didn't type bindTranslate, you wouldn't get this error

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread inver

it follows equal after change to bindTranslation
error typing the post, after thounsand of changes, sorry
The problem: No load the behavior code, translate.php
it follows equal

Thanks
On Apr 30, 1:31 pm, Sliv <[EMAIL PROTECTED]> wrote:
> bindTranslate <> bindTranslation
>
> http://api.cakephp.org/1.2/class_translate_behavior.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Sliv

bindTranslate <> bindTranslation

http://api.cakephp.org/1.2/class_translate_behavior.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Behavoirs no load

2008-04-30 Thread Fran Iglesias


El 30/04/2008, a las 13:24, inver escribió:

> $this->Noticia->bindTranslate('titulo')


$this->Noticia->bindTranslation('titulo');

http://api.cakephp.org/1.2/class_translate_behavior.html#9753a3633a708bcd9e8a2f479cd72936

--
Fran Iglesias
[EMAIL PROTECTED]





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Behavoirs no load

2008-04-30 Thread inver

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   AffectedNum. 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---