Guest User

Untitled

a guest
Jul 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. url: "MyApp/index.php/app/user" or
  2. url: "MyApp/index.php/app/user/id/(xxx)"
  3.  
  4. $(document).ready(function(){
  5. var Item = Backbone.Model.extend({
  6.  
  7. defaults: {
  8. title: "Hello World!!!"
  9. },
  10.  
  11. url: "MyApp/index.php/app/user"
  12.  
  13. });
  14. var item=new Item;
  15. item.save();
  16.  
  17. function user_post()
  18. {
  19. $data=array(
  20. 'id'=> NULL,
  21. 'title'=>$this->post('title')
  22. );
  23.  
  24. $result = $this->App_Model->create($data);
  25. }
  26.  
  27. function create($data)
  28. {
  29.  
  30. $query = $this->db->insert('data', $data)
  31. }
  32.  
  33. $this->post('title')
  34.  
  35. $this->input->post('title')
  36.  
  37. $this->request->body
Add Comment
Please, Sign In to add comment