131 search results

{% extends 'base.html.twig' %}
{% block body %}
<div class="container">
<div class="row">
<!-- Article List -->
<div class="col-sm-12 col-md-8">
<!-- H1 Article -->
<a class="main-article-link" href="#">
<div class="main-article mb-5 pb-3">
<img src="{{ asset('images/meteor-shower.jpg') }}" alt="meteor shower">
<h1 class="text-center mt-2">Ursid Meteor Shower: <br>Healthier than a regular shower?</h1>
</div>
</a>
<!-- Supporting Articles -->
<div class="article-container my-1">
<a href="#">
<img class="article-img" src="{{ asset('images/asteroid.jpeg') }}">
<div class="article-title d-inline-block pl-3 align-middle">
<span>Why do Asteroids Taste Like Bacon?</span>
<br>
<span class="align-left article-details"><img class="article-author-img rounded-circle" src="{{ asset('images/alien-profile.png') }}"> Mike Ferengi </span>
<span class="pl-5 article-details float-right"> 3 hours ago</span>
</div>
</a>
</div>
<div class="article-container my-1">
<a href="#">
<img class="article-img" src="{{ asset('images/mercury.jpeg') }}">
<div class="article-title d-inline-block pl-3 align-middle">
<span>Life on Planet Mercury: <br> Tan, Relaxing and Fabulous</span>
<br>
<span class="align-left article-details"><img class="article-author-img rounded-circle" src="{{ asset('images/astronaut-profile.png') }}"> Amy Oort </span>
<span class="pl-5 article-details float-right"> 6 days ago</span>
</div>
</a>
</div>
<div class="article-container my-1">
<a href="#">
<img class="article-img" src="{{ asset('images/lightspeed.png') }}">
<div class="article-title d-inline-block pl-3 align-middle">
<span>Light Speed Travel: <br> Fountain of Youth or Fallacy</span>
<br>
<span class="align-left article-details"><img class="article-author-img rounded-circle" src="{{ asset('images/astronaut-profile.png') }}"> Amy Oort </span>
<span class="pl-5 article-details float-right"> 2 weeks ago</span>
</div>
</a>
</div>
</div>
<!-- Right bar ad space -->
<div class="col-sm-12 col-md-4 text-center">
<div class="ad-space mx-auto mt-1 pb-2 pt-2">
<img class="advertisement-img" src="{{ asset('images/space-ice.png') }}">
<p><span class="advertisement-text">New:</span> Space Ice Cream!</p>
<button class="btn btn-info">Buy Now!</button>
</div>
<div class="quote-space pb-2 pt-2 px-5">
<h3 class="text-center pb-3">Trending Quotes</h3>
<p><i class="fa fa-comment"></i> "Our two greatest problems are gravity and paperwork. We can lick gravity, but sometimes the paperwork is overwhelming." <br><a href="https://en.wikipedia.org/wiki/Wernher_von_Braun">Wernher von Braun, Rocket Engineer</a></p>
<p class="pt-4"><i class="fa fa-comment"></i> "Let's face it, space is a risky business. I always considered every launch a barely controlled explosion." <br><a href="https://en.wikipedia.org/wiki/Aaron_Cohen_(Deputy_NASA_administrator)">Aaron Cohen, NASA Administrator</a></p>
<p class="pt-4"><i class="fa fa-comment"></i> "If offered a seat on a rocket ship, don't ask what seat. Just get on."<br><a href="https://en.wikipedia.org/wiki/Christa_McAuliffe">Christa McAuliffe, Challenger Astronaut</a>
</div>
</div>
</div>
</div>
{% endblock %}
See Code Block in Script
… !! In CheckExceptionOnInvalidReferenceBehaviorPass.php line 116: !! !! The service "api_platform.doctrine.orm.listener.mercure.publish" has a depe !! ndency on a non-existent service "Symfony\Component\Mercure\HubRegistry". !! !! !! Script @auto-scripts was called via post-update-cmd ``` now whenever i do `php bin/console cache:clear…
Rodrypaladin
Rodrypaladin
Read Full Comment
…if it all works as advertised, the promise land. To make matters more interesting, if you use Mercure, you could also publish an update to the users on your site with the same stream. For example, if a user is on the `/voyages/5` show…
weaverryan
weaverryan
Read Full Comment
…at those course I mentioned above probably, we haven't talked about JWT in other courses unfortunately. Oh, or take a look at this video too: https://symfonycasts.com/screencast/turbo/mercure-jwt - might be useful for you I suppose. I hope that helps! Cheers!
…it, that points to some OTHER controller (not the controller that returns the "{{ my_frame_id }}" content. Anyways, in that controller, you would *return* (not dispatch to Mercure, just return a Turbo stream response, I believe that would work... and not cause a frame error…
weaverryan
weaverryan
Read Full Comment
…need to include both the frontend and backend HTML... which maybe you're ok with, or maybe not :). So probably you would need to make the Broadcast update just the frontend templates and dispatch a second, custom Update for an admin-only Mercure channel. Cheers!
weaverryan
weaverryan
Read Full Comment
…for example, an "import_123" Mercure channel. Then, in the code that processes the rows, you could dispatch an Update to Mercure on this channel that could "replace" the existing progress bar element with an updated one set at the new percentage. For 70,000…
weaverryan
weaverryan
Read Full Comment
…you want to perform a POST request... and then that POST request may or may not create "messages" that the user should be notified about. Using something like Mercure and listening to those messages on the frontend would be a more pure/fancy approach. Cheers!
weaverryan
weaverryan
Read Full Comment
…png:1 Failed to load resource: the server responded with a status of 500 () asteroid.jpeg:1 Failed to load resource: the server responded with a status of 500 () mercury.jpeg:1 Failed to load resource: the server responded with a status of 500 () Cheers
… } public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => Article::class, 'include_published_at' => false, ]); } private function getLocationNameChoices(string $location) { $planets = [ 'Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', ]; $stars = [ 'Polaris', 'Sirius', 'Alpha Centauari A', 'Alpha Centauari B', 'Betelgeuse', 'Rigel', 'Other…
…as we dont declare a such var we put it here too ]); } private function getLocationNameChoices(string $location) { //array_combine — Creates an array by using one array for keys and another for its values $planets = [ 'Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', ]; $stars = [ …