Thank you for your help!
I solved the problem with a little chat in the cakephp irc-room.
Now I have an idea of working with the forms. Your posting will help
me with my next bigger forms.
A keypoint for me was to know where I have to fill the Session-
Variable with the data from my little select-form. In the IRC-Channel
I learned the following:
For global settings you can copy the app_controler.php and/or
app_model.php from the cake- to the app-folder.
Here you can add features that should be available to every section of
your application, not only to one model.
In my case my app/app_controler.php looks like the following now:
class AppController extends Controller {
function beforeRender() {
//Setting the Language of the page
if ( $this->data[0]['language'] != '' ) {
$language = $this->data[0]['language'];
if ( $this->Session->read('Config.language') !=
$language ) {
//Configure::write('Config.language',
$language); Would also work
$this->Session->write('Config.language',
$language);
}
}
$this->set('selected_language', $this->Session-
>read('Config.language'));
}
}
Perhaps somebody else can need this.
By the way: Your homepage looks very nice Rohman!
Best regards
Dakapo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---