Hi, folks.
I'm starting with CakePHP and after reviewing this tutorial (
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
)  and also after having  used the "cake bake" command to generate my
models,
controllers and views , everything is fine, but when I visit the
Post's add view (views \ posts
\ add.php), I find that instead of showing a input text for the
username, it shows a select with all the usernames.

this is the line in  the Post's add view that show the select.

    echo $this->Form->input('user_id');

Although I know how to display only the username of the currently
logged-in user,  I don't know how to control the content to show in
$this->Form->input()  because if I use a variable that is not part of
the "Post" model , it's shown , but as the label for the input.

Have you any idea how to solve this??

-- 
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