All pastes #375189 Raw Edit

Something

public php v1 · immutable
#375189 ·published 2007-02-28 02:03 UTC
rendered paste body
app/views/topics/add<?php echo $html->formTag('/topics/add/'. $blog[0]["User"]["id"] .'/'. $phorum_id, 'post'); ?><?php echo $html->hiddenTag('Topic/user_id', $othAuth->user('id'))?><?php echo $html->hiddenTag('Topic/phorum_id', $phorum_id)?><fieldset>  <legend>New Topic</legend>    <?php echo $form->labelTag( 'Topic/subject', 'Subject:' );?><br />  <?php echo $html->input('Topic/subject', array("size" => 40, "maxlength" => 60)); ?>  <?php echo $html->tagErrorMsg('Topic/subject', 'A subject is required.'); ?>  <p>    <?php echo $form->labelTag( 'Topic/message', 'Message:' );?><br />    <?php echo $html->textarea('Topic/message', array("rows" => 10, "cols" => 50)); ?>    <?php echo $html->tagErrorMsg('Topic/message', 'A phorum message is required.'); ?>  </p>  <br />    <p><br />  <?php echo $html->submit('Send') ?></p></fieldset></form>app/topics_controller/addpublic function add($user_id, $phorum_id)   {    $this->layout    = $this->Edublog->layout($user_id);        $this->set('blog', $this->Edublog->blog($user_id));        $this->set('phorum_id', $phorum_id);        // adds new classroom to database    if (!empty($this->params['data']))    {       $this->Sanitize = new Sanitize;            $this->Sanitize->cleanArray($this->params['data']); //Hopefully this is enough            if ($this->Topic->save($this->params['data']))	  {            $this->flash('New topic had been added.','/topics/view/'.$user_id.'/'.$phorum_id);	  }    }     }