Hello,
is it possible to handle multiple db connections with symfony2?
Is there a guide for this question?
thanks for any answer.
--
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
Hello,
what about initializing your custom controller class.
Is it suitable to overrite the __constructor of the inherited class
Symfony\Framework\FoundationBundle\Controller, and there to call the
parent constructor?
Are there similar to the Zend Framework init(), preDispatch() and
Hi Fabian,
I am new to Symfony2 and evaluating the framework.
I checked out the svn repository today, and I did download the sandbox
and the noelg-symfony-demo-7955c53.
I do miss a file with a version number.
sandbox and noelg-sf-demo differ from the svn (2010-08-18) but nowhere
a version to be
Daniel,
Thank for you help, I send you the email.
And here my form:
$this-setWidget('intitule', new sfWidgetFormTextarea(array(),
array('cols' = '40')));
$this-setWidget('activites_list', new
sfWidgetFormSelectDoubleList(array(
'choices' =
Thanks for your reply. I've read the documentation which states:
If you want to redirect the user to his profile after a success login
or define a logout site. You can change the redirect values in
app.yml:
all:
sf_guard_plugin:
success_signin_url: @my_route?param=value #
Hi,
I would like to unsuscribe from emails sent for the digest for symfony
because i have no time to read it.
Thank you
--
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
Hello,
I have changed some things in the schema.yml
and cleared cache ( both symfony cache:clear and symfony cc :-D )
I've rebuilt the model, I've done symfony doctrine:build --sql
yet the same database is recreated, (deleted tables are back every time...)
What am I missing?
--
If you want
There must be your old class in lib/form lib/model/ lib/filters...
I had the same problem, and it seems like symfony uses you schema.yml
but also base files in these directories.
Delete them, rebuild everything and it should be ok!
Jérémie
Le jeudi 19 août 2010 à 10:34 +0200, KEY5 a écrit :
Look at the doctrine:clean-model-files task
Cheers,
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Thu, Aug 19, 2010 at 11:41 AM, Jérémie jeremie.symf...@gmail.com wrote:
There must be your old class in
./symfony doctrine:clean-model-files
On Thu, Aug 19, 2010 at 10:34, KEY5 key5...@gmail.com wrote:
Hello,
I have changed some things in the schema.yml
and cleared cache ( both symfony cache:clear and symfony cc :-D )
I've rebuilt the model, I've done symfony doctrine:build --sql
yet the
are you sure, that your predecessor didn't make any changes to the plugin
itself? Shouldn't have, but you never know.
AFAIK the referrer is used, if you got logged out due to a timeout.
Regards,
Christopher.
-Ursprüngliche Nachricht-
Von: symfony-users@googlegroups.com
Hi,
I'm quite new to Symfony. I have something strange with routing.
My apps/frontend/config/routing.yaml contain this
homepage:
url: /
param: { module: content, action: index }
default_index:
url: /:module
param: { action: index }
default:
url: /:module/:action/*
If i open
Hi,
Clear your cache.
I would presume that is the problem.
The dev environment is using the new route as it clears the cache on
every request.
But your production environment is using the cache as it hasn't been
cleared manually.
Chris
On Aug 19, 11:25 am, torok84 toro...@gmail.com wrote:
Please?
Am 18.08.2010 15:22, schrieb Georg:
Hello,
I am confused. I would like to send emails with layout and template from
any place in my project, application or task.
Reading the docs
(http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails), it
tells me to put each email in
On 8/19/10 8:51 AM, symfony.reloa...@googlemail.com wrote:
Hello,
what about initializing your custom controller class.
Is it suitable to overrite the __constructor of the inherited class
Symfony\Framework\FoundationBundle\Controller, and there to call the
parent constructor?
You can inherit
Oups, it was not CanardCategorieForm, this is it :
unset(
$this['created_at'], $this['updated_at'],
$this['canard_groupe_list']
);
$this-setWidget('description', new sfWidgetFormTextarea(array(),
array('size' = '20x5')));
$this-setWidget('vol_id', new
To clarify this, the cache he means is the symfony application cache. On the
command line in your project root directory type symfony cc
On Thu, Aug 19, 2010 at 12:43 PM, catchamonkey ch...@sedlmayr.co.uk wrote:
Hi,
Clear your cache.
I would presume that is the problem.
The dev
Hi,
I have a one-to-one relation in with sfGuardUser. As I want to have a
clean code, i'd like to override save() in lib/model/doctrine/
sfDoctrineGuardPlugin/sfGuardUser.class.php to create a new row in
the other table of the relation each time the save function is
called.
Things is that the new
Beste,
Donderdag 19 tot en met maandag 23 augustus ben ik niet aanwezig op kantoor.
U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees:
dimi...@freshheads.com of 013 5448761.
Met vriendelijke groet,
Joost Farla
joost.fa...@freshheads.com
- -
freshheads grafisch
do symfony clear-cache
On 19 авг, 17:25, torok84 toro...@gmail.com wrote:
Hi,
I'm quite new to Symfony. I have something strange with routing.
My apps/frontend/config/routing.yaml contain this
homepage:
url: /
param: { module: content, action: index }
default_index:
url:
On 19 Ago, 05:14, Maxim Oleinik maxim.olei...@gmail.com wrote:
protected function authenticateUser(sfGuardUser $user)
{
// Init session
$context = $this-browser-getContext(true);
$context-getUser()-signIn($user);
$context-getUser()-shutdown();
Thanks, it worked.
On Aug 19, 1:22 pm, Gareth McCumskey gmccums...@gmail.com wrote:
To clarify this, the cache he means is the symfony application cache. On the
command line in your project root directory type symfony cc
On Thu, Aug 19, 2010 at 12:43 PM, catchamonkey ch...@sedlmayr.co.uk
You are talking about functional tests, but the original post was about unit
tests.
Regards,
Christopher.
-Ursprüngliche Nachricht-
Von: symfony-users@googlegroups.com [mailto:symfony-
us...@googlegroups.com] Im Auftrag von Massimiliano Arione
Gesendet: Donnerstag, 19. August 2010
Hi all,
I'm having trouble with the doctrine query cache in combination with
pagers. I have a query with some inner and left joins that I use with
a pager. The pager then creates a subquery to get the right amount of
rows from the db:
SELECT * FROM table1 c LEFT JOIN table2 c2 ON c.id = c2.id
Hi everyone !
I am new and I've tried to learn from jobeet and askeet tutorials.
I've managed to create a app and finally I've tried to place it online
for my boss.
Problem is that the production server is a windows 2003 with IIS.
I've checkout there symfony version 1.4.0 (C:\symfony\lib)
and
I'm trying to make the admin able to sign out a user when he flags
them from the backend while using SfDoctrineGuardPlugin. I thought I
got the filter class down:
public function execute($filterChain)
{
// Use context object since filters don't have direct access to
request or user
For the history, found it eventually. It was the same foreignAlias in
the Book table:
foreignAlias: Books
--
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
Hi!
I have a doctrine model like this:
Asset:
columns:
filename: { type: string(255), notnull: false, unique: true }
filesize: { type: integer, notnull: true }
In the saving process I want to check if the user has left the
filename empty. In that case i want to set the filename with
El 19/08/2010 15:55, Alexis Sanchez escribió:
Hi!
I have a doctrine model like this:
Asset:
columns:
filename: { type: string(255), notnull: false, unique: true }
filesize: { type: integer, notnull: true }
In the saving process I want to check if the user has left the
filename
You can use triggers 'before insert, update' over the table for do that.
'AFTER INSERT, UPDATE' I mean.
--
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
include_partial(headline_news);
How can I do this with partial _headline_news.php inside a folder
within templates? If I try something like
project_root/apps/frontend/modules/some_module/templates/folder/
_headline_news.php
Then in the template index
include_partial(folder/headline_news);
The
Why don't you give it just a random name?
Am 19.08.2010 21:55, schrieb Alexis Sanchez:
Hi!
I have a doctrine model like this:
Asset:
columns:
filename: { type: string(255), notnull: false, unique: true }
filesize: { type: integer, notnull: true }
In the saving process I
Hi,
I quiet like to use the dispatcher to send email.
The listener will build the email.
For the layout, I only use partial -renderPartial(), that can act as a
layout because you can
include other partial/component in a partial.
Maybe with sfView or sfPHPView there is a way to render a complete
Hi,
I got an app where I have set is_secure:true in app/admin/config/
security.yml. For those modules I want to have public access to, I
then change the setting in the module/someModule/config/security.yml
file.
But, now I got a problem, because I have integrated a symfony plugin,
and in that
If you have unique = true and notnull = true then you have to assign a
unique filename before you save the object, or you would have an exception.
The better way would be to just assign a random name, as Georg says. If you
really need the ID on the name, then first assign a random name and, after
I forgot to mention: The exception would be thrown if you attempt to insert
(or update) a second object with an empty filename (having a nullable field
you could insert as many objects as you want with NULL assigned to that
field)
On Thu, Aug 19, 2010 at 7:08 PM, Gustavo Adrian
I created a class for UserSecurity which extends the Symfony\Components
\HttpFoundation\Session. Then i use $this-session-
setAttribute('isAuthenticated', true); to tell the code that the user
is logged-in. but it doesn't store it in the session. Any ideas why?
do I have to run something after I
Hi,
I have made a custom form which extends sfForm. The responses from the
form are to be stored in a third party CRM database via a web service;
they have no connection to the local database or an object in
schema.yml.
I need to send those values through when the form is saved and valid;
but
When I'm in the i18n form class (example: PageI18nForm.class.php), how
can I see for which culture it is?
Because in the PageForm.class.php, the PageI18nForm.class.php is
called for each culture I embed it for. So, I need to retrieve that in
the i18n form itself.
--
If you want to report a
I would create a custom form class that extends from sfForm (sfFormCRM for
example) and put there all the saving logic of the form. Then it would be a
nice idea to have a BaseFormCRM that inherits from your sfFormCRM to have a
place to put common application logic between your CRM forms without
40 matches
Mail list logo