Wednesday, June 19, 2013

Re: Can anyone help me with editing post_tags ???

i forgot the view

Edit Topic

<?php
echo $this->Form->create('Topic', array('type' => 'file'));

echo $this->Form->input('id', array(
'type'=>'hidden',
'value' => $topic['Topic']['id']
));

echo $this->Form->input('title', array(
'type' => 'text',
'error' => array('class' => 'error-message'),
'label' => 'Title',
'value' => $topic['Topic']['title']
));

echo $this->Form->input('description', array(
'type' => 'textarea',
'error' => array('class' => 'error-message'),
'label' => 'Description',
'value' => $topic['Topic']['description']
));

$topicTag='';
foreach($editTags as $editTag){
$topicTag.=$editTag['Tag']['title'].' ';
}
echo $this->Form->input('tags', array(
'type'=>'text',
'error' => array('class' => 'error-message'),
'label' => 'Tags',
'value' => $topicTag
));

so can you help? :(



--
View this message in context: http://cakephp.1045679.n5.nabble.com/Can-anyone-help-me-with-editing-post-tags-tp5715315p5715332.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: