Guest User

Untitled

a guest
Jun 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <td>{{category.id | count}}</td>
  2.  
  3. /**
  4. * @Access(admin=true)
  5. * @Route(methods="POST")
  6. * @Request({"id": "integer"}, csrf=true)
  7. */
  8. public function countAction($id){
  9. return ['status' => 'yes'];
  10. }
  11.  
  12. filters: {
  13. count: function(data){
  14. var count = '';
  15. this.$http.post('/admin/api/dpnblog/category/count' , {id:data} , function(success){
  16. count = success.status;
  17. }).catch(function(error){
  18. console.log('error')
  19. })
  20. return count;
  21. }
  22. }
Add Comment
Please, Sign In to add comment