…file *also* doesn't cause the messages to be shown. Honestly, it makes me think something very strange is happening! If you try to dump the session *anywhere* in SonataAdminBundle (e.g. in a template, hacked temporarily into a controller, etc) - do you *ever* see…
…with JWT, there is no session: you're just validation the token on each request and decoding it to get some user information. You could honestly put this all into a service and then call that service from anywhere (e.g. a controller). You would…
…can even be a bit sneakier :). Even *without* that checkbox, I *think* (never tried before, but 99% sure) that you could *set* this value into the request, from inside your authenticator (could be anywhere):
```
$request->attributes->set('_remember_me', true);
```
That should activate it :).
Cheers!
…vim, so I say `vim ~/.profile`. If you don't have this file, you can just create it
B) Anywhere inside, add this:
```
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
```
Then open a new tab, and try `php -v` again, it…
…e.g. if they created ROLE_MANAGE_BLOG, that wouldn't be used in the code anywhere).
2) Normally, there is in fact no single source for roles - you just kind of use them in your controller with isGranted() or in access_control. If you…
…to start your project. Then, you can safely transfer your files anywhere you want afterwards! Everything exists in your one directory (there is really nothing "installed" - it's all in your project directory).
So, absolutely - you can upload your local Symfony project to your remote…
…>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…
…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…
…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
…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…
…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…
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…
…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 …
…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…
x
517