hi,

before i used cakephp i designed a layout with CSS "naked" (no
framework, no CMS) to show a members profile. now, i am asking myself
how to make this work in cakephp.

this is what i got worked so far:

i put all my divs containers into a view template:
<div class="frame">
        <div class="rightcolumn">
                <div class="databox">
                        <div class="title">Allgemeines</div>
                        <form action="" method="post" name="profile" 
id="profile">
                        <div class="row">
                                <span class="label">Vorname</span>
                                <span class="profiledata"><?php echo 
$row['firstname'];?></span>
                        </div>

                        <div class="row">
                                <span class="label">Nachname</span>
                                <span class="profiledata"><?php echo 
$row['name'];?></span>
                        </div>

                        <div class="row">
                                <span class="label">Nickname</span>
                                <span class="profiledata"><?php echo 
$row['nickname'];?></span>
                        </div>

                        <div class="row">
                                <span class="label">Mitglied seit</span>
                                <span class="profiledata"><?php echo 
$row['date_created'];?></
span>
                        </div>
                        </form>
                </div>

                <form action="profile.php" method="post" name="gotoEdit"
id="gotoEdit">
                        <div class="button"><input name="editProfile" 
type="submit"
id="editProfile" value="Ă„ndern" /></div>
                </form>

        </div>

</div>
</div>

now, where do i put my css file (where all the divs are defined)? is
there a special folder for that? and where do i inlcude this file in
my code to tell cake to use this specific css file?

do i retrieve the user information for his profile in my controller?
probably with the find method?
do i put the code to print/show the information in my model?

right now i am using a loop to show the data:
                        <div class="row">
                                <span class="label">Mitglied seit</span>
                                <span class="profiledata"><?php echo 
$row['date_created'];?></
span>
                        </div>

but that wont work with cake

so technically i dont know how to tell cake to use my css file, where
(model or controller) to get the data from the table, and how/where to
show the data (model or controller) that it appears in my divs

any help would be great. thx soooo much

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to