Hi!
You can name your model whatever that fit your needs:
<?php
class Officialform extends AppModel {
var $name = 'Форма';
}
and, you can refer to your Officalform model as $this->Форма, but, I
have not tested with cirillic letters.
<?php
class Officialform extends AppModel {
var $name = 'Forma';
}
and $this->Forma->whateverVariable or $this->Forma->whateverMethod()
should work fine
On Aug 5, 3:39 pm, baur79 <[email protected]> wrote:
> Hi,
>
> i need to use LOCALE name for model in view
> is it possable to find solution like this
>
> <?php
> class Officialform extends AppModel {
> var $name = 'Officialform';
> var $customname = 'Форма';}
>
> ?>
>
> and use in view
>
> echo $this->Officialform->customname
>
> or it better to write custom user function for model,
>
> best regards
> Baurzhan
> Kazakhstan / Shymkent city
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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