Hi everyone,
I have a page with a form [?], and this page actually has 2 operations
possible in it. So essentially multiple buttons are required, submit button
1 carries out function 1 of the form, submit button 2 carries out some other
task. So essentially I think the answer is 2 forms, the way
In each forms class that you define set the name format for each form
differently. For example in a forms configure() method:
$this-widgetSchema-setNameFormat('form1[%s]');
The second form give it a different name format. Then in the action that
recieves the post:
if ($request-isMethod('post'))
hello,
I need to distinguish if a model function was called within a web
request or run within a task (to avoid error thrown by
sfContext::getInstance() when executed within a taks)
thx for your help
--
If you want to report a vulnerability issue on symfony, please send it to
security at
You can check for isset($_SERVER['HTTP_HOST']) I guess,
Cheers,
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Oct 13, 2010 at 11:08 AM, axel at axel.zu...@gmail.com wrote:
hello,
I need to
works for me
thx a lot!
On 13 Okt., 11:09, Stéphane stephane.er...@gmail.com wrote:
You can check for isset($_SERVER['HTTP_HOST']) I guess,
Cheers,
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed,
You can apply this patch :
You can apply this patch, this will add extra time information about the
factory loading steps.
The patch also disable the class autoload as it slow down the dev
environnement.
On Tue, Oct 12, 2010 at 11:42 PM, ashton ahonn...@gmail.com wrote:
I am experiencing an
You are doing something wrong, models must be context independant
On Wed, Oct 13, 2010 at 11:17 AM, axel at axel.zu...@gmail.com wrote:
works for me
thx a lot!
On 13 Okt., 11:09, Stéphane stephane.er...@gmail.com wrote:
You can check for isset($_SERVER['HTTP_HOST']) I guess,
I am aware of that, but then I have to change my question:
I've got a modell with 1:n related objects and I need to change some
settings preCreate the related objects
how can I access the (new generated) objects that are created via
embedded forms in the controller action:
processForm...
execute
sfContext::createInstance($this-configuration);
in the task as the first line in execute(). I have always wondered why
this is not done by default in tasks...
Am 13.10.2010 11:08, schrieb axel at:
hello,
I need to distinguish if a model function was called within a web
request or
Hello,
Ticket #5995 http://trac.symfony-project.org/ticket/5995 added the
possibility of specifying the actions_base_class in the Doctrine admin
generator.yml file.
This works fine for *adding* new actions, as in this
-- Mensagem encaminhada --
De: Gerda Graciela Rodrigues gerd...@gmail.com
Data: 13 de outubro de 2010 09:58
Assunto: Variável de um form
Para: symfony...@googlegroups.com
Pessoal, bom dia!
Como pego uma variável de form.
Gostaria de na
protected function
On 12 Ott, 17:52, Javier Garci tirengar...@gmail.com wrote:
anyway to generate backend lists using div instead of table ?
Without modifying too much the symfony generator...
Why? Tableless is *not* an absolute value.
cheers
Massimiliano
--
If you want to report a vulnerability issue on
Not using tables for LAYOUT is a good idea. NOT using tables for displaying
tabular data is not. Leave it as it is. Tables were designed to help you
display ... well ... a table of data
On Tue, Oct 12, 2010 at 5:52 PM, Javier Garci tirengar...@gmail.com wrote:
Hi,
anyway to generate backend
Hi, i work with Symfony 2.
I have a service which use the current subdomain as a constructor
parameter, this parameter is variable, so if we go to a subdomain and
after on another subdomain, the parameter is still on the first
subdomain.
I would like to now if there's a way to disable cache
Hi Tim,
It wasn't as there was nothing stated in the online documentation about it.
After adding it to the kernel, I still receive the same error, even when
clearing the cache.
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Tim Nagel
Sent:
Hi everyone,
My website has some links ( adwords ) like this:
http://www.example.com/?gclid=CMi22_C20KQCFdFO2god7lcTDE
r...@host:/# ls
/home/site/cache/frontend/prod/template/www_site_com/all/supplier/presentation/gclid/
Display all 4210 possibilities? (y or n)
CI-14ML1w6QCFUFl7Aodq0nlEQ/
Did you put the good parameters in your factories.yml ?
dev:
mailer:
param:
delivery_strategy: none
transport:
class: Swift_NullTransport
On 12 oct, 07:25, bzarzuela bzarzu...@gmail.com wrote:
A simple call to $mailer-composeAndSend is driving me nuts.
public
Did you try to instanciate the sfClearCacheTask and run it ? I see no reason
for this not to work.
$ccTask = new sfClearCacheTask();
$ccTask-run();
--
Pierre-Yves LEBECQ
2010/10/12 Sela Yair tzi...@gmail.com
is there a single command in sfConfigCache to clear all the cache?
i want to
Hello list,
I'm testing sfDoctrineRestGeneratorPlugin and I got some problems to
test the webservices.
It works perfectly fine with GET and DELETE using
curl -X GET http://localhost/webservices_dev.php/Test.json
and
curl -i -H Accept: application/json -X DELETE
Hello,
I'm sorry, I guess the answer to my question is quite simple but i
can't seem to be able to find it out. My keywords for describing the
problem are too general, so my searches don't give anything !
My problem is this one :
How to link an input whose name is
I would go in a very simple way :
In your model class Profile, you could add a method which retrieves the PDO
connection from doctrine and query the user table directly. It could look
like this :
class Profile extends BaseProfile
{
public function getUser()
{
$dbh =
Hello, all.
I have 2 questions:
1. How I can disable routing cache in dev modules?
2. How I can see that components loading from cache as symfony 1.x?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because
Hello list,
I'm testing sfDoctrineRestGeneratorPlugin and I got some problems to test
the webservices.
It works perfectly fine with GET and DELETE
but I supposed I miss something with POST and PUT methods (maybe
understanding of REST...) because I only retrieve a 406 error.
My table structure is
I don't think that's possible. symfony cannot know which module the slug
belongs to when there is no difference between the slugs except the slug
itself.
But maybe there is a solution that I don’t know, I am quite new to symfony.
Maybe it is possible to find out, which class belongs to the slug
In Jobeet tutorial : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10
There is an example in Job Activation and Publication
Regards,
Maciej Aleksandrowicz
2010/10/12 guiguiboy guillaume.bre...@gmail.com
As Christopher Schnell said, you have to use flash messages.
Guillaume B.
On
can u post your solution to help others pls?
--
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 to
Hi Guys,
I am not able to install symfony 1.0.17 through pear channel. and
getting the below Msg
--
r...@brijjsetup3:/usr/local/php/bin# pear install
No, sfGuardPlugin, disallow apply permissions to database records, but
you make do self permission management for you tables/records.
On 13 окт, 03:58, Dennis Gearon gear...@sbcglobal.net wrote:
Not sure if this is the right place to ask this, let me know if not.
From what I remember about
Hello,
I have a schema with a nested set behaviour likes this:
MName:
columns:
name: { type: string(45)}
MValue:
actAs:
NestedSet:
hasManyRoots: true
rootColumnName: root_id
columns:
value: { type: string(45) }
mname_id: { type: integer }
relations:
MName:
Hi,
I'm developing an application with symfony 1.4, and it needs to be
translated in three languages. But the translations doen't works.
I set frontend/config/settings.yml
all:
.settings.
# I18n activado
i18n: true
# cultura predeterminada
default_culture: es
#
- form uses embedRelations to embedd relation that already uses
embedRelations
- considerNewFormEmptyFields is set for embedRelations in inner form
- inner form works when is used for itself
- inner embedded relations do not pass validation when form that hold
those is embedded in other form
In short, you can't because nested embedded relations with my plugin are
impossible, sorry. I'm also sorry to tell you that I won't have time to
implement it because the code was not made with this use-case in mind.
May I suggest that you take a look at this instead (developed by one of
thank you for your quick response, I will look at sugessted plugin.
On Oct 13, 9:39 pm, Daniel Lohse annismcken...@googlemail.com wrote:
In short, you can't because nested embedded relations with my plugin are
impossible, sorry. I'm also sorry to tell you that I won't have time to
implement
Hi,
i tried to reproduce the form example from the docs:
$form = new Form('customer', $customer, $this-container-
getValidatorService());
$form-add(new TextField('name'));
$form-add(new IntegerField('age'));
But even if i add the use-instructions i'
use
Hi,
Try to override the doUpdateObject() method in your form. It receives
the values of the form as parameter and is responsible for saving them
in $this-object (your record).
protected function doUpdateObject($values)
{
parent::doUpdateObject($values);
$this-object-from_city_name =
tHANKS Gareth!!!
On Wed, Oct 13, 2010 at 12:08 AM, Gareth McCumskey gmccums...@gmail.comwrote:
In each forms class that you define set the name format for each form
differently. For example in a forms configure() method:
$this-widgetSchema-setNameFormat('form1[%s]');
The second form give
Hi!
In Symfony 1.x you can access the request object from a template. With this
object you can know which module / action was executed so, for example, you
can mark a link of the navbar as selected to show the user in which
section he is.
How can I do this on Symfony 2? is there a way to do this
Ooops, I've just found one line in the docs that answers just this XD.. I've
read it twice and just now found it: $view[ 'request' ].
What I don't know now is how to retrieve the module and the action from the
request? On Symfony 1.x it was $sf_request-getParameter( 'module' ) /
Hi, how work sfErrorNotifierPlugin
in the README file
* In the file /plugins/sfErrorNotifierPlugin/config/app.yml, set
the email address(es) to deliver the notifications to, for the
environments you want to enable (tipically only 'prod').
You can comma-separate multiple recipients.
{{{
39 matches
Mail list logo