Hello Cristophe!
Thanks for the hint, it was very useful! I managed to pass some of the
object's variables from the Form Class to the Validator Class through its
constructor. It works just fine:
// in the form class
$this-mergePostValidator(
new
hi Arrann,
please describe the problem you encounter otherwise when read your post
can't understand how to help. did you read the jobeet book? there is
explanation how to modify the settings.
Sela
On 6 April 2010 12:53, Azda a...@pixelperfectmedia.co.uk wrote:
Hi all,
Right - to put it
I have to build a function to find out data with same name, how can I
use lucene to do this? I use ::getLuceneIndex()-find($query) to
find similar items, but now I need a strict filter to get the
exactly same things.
thanks for helping.
yours Joe
--
If you want to report a vulnerability
hello i cant double the user because it must be one but for the
username et password i put exactly i m sure
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
Hi everybody.
When you save an object in your backend application, Doctrine gracefully
flashes a message like 'the object has been successfully saved'. Same
thing with newly created objects, deleted objects etc.
I would like to change these messages (actually, my client is a french
speaker
hello,
i have parsed a xml from a string with the simplexml_load_string()
function
but now i want to show a save file dialog so the user can download the
xml file
but how do i have to do this?
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Hi,
I have only just got down to looking this, have you had any progress?
I have written permissions systems fine in the past but not sure of
the best way of doing the checking in symfony and making best use of
sfGuard or something.
I've done full object, action, group, user permissions in the
when create the project there are two php file in the web directory:
frontend_dev.php and index.php
in index.php I find this ' $configuration =
ProjectConfiguration::getApplicationConfiguration('frontend', 'prod',
false);'
when i visit .localhost/frontend_dev.php I can use the route.yml
In this doc page chapter
6http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_alternative_action_class_syntaxare
an alternative way to write action: one per file.
I think this isn't the best solution. I can add a new deep level in the
route and use the parameter
I have a problem with a big application what we are writing under
symfony.
It's our first contact with this fantastic framework, but we have a
lot of code in a single action file. Our modules are big, with three
crud:
Like company has employers, groups and customers.
All in a application.
I
Hi,
sfGuardPermission in symfony+doctrine (via sfDoctrineGuardPlugin) is used to
manage credentials per module-action against an user.
Let say you have an object action named edit (object action != module
action), you'll have a module action named executeEdit, here you can't put
in security.yml
try
$variable-getRawValue()
cheers
Massimiliano
On 7 Apr, 06:07, Apul Gupta apulmca...@gmail.com wrote:
No rekarnar,
still it doesn't Work. Any other suggestion?
I am getting this in browsers:
==
stronga title=title
Hi,
im getting this error:
Fatal error: Class 'ValidatorPasswordActual' not found in
/opt/lampp/htdocs/rs/lib/form/cambiarPasswordForm.class.php on line /21/
This is the line 21:
$this-validatorSchema-setPostValidator(new sfValidatorAnd(array(new
ValidatorPasswordActual(),
And this is
Hi Christophe,
You can define those messages in the french dictionary
sf_admin.xml (in apps/MY_APP/i18n/fr/).
FYI: Those messages are outputted using the I18N (__()) helper. You
can check admin/templates/templates/_flashes:
echo __($sf_user-getFlash('notice'), array(), 'sf_admin')
Also, Make
Too many actions are often a sign of code duplication and/or shortcomings in
separation of concerns. You want fat models and slim controllers. Your
controller is either doing too much or you are putting actions into modules
where they don't belong or fit.
Care to share all your action names
Where did you store that validator class?
Daniel
On 07.04.2010, at 15:41, Javier Garcia wrote:
Hi,
im getting this error:
Fatal error: Class 'ValidatorPasswordActual' not found in
/opt/lampp/htdocs/rs/lib/form/cambiarPasswordForm.class.php on line 21
This is the line 21:
hello,
to disable a checkbox in a form for certain users I use:
if (!user-mayXY() {
$this-widgetSchema['active'] = new
sfWidgetFormInputCheckbox(array(), array('disabled' = 'disabled'));
}
to disable editing of the checkbox but still displaying the current
setting.
the problem is that symfony
This is my problem!
I need a third deep level to keep a good design.
like:
company/customer/new
but in the symfony structure company is not a application. It's
authentication, credentials, user etc are common.
I also have:
calendar/tasks/view/5
A beautifully solution maybe is:
company/
Hi,
like:
company/customer/new
Is this a route or a module/action breakdown ?
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Apr 7, 2010 at 4:15 PM, Welington Veiga
welington.ve...@gmail.comwrote:
You have to set the http headers. Unfortunately I don't have an example at
hand, but this should get you started.
Don't forget to turn off layout.
Regards,
Christopher.
-Ursprüngliche Nachricht-
Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
Im Auftrag von
well...
if I use the routing:
myRoute:
url: company/:module/:action/*
I can use all modules in this pattern, but I want use just three [employers,
customers, group] inside company.
Its Possible? How can I configure this?
2010/4/7 Stéphane stephane.er...@gmail.com
Hi,
like:
try something like:
myRoute:
url: company/:module/:action/*
requirements: { module: employers|customers|group }
requirements is a pcre regex.
On Apr 7, 2010, at 10:35 AM, Welington Veiga wrote:
well...
if I use the routing:
myRoute:
url: company/:module/:action/*
I can use all
Thak you!
It was very usefull!
Other solution is implement a subclass of sfActions and in preExecute()
method instanciate another sfActions class, configuring it... etc
But it is reivent the wheel and loss o lot of pre-configurated issues in
symfony structure.
'routing' sounds better.
Hi,
Let me explain my problem.
My challenge (in fact, thanks to my client...) is to create a
application based on symfony.
It has multiple databases. One master, for the application, and
others, for reference tables.
I know that in symfony, I can enumerate multiple databases in the
databases.yml.
I have here a crud with two options: active and inactive.
The idea is when the user click on the icon, change the value of field to 0
or 1, true or false.
I have tried everything but i couln´t actualize the field.
The commented lines show my frustrated tries.
The View:
?php echo
without knowing more about what you're trying to do, routing appears to be the
proper approach to what you're trying to do. there is no reason to instantiate
actions from inside an action (that's what forward() is for anyways).
On Apr 7, 2010, at 10:54 AM, Welington Veiga wrote:
Thak you!
Hi,
If you use the normal form ({$model}Form) and no forwardUnless etc, does it
works ?
In such a case, this kind of action is pretty simple:
In fact you want something to toggle the active state. From 1-0 and from
0-1...
public function executeToggleActivate($request)
{
Clear your cache.
On Wed, Apr 7, 2010 at 13:52, Lee Joseph name.liz...@gmail.com wrote:
when create the project there are two php file in the web directory:
frontend_dev.php and index.php
in index.php I find this ' $configuration =
It gets overwritten because browsers do not send disabled inputs'
values, just like when a checkbox is not checked. Therefore symfony
interprets it as a false.
Overwrite the forms doBind() method, to set the fields current value
in the input (tainted) array.
On Wed, Apr 7, 2010 at 16:13, axel at
Inside a folder that i created called /lib/validator.
Javi
On 04/07/2010 04:01 PM, Daniel Lohse wrote:
Where did you store that validator class?
Daniel
On 07.04.2010, at 15:41, Javier Garcia wrote:
Hi,
im getting this error:
Fatal error: Class 'ValidatorPasswordActual' not found in
$this-getReponse()-setHeader('Content-type', $documentMIMEType);
in your action ($this is instance of sfActions)
http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttpheader
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre
The filename must ends with .class.php
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Apr 7, 2010 at 5:35 PM, Javier Garcia tirengar...@gmail.com wrote:
Inside a folder that i created called
Bonsoir à tous,
je recherche un livre simple pour me lancer dans l'apprentissage de symfony.
Merci à tous.
--
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
It´s work!
Here, the solution:
In the view:
?php echo link_to('Atualizar',
'EventsEvents/ToggleActivate?id='.$events_events-getId(), array('method' =
'post', 'class' = 'bt-'.$suf.'active')) ?
In the action:
public function executeToggleActivate($request)
{
I follow the instruction in this blog:
http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/
So i have this in my code:
1. Actions
public function executeSearch(sfWebRequest $request)
{
$this-form = new DenunciaFormFilter();
$this-setTemplate('search');
}
public
You welcome !
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Apr 7, 2010 at 6:08 PM, Jorge Krug mercu...@gmail.com wrote:
It´s work!
Here, the solution:
In the view:
?php echo
And, to be fair and balanced, the propel version:
http://www.propelorm.org/wiki/Documentation/1.5/Relationships
And yes, you'll an intermediate table that links products and
categories together. both columns (product_id, category_id) should be
set to primaryKey: true.
Both ORM's make it pretty
No problem if i store it inside lib/ folder instead of lib/validator.
Is there any way to store it in lib/validator without problems? I feel
more comfortable if i store the validators inside a folder called
'validator'.
Javi
On 04/07/2010 05:46 PM, Stéphane wrote:
The filename must ends
In your case it's a good to use web services to abstract database
model B as you know it'll be modified soon.
Where I disagree is putting all on the same SF project, you should
separate your app in 2 parts :
- The main project, embedding A database models and acting as web
service consumer
Ideally you end up with one module per entity (customer, task,
whatever it is) and use the routing to compose the visible structure
of the app. Every other hack would be much harder to scale or change
if you need to change your visible structure at some point.
Daniel
On Apr 7, 8:00 am, Jacob
en irc.freenode.net en #symfon-es
Saludos.
On Mon, Apr 5, 2010 at 8:31 AM, Javier Garcia tirengar...@gmail.com wrote:
Hola,
solo eso.
Javi
Ubuntu 8.04
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
Greetings all --
I'm stumbling a bit here. I want to have checkboxes for the user to
mark N days of the week to schedule an event in the AdminGenerator ...
I have the following Schedule schema. Currently for a frontend form
using sfWidgetFormChoice(Doctrine::getTable('Day')-findAll())
Hello I have read the chapter with closer attention and solved my
first problem.
Now i have another problem :)
using the subform symphony saves first the father form and them the
children forms is there a way to do this the opposite? First save
the children forms ?
This is because a want to have
Hi there,
I'm working on an ecommerce site that will eventually have an
affiliates programme that will work like so:
* There will be several affiliates.
* Each affiliate will be able to 'skin' the site by adding their own
css stylsheet.
* For each purchase on the website the affiliate
I solved my problem with this: http://trac.symfony-project.org/ticket/5867
Att,
Pedro Casado
On Wed, Apr 7, 2010 at 1:03 AM, Pedro Casado pdr...@gmail.com wrote:
Patter, can you show me your removeEmbedded ?
Thanks
Att,
Pedro Casado
On Thu, Mar 5, 2009 at 7:49 PM, isleshocky77
45 matches
Mail list logo