Guest User

Untitled

a guest
May 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. 1.a $this->member is from controller
  2.  
  3. 1.b your views
  4.  
  5. <fieldset>
  6. <legend><b>Categories:</b></legend>
  7. <div >
  8. <?php
  9. $array = array();
  10. $array = $this->member;
  11. echo $this->partial('/login/categories.phtml', $array);
  12. ?>
  13. </div>
  14. </fieldset>
  15.  
  16.  
  17. 2. in categories.phtml as it runs on its own scope use this: $this-id coming from $array ($this->member)
  18. <div id="opera" >
  19.  
  20. <form method="post" action="/login/addcategories">
  21. <div>
  22. <?php
  23.  
  24. echo $this->formHidden('id','', array() );
  25. echo $this->formHidden('clientid',$this->id, array() );
  26.  
  27. echo $this->formLabel('id', 'Name: ', array('class'=>''));
  28. echo $this->formText('name','', array() );
  29.  
  30. echo $this->formLabel('id', 'Text: ', array('class'=>''));
  31. echo $this->formText('text','', array() );
  32.  
  33. echo $this->formSubmit('zoek', 'Add', array('class'=>'') );
  34.  
  35. ?>
  36. </div>
  37. </form>
  38.  
  39. </div>
Add Comment
Please, Sign In to add comment