Im reading this book called cakephp practical projects, if you read it
I have a question from chapter 9, translating stories.

there is this function in the controller named "stories_controller":

function _setI10nByLocale( $current_locale = '' ) {

        // default locale is en_us
        $locale = "en_us";

        // decide on session
        if ( $session_locale = $this->Session->read( 'locale' ) ) {
            $locale = $session_locale;
        }

        // user can override locale
        if ( $current_locale != '' ) {
            $locale = $current_locale;
        }

        $this->Story->locale = $locale;  // dont understand
}

there is no variable assigned in the story model by the name of
locale. what could this be?
-thanks in advance

--

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=.


Reply via email to