This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" id="fname"> | |
<script> | |
fname.addEventListener('change', function(e) { | |
console.log(e.target.value); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Exemplo</title> | |
</head> | |
<body> | |
<form action=""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const date = new Date; | |
this.orderServ.ddata = date.getDate() . '/' . date.getMonth() . '/' . date.getYear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Padding( | |
padding: EdgeInsets.only(top: 25), | |
child: CircularProgressIndicator(), | |
), | |
ListTile( | |
title: Text('Buscando...'), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Telegram; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\ClientException; | |
/** | |
* Class Telegram | |
* @package App\Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Many Users have many Users. | |
* @ManyToMany(targetEntity="User", inversedBy="friendsWithMe") | |
* @JoinTable(name="friends", | |
* joinColumns={@JoinColumn(name="user_id", referencedColumnName="id")}, | |
* inverseJoinColumns={@JoinColumn(name="friend_user_id", referencedColumnName="id")} | |
* ) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Many User have Many Phonenumbers. | |
* @ManyToMany(targetEntity="Phonenumber") | |
* @JoinTable(name="users_phonenumbers", | |
* joinColumns={@JoinColumn(name="users_id", referencedColumnName="id")}, | |
* inverseJoinColumns={@JoinColumn(name="phonesnumber_id", referencedColumnName="id", unique=true)} | |
* ) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<q-page> | |
<q-table | |
ref="table" | |
title="Usuários" | |
:data="tableData" | |
:columns="columns" | |
row-key="name" | |
:pagination.sync="pagination" | |
:loading="loading" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resultado: http://prntscr.com/mv64p6 | |
public function index() | |
{ | |
$users = $this->paginate($this->Users); | |
$paging = $this->request->getParam('paging'); // aqui como pegar informações da paginação | |
$this->set([ | |
'data' => $users, | |
'paging' => $paging['Users'], // pegamos pelo nome do model, aqui estou passando para view | |
'_serialize' => ['data', 'paging'] // e adicionei no serialize para aparecer no json |