Hmm I am getting 404 for these thumbs. There was no folder created anywhere (suppose to?)
Partially RESOLVED FOR DEV: I had to run server through bin/console server start
Anyway On production I wont be able to do that, and seems that problem refers…
👍 on these tutorials. They're the best I've found on Symfony anywhere on the web.
However, I have this issue I was hoping you'd be able to help with, Ryan.
I hate to think how long I've spent on trying to…
also framework.templating.assets_version and framework.templating.assets_base_urls are throwing deprecated warnings even though there is no info anywhere how this should be corrected. official config documentation sates that nothing has changed about this http://symfony.com/doc/current/reference/configuration/framework…
Hey somecallmetim ,
Good detective work! How do you encode your password and where? I suppose you do it in the event listener where encode plain password and store the encoded value in User::$password (as we do in our screencasts). Then in this event listener…
I have watched 2 oo episodes and learned A LOT of things that I couldn't find anywhere else, this is awesome. Man, you HAVE TO check this out
Hey Benjamin K.!
> If i am right select - where is allready done. A custom Filter is AndWhere from queryBuilder. That makes sense we filter a resource and not build a complete query
That's correct :). It makes the filters fairly easy to build.
Cheers…
…name=test&capacity=200&category=theatre
Instead of writing out 10+ andWhere() statements i was wondering it there a way to pass a variable into the andWhere() statement. Something like andWhere('$filters LIKE :filter') however i have trouble as the single quotes are needed as part of the…
…complex andWhere() clause where you can combine a few simple clauses with OR condition. For example, something like this:
```
->andWhere('u.author IN (:authors)')
->setParameter('authors', ['Mike', 'Kenneth'])
```
You can also use our feature-rich search to find more ideas of how to write addWhere…
…
Excellent question. Hmm, that is a bit tricky. In a normal query, I would do something like `andWhere('whenEntered > :now')->setParameter('now', new \DateTime())`, but we can't do that inside of YAML. So, we'll need to apply the dql_filter manually (not…
…they are just hard to read (IMHO), but yes, you can add OR conditions inside an `andWhere()`. About auto adding "%" to a LIKE condition. I don't think that's a good idea because there are other kind of wildcards for a LIKE condition that…
… About the order of the andWhere, it "shouldn't" matter, but yes, in *can* matter in some cases - especially if you have an "OR" in your query. I often will group multiple things into a single andWhere() if I need to be more clear about…
…and then another one, as Victor said, the first one will be overridden, so you have to use "andWhere" to concatenate your where clauses, but if need both clauses AND & OR, it's better to write them all in a single "where", so you don…
When you do :
```
symfony console doctrine:query:sql 'SELECT * FROM starship WHERE id = 75'
```
I cannt see part_id is 1.
Even when I try to do the query myself, I dont see part_id anywhere... Did I miss something?
Thank you for your reply. I use Nelmio Cors and haven't written anything about putenv() ever, anywhere. Il's a very basic symfony configuration, mainly inspired by your work here. I never touched the vendor dir and I use Api Platform (sometimes i regret…
|
|
// ... lines 1 - 14
|
|
#[AsCommand('app:game:play')] |
|
class GameCommand extends Command |
|
{ |
|
|
// ... lines 18 - 24
|
|
protected function execute(InputInterface $input, OutputInterface $output): int |
|
{ |
|
$io = new SymfonyStyle($input, $output); |
|
|
|
|
|
GameApplication::$printer = new MessagePrinter($io); |
|
|
|
$io->section('Welcome to the game where warriors fight against each other for honor and glory... and 🍕!'); |
|
|
|
$characters = $this->game->getCharactersList(); |
|
$playerChoice = $io->choice('Select your character', $characters); |
|
|
|
$playerCharacter = $this->game->createCharacter($playerChoice); |
|
$playerCharacter->setNickname($playerChoice); |
|
|
|
GameApplication::$printer->initPlayerPrinters($playerCharacter->getId()); |
|
|
|
$this->play($playerCharacter); |
|
|
|
return Command::SUCCESS; |
|
} |
|
|
// ... lines 46 - 114
|
|
} |
See Code Block in Script
…and it would require you some time to refactor. But it's difficult to say what's wrong in your code, because it depends on how (and where) you use jQuery. I don remember for sure, but it might be so that you can't…
Hi,
I was wondering how to make posts to subresources because you don't show it in the screencast and it does not appear anywhere in the docs.
for example lets say I have a company-employee relationship and want to create new employees for…
…how everything works together. The flash message got written just before the modal closed. At the end it was a matter of how and where to put that flash messages.
Thank you very much for the great tutorials. Keep up the good work.
Cheers
Nexo
…3 [▼
"action" => EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto {#668 â–¶}
"ea" => EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext {#798 â–¶}
"app" => Symfony\Bridge\Twig\AppVariable {#1288 â–¶}
]
```
I also tried using the search functionality but there were no variable with the name 'test' anywhere
…A) If you load what's in the modal via Ajax, you can use our AJAX-loading system that we build in the next few days to load from anywhere.
B) In many cases, if you have multiple button that open the same modal (and…
x
511