helper as shown here:
http://book.cakephp.org/complete/205/HTML#link-836
Use form helper to handle forms (and create buttons too):
http://book.cakephp.org/complete/182/Form
Almost all basic questions are covered in manual.
On Jul 4, 4:56 pm, Tomfox Wiranata <tomfox.wiran...@gmail.com> wrote:
> hi,
>
> i created a layout for my user profile before i used cake. so its made
> in usual php with plain css and divs. now i'm confused how to transfer
> it into cakephp specific terms. although, if i copy the code into my
> view it gets rendered correct. but i want a clear structure and not
> mixing it. if i use cake, i want my website coded in cakephp
> principles :)
>
> here are the fragments:
>
> first usual DIVs and links:
>
> <div class="picturebox">
> <div class="linkbox">
> <a href='index.php?site=editprofile' class='links'>Profil
> bearbeiten </a>
> <a href='index.php?site=profile' class='links'>Nachricht schreiben
> </a>
> <a href="index.php?site=profile" class="links">Profil melden </a>
> <a href="index.php?site=profile" class="links">Eigene Linkables </
> a>
> </div>
> </div>
>
> what code do i use in cake to implement links to other sites without
> loosing the css formatting? can i re-use some of this code (my DIVs)
> or do even those need to be re-coded?
>
> second i am using buttons wrapped in a form (i am having the feeling
> the form is unnecessary here??)
>
> <form action="profile.php" method="post" name="gotoEdit"
> id="gotoEdit">
> <div class="button"><input name="editProfile" type="submit"
> id="editProfile" value="Bearbeiten" /></div>
> </form>
>
> if i wanna have buttons and not just links, what do i need to do in
> cake?
>
> cant wait for feedback :) thank you
>
> ps: btw, this forum ist awesome!!!!
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment