Hi,
I have a section in my web project where I have to load from the
database the possible languages and their infos like flag image name,
ID, shortcut, etc.
Within my templates I have in the default.ctp this area:
<div id="flags">
<?php echo $html->link($html->image('en.png', array('class' =>
'map_icon')), array('controller' => 'lng/eng'), array('title' =>
'English', 'escape' => false));?>
...
...
...
</div>
This way I have it hard coded, but as said I want to have it
dynamically.
I wonder how I can do this?
Do I have to use elements for this? Where do I have to place all my
database queries? In which controller?
Within the pages_controller? And how to get the database results into
the element template?
Please help me out, I am kind of lost right now...
Thanks!
--
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