511 search results

…it might be tricky, we do cover some simple things with LIKE query in a few tutorials like: https://symfonycasts.com/screencast/doctrine-queries/and-where-or-where#query-with-like https://symfonycasts.com/screencast/doctrine-relations/search-form#comment-4793849784 Yes, using "LIKE" might…
…You're right. It is VERY confusing. And where are AdapterInterface implementing cache objects/classes defined? How do I navigate to them? Why do I feel we should be calling something to get the helper object using "cache.app" and not an arbitrarily picked interface…
Hey Emakina F.! Ah! I don't like that error at all! Do you have a `connection()` method anywhere in your code? I thought at first that this error might be some low-level error coming from phpspec. But, if I search the *entire* vendor…
weaverryan
weaverryan
Read Full Comment
…tasks, but complicates and require more work when your tasks become more complex. But this approach is flexible and allows you to build really complex forms that might be nested to each other and where some parts could be re-used in other forms. Cheers!
…you always do. You can handle this for with JS, or you can submit it as a normal form to a specific route you created that would handle the form data and where you would redirect user back to the referer URL. Well, I think…
Hey!! What's the magic with "use PHPUnit\Framework\TestCase;" ?? Because I can find it anywhere, and even PHPStorm doesnt. But the tests work with vendor/bin/simple-phpunit.
All files were created by hand while following along, I just always replace "Post" in place of "Article" to avoid a name mismatch. I don't think that's it. Just validated there were no name mismatches anywhere.
…all very clear. The method "contains" seems that I invented it, lol. 2- I hadn't seen it anywhere, I thought that "FilesystemCache" was like the "Filesystem" component, that wrote it on the disk directly without influencing memory (I think I made a mess with…
Jose carlos C.
Jose carlos C.
Read Full Comment
Hey Peter K.! Good question! You can use multiple roles *anywhere* in Symfony - the IsGranted() annotation, denyAccessUnlessGranted, and even in access_control I believe. But, I never do this, because, for me, it's not clear what passing 2 roles means. Is it an "OR…
weaverryan
weaverryan
Read Full Comment
Hi Andrzej! Yes, it *is* good to clear your plan password in eraseCredentials - it just makes sure that the plain password doesn't accidentally get stored anywhere, like the session. Symfony automatically calls this after you login. You just need to make sure that you…
weaverryan
weaverryan
Read Full Comment
Hey Caim, Agree, it should work with expressions as well, but anyway this one is easier to read but also should work well: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3213019941 Cheers!
…Correct me, if I'm wrong, but I believe, it is impossible to invalidate a token to force a logout. The token isn't stored anywhere on the server, but simply contains the information necessary for its validation, such as the username, expiration time. I…
Vladimir Z.
Vladimir Z.
Read Full Comment
Hello, One question. You got 'FOREIGN KEY FK_66CF3FA885C4074C' Do we need to use indexes: @ORM\Table( indexes={@ORM\Index(name="user_fk_idx"... ?? When and where are indexes important?
No, I tried it a lot of times. It does not work. I cannot write php command anywhere accept xampp/php. I write php my_s/composer.phar require knplabs/knp-markdown-bundle and... i have it in php/vendor. It does not work =…
Maksimov Alexander
Maksimov Alexander
Read Full Comment
OK - ignore me, wrong question, wrong place.. It's voters isn't it? Thanks for some of the best courses anywhere.
…And try again. You'll see where you're redirected manually following intercepted redirects. Btw, important question, can you get to the /cms/login page and see the login form? Or are you redirected immediately? And where your login form submit data? What URL? Cheers!
…into the db, to the respective images. So should I instantiate a new product object inside the foreach loop, and then set $product->setPhoto($img), then persist + flush? And where you guide me to read more about editing such file filed? Thanks for the effort!
Dan Costinel
Dan Costinel
Read Full Comment
…dump() in the twig template. I can use {{ name }} and see the array of notes in {{ notes }}, however adding {{ dump() }} anywhere in the twig file, either by itself or in addition to example code as you have shown results in a 500 error. I have…
Michael Stratford
Michael Stratford
Read Full Comment
Hey again! Thanks for the report - but I can't find this. For showAction(), we do throw the 404 error (https://knpuniversity.com/screencast/rest/get#pages), and I don't see it being removed anywhere later. Is there another spot I'm missing? Cheers!
weaverryan
weaverryan
Read Full Comment
I just started on the tutorial today :). But, that still means that it's anywhere from 3-6 weeks away from the release schedule. So, not too long now :)
weaverryan
weaverryan
Read Full Comment