Hi nerdess.
If you want to return a string from a controller instead returning a twig
template you should:
return new Response('HI, Im a string');
Also you have to:
use Symfony\Component\HttpFoundation\Response;
in the imports of the controller.
2011/4/1 nerdess
> That is really helpful to
Good catch! I didn't see that change.
Thanks for the info! :)
2011/4/1 Illya Klymov
> This is due to this commit by Fabien -
> https://github.com/symfony/symfony/commit/ce4a8de789fbcbc965a3be3bdee362ba17fc0dc8
> Now session.default_locale is not used :)
>
> --
> If you want to report a vulnera
Hi,
I confirm it was a mistake in my code, my bad.
I didn't write the right path in output attribute. I forget about the
system folder "web/bundles" (generated automatically by app/console
assets:install web) I thought it was handled by the framework but not :
(.
Whatever, I can explain how I fix
This is due to this commit by Fabien -
https://github.com/symfony/symfony/commit/ce4a8de789fbcbc965a3be3bdee362ba17fc0dc8
Now session.default_locale is not used :)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
Thanks for answering!
I have some doubts about how symfony and doctrine works, I think that
jobeet would be so much easier if the doctrine documentation was
better.
Other possibility is that I greatly complicating the doctrine
understanding,what do you mean by creating that method?
As far as I know
I Just posted my answer but it seems that was an error, if tomorrow
doesn't appear I will answer again.
Thank you for answering Roger
On 1 abr, 00:13, Roger Webb wrote:
> As I best understand it, the "table" object is supposed to act as a
> repository. You would, ideally, add methods to the tabl
That is really helpful to know though I am wondering.what if
the controller looks sth like this and returns a simple string but not
a template:
public function () {
//do magic stuff
return $bla
}
how can i echo out what's inside $bla in my twig-template?
Thanks
Sissi
--
If you want
Hi,
I'm new to Symfony but am loving it!
My project involves two applications - a frontend app and a dedicated
API app. The API will deal primarily in JSON, so I want to make that
the default HTTP content type for all requests to that app. I know you
can set that via $this->getResponse()->setHttp
I'm not really sure that I'm on the right track here but I think I am
and that I just need to the last pieces of the puzzle to get there ...
I want to use an seperated xManager for my entities (lets say
UserManager just like in the FOS\UserBundle).
Looking at the documentation about service co
Hi all,
This is kind of weird and I don't understand how it happens. Hope
someone can help or has an idea why it could happen.
I created a simple form to change my authenticated user's username and
when I change to somebody else's username
I get an error (because the username is unique) but on the
Well, after updating everything it didn't work. So I moved temporarily my
app/Resources/views/base.html.twig to a bundle and now it works like a
charm.
I'll take a look again later if I find the error and I'll let you know guys
what happend.
Thanks.
2011/4/1 Gustavo Adrian
> It should work th
It should work this way too. I updated my sandbox so it looks almost the
same as the SE. I'm making all the updates on the code now. I'll try again
when I finish. It's a big move to update this time :P
Thanks!
2011/4/1 oscar balladares
> Hi.
>
> you might want to download the SE PR9 and import
Hi.
you might want to download the SE PR9 and import your bundle, anyway bundles
are meant to be able to hook up very easily.
I'm using PR9 and base.html.twig is in app/Resources/views and is working.
Saludos.
2011/4/1 Gustavo Adrian
> Yes, I cleared the cache and removed the "Bundle" suffix
Yohan - the event is a doctrine save. The save is being called from an action.
So, by the time the action is running, the global config will have been loaded,
right? Or am i missing something? Thanks
On 1 Apr 2011, at 16:12, Yohan GIARELLI wrote:
> Hi,
>
> I think the global configuration is l
Yes, I cleared the cache and removed the "Bundle" suffix for routes and
templates names for rendering. I still don't know why it doesn't find the
layout. Could it be that saying "TEMPLATE does not exists" really means that
there's an error at some place in the app?
Anyway, I didn't see the UPDATE
Looks like you beat me too it.
Did you clear app/cache? I had problems there. You also have to
change everything that has the "Bundle" suffix. It's a lot of find/
replace on all of your templates (every template that "extends"
another).
Roger
On Apr 1, 11:09 am, Roger Webb wrote:
> If you ju
If you just upgraded to PR9, the base template is now in app/Resources/
base.html.twig
https://github.com/symfony/symfony/blob/master/UPDATE.md
The upgrade from PR8 to PR9 was a bit more painful that previous
ones. Read the update document thoroughly.
Roger
On Apr 1, 9:45 am, Gustavo Adrian w
Looking at the linked exceptions it shows this at the top of the stack
trace:
1. InvalidArgumentException: The file "views/layout.html.twig" does not
exist (in: /var/www/gestion/app/Resources, ).
2. at * FileLocator ->locate * ('views/layout.html.twig',
'/var/www/myapp/app/Resources', *true*)
thi
Hi,
I think the global configuration is loaded after your event is called, so
that override your value...
Yohan g.
2011/4/1 Jonathan Franks
> I'm trying to set a flag in a doctrine listener so that a sfFilter knows
> whether to do something or not.
>
> In the listener I have...
>
> sfConfig::
I'm trying to set a flag in a doctrine listener so that a sfFilter knows
whether to do something or not.
In the listener I have...
> sfConfig::set('app_database_altered', true);
In my filter I have...
> public function execute($filterChain)
> {
> $filterChain->execute();
> var_dump (sfCon
Hi,
I have in one of my bundle's templates:
{% extends "::layout.html.twig" %}
This extended from app/views/layout.html.twig. After updating Symfony it
throws an exception:
"Unable to find template ""::layout.html.twig"". at line 0"
How should I extend now from application specific templates?
Thanks georg
it work now :)
On 1 avr, 11:27, georg wrote:
> You just change the return value of getUsername(). Instead of returning the
> user's name you return its email address
>
> public function getUsername() {
> return $this->email;
>
> }
--
If you want to report a vulnerability issue on
You just change the return value of getUsername(). Instead of returning the
user's name you return its email address
public function getUsername() {
return $this->email;
}
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received
Hi Dmitry,
What operating system do you use?
Bernhard
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email
Hi, is it possible to map a request parameter to a command paramter?
I.e. map the url /search?query=myQuery to:
class SomeSearchCommand {
function executeSearch($query) {}
}
?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You re
25 matches
Mail list logo