511 search results

…>getContainer(); ``` But really, it's the same thing. About your questions, why and where are you calling $extension->load()? Are you trying to test your extension class? If so, you do *not* need to create the kernel like my code above (or your code). That…
weaverryan
weaverryan
Read Full Comment
…of the tutorial pages, unzipped it, moved into the "start" directory and followed the README). And I can't seem to see anywhere in the code that *might* be causing this. What error do you get when you try registration? Btw, you might also be…
weaverryan
weaverryan
Read Full Comment
…edit_form) }} into the twig file and then it looked awful but I could update and delete Also you need to add a line about assetic and adding EventBundle into the square brackets, don't think that was mentioned anywhere. Symfony 2.4 Cheers Dan
Daniel Harper
Daniel Harper
Read Full Comment
…add (pseudo-code) `andWhere('isActive=true')` B) If user is authenticated, add (pseudo-code) `andWhere('owner=:user')` and maybe also you add "OR isActive = true" so that I can see ALL of my posts (active or not) AND also active posts from anyone else. Does…
weaverryan
weaverryan
Read Full Comment
…to write a custom JS code - that's where Stimulus controllers come into action. And we have several courses about Stimulus to see how to write them and where those are useful, so I would recommend you to check them out: https://symfonycasts.com/screencast…
…So there is no real redirect to the /newsevent route. How can I force the real redirect here - The goal is to create a news event from anywhere on the website and to land on the /newsevent route after creation. Do you have any idea…
creativx007
creativx007
Read Full Comment
Blog
Live Components + Turbo Streams: Navigating a Turbo Frame

…redirecting from the LiveAction, set a flag that indicates that you're in a "success" situation: Then, in the template, anywhere inside your root component element, add something like this: That's it! When this pops onto the page, it'll replace your…

…html.twig and/or edit.html.twig templates and surround the form block with a turbo frame with the same id. ``` {% block new_form %} ... {% endblock new_form %} ``` *6.* Now, anywhere your app, you just make sure that you set the data-action, data-modal-title…
…which is does by getting a list of ids to act on. This list of child ids could anywhere from 1 to who-knows-how-many long, so I'm POSTing it using axios. I can reach the server-side controller with the posted data…
Blog
Myth: JS imports need a Build System

…and export natively, and have for a while. Let's try it right now! Seriously! Find a project, open base.html.twig or any file, paste anywhere... then refresh. I'll wait: That's right, that cow did just give you its opinion on bundlers..…

…are authenticating as a `User`. So, a `User` object is what you would return from your authenticator... and then anywhere in your code where you say `$this->getUser()`, it would be a `User` object. But for the company token, your authenticator would return a `Company…
weaverryan
weaverryan
Read Full Comment
…are multiple jQuery's being loaded. So, let's see if we can debug. If you do NOT import `jquery` from `app.js` (or anywhere else), when you load the page and open your console, what does `console.log($)` give you? Is it undefined …
weaverryan
weaverryan
Read Full Comment
…css only, then big chunks of my site started working again. There was no error in the browser console, but this is not explained anywhere in the docs. I only figured this out after a lot of testing, it seems bootstrap was importing twice? In…
…check_path: /authentication_token username_path: email password_path: password success_handler: lexik_jwt_authentication.handler.authentication_success failure_handler: lexik_jwt_authentication.handler.authentication_failure ``` I've been stepping though code and going around in circles for weeks and I'm not getting anywhere
…like https://github.com/liip/LiipImagineBundle/blob/2.x/Binary/Loader/FlysystemLoader.php or https://github.com/liip/LiipImagineBundle/blob/2.x/Imagine/Cache/Resolver/FlysystemResolver.php#L118 That's some, somewhat generic instructions. But let me know if it helps you get anywhere :). Cheers!
weaverryan
weaverryan
Read Full Comment
…OR 2) You could instead, under your user provider, set `property: username`. This would mean that, anywhere your user provider is used, the "username" will be used to query for the user instead. What ARE those places? It's basically "remember me", "switch_user" and…
weaverryan
weaverryan
Read Full Comment
…This assumes you have created a `.data/config` directory within your project. The host directory name / location can be anywhere. ``` // MySql / MariaDB - ./.data/config:/etc/mysql // Postgres - ./.data/config:/usr/share/postgresql ``` For the actual database data itself, you would add a volume like: ``` // MySql…
Jesse-Rushlow
Jesse-Rushlow
Read Full Comment
…for that entity also to encrypt the password there... When I finish any of the solutions and it is working correctly and above all "have no doubts about it" I will share it here since I really have not found any example of this anywhere!…
…i.e. firewall). > So far, submitting the 'employee' login form doesn't submit any form data to anywhere that I can tell. I would probably create a custom authenticator for the Ldap authentication. Here's the idea: * /login is your normal login form. It…
weaverryan
weaverryan
Read Full Comment
…up and see if you are able to connect to the Ldap server in general. You could do this 2 different ways: a) Create a little play.php script anywhere on your filesystem, and see if you can manually use ldap_connect() and ldap_bind…
weaverryan
weaverryan
Read Full Comment