Hallo zusammen

Ich habe in meiner cakePHP-Umgebung (Version 2) folgenden Code im
AppController:

        $locale = $this->Session->read('Config.language');
        //if ($locale && file_exists(VIEWS . DS . $this->viewPath .
DS . $locale . DS)) {
        if ($locale && file_exists($_SERVER['DOCUMENT_ROOT'] . '/cake2/
app/View/Pages/'.$locale.'/')) {
            echo $this->viewPath . DS . $locale;
            $this->viewPath = $this->viewPath . DS . $locale;
        }

Dies funktioniert soweit ganz gut. Leider funktioniert die vom
Kochbuch vorgeschlagene Version (etwas abgeändert) nicht. Kann mir
jemand sagen wo der Fehler liegen könnte? Ich stehe ganz schön auf der
Leitung.
PS: Meine Struktur sieht so aus bezüglich Pages:
Standardfiles: View/Pages/
Sprachfiles: View/Pages/deu, View/Pages/ita etc.

Vielen Dank für Hinweise.

Ivo

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to