RewriteRule ^/?code=([^/]*)$ /code/$1 [L]
object User {
def login(email: String, password: String)(implicit DB: Database): Option[User] = {
DB.withConnection { implicit c =>
// TODO
}
}
}
class Application @Inject() (implicit DB: Database) extends Controller {
def index = Action { User.login(/**/) }
}
function showDom(){
$mysqli = connect_db(); // тут подключаемся к БД
$result = $mysqli->query('SELECT id, haus, bath, restaurant, price, image FROM table');
var_dump($result);
//$rows = $result->fetch_assoc();
}