Hi colin,
You could also move your component logic into another class wich is in
your sf_root_dir/lib
and then make your components in both frontend and backend inherit
from this class instead of sfComponent.
Hope you understand what I try to explain ?
Cheers,
Florian
On 16 jan, 19:10, Colin
Le 18 janv. 2010 à 08:43, Alexandru-Emil Lupu a écrit :
Check here:
http://www.symfony-project.org/book/1_2/12-Caching
Some of the things that can be found in 1.2 are still valable in sf 1.4
Ok, but I don't see how slots can help for my purpose.
I need to store 2 versions of a same
I just left it as downloaded. Nowhere in the manual sayd to customize
it, at least i didn't saw it. Please tell me if i have to modify
anything, thanks ;)
!-- apps/frontend/templates/layout.php --
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Hi everyone !
I would like to confirm a username and password in a form (have 2
widget for the username, and 2 for the password, and test the
equality):
$this-useFields(array('username', 'password',
'profession_id'));
$this-widgetSchema['confirmation_username']
Ok there are lot of solutions, buf does sfForm have a method to this ?
On 15 jan, 14:39, Tom Ptacnik to...@tomor.cz wrote:
If you want to clear the form after it's proccessed, you can simply do
redirect to the same form (in the action)
On 15 led, 12:23,DoRiaNdoria...@gmail.com wrote:
Hi there!
Can anyone please tell me how can I create a new column of type enum
to implement a Doctrine Migration?
Thanks in advance,
Best regards
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Hi,
What i mean is, in a form we can define the labels for a field name in
the form class, but on the showSucess we can't do it. We need write
always the field names manual? Doesn't exist anything similiar to
renderLabel() from forms?
Instead of:
table
tbody
tr
thId:/th
td?php
Hi,
i've just installed sfLightboxPlugin in sf 1.2.10 through:
symfony plugin:install sfLightboxPlugin
symfony plugin:publish-assets
symfony cc
Then i wrote this code (i copied it from sfLighboxplugin Readme):
?php use_helper('Lightbox'); ?
?php
// Modal Lightbox plugin test
$link_options =
Hi,
i've just installed sfLightboxPlugin in sf 1.2.10 through:
symfony plugin:install sfLightboxPlugin
symfony plugin:publish-assets
symfony cc
Then i wrote this code (i copied it from sfLighboxplugin Readme):
?php use_helper('Lightbox'); ?
?php
// Modal Lightbox plugin test
$link_options =
It doesn't have. And it is highly advisable that a redirect is
executed after a form is processed. The only time no redirection will
happen is if the form is invalid.
On Jan 18, 7:02 pm, DoRiaN doria...@gmail.com wrote:
Ok there are lot of solutions, buf does sfForm have a method to this ?
On
On 18 Gen, 10:05, Nicolas CHARLOT nicolas.char...@gmail.com wrote:
I need to store 2 versions of a same action depending on user status
(authenticated and member or not).
The solution I founded was to write my own viewCacheManager:
It works but all actions are cached twice and it's not
Is there a way to save embedded Forms one by one???
I need to do this to fully fill my systems requirements...
Thanks!!!
--
Germana Oliveira
germanaoliveirab arroba gmail punto com
http://626f67.wordpress.com
http://slcarabobo.wordpress.com
--
You received this message because you are
Hi,
If you need to change those labels frequently, maybe you should
store them on the database:
Lead:
columns:
id: ...
id_label: ...
name: ...
name_label: ...
So that you can do something like this:
...
th?php echo $leads-getIdLabel() ?/th
td?php echo $leads-getId() ?/td
...
Override
public function saveEmbeddedForms($con = null, $forms = null).
I also suggest that you investigate about sfValidatorSchema, it helps
a lot processing just any kind requirement that you may have. I'm just
not sure if a merged post validator of a subform is actually taken
into account by
You can probably set up a filter to check for settings in cache.yml.
like add a boolean setting but you will also need to override
sfCacheConfigHandler to persist the setting into the cache.
On Jan 18, 8:57 pm, Massimiliano Arione garak...@gmail.com wrote:
On 18 Gen, 10:05, Nicolas CHARLOT
i already overrride my saveEmbeddedForms, but i think i will have to do it
deeper
coz i need to control which embeddedForm it's saving
The problem is that i have a 'special' required data in one of the
embeddedForm that needs to use a method, but this have to be done by the
system not by the
We just embedded facebook connect into our symfony framework project,
if you have facebook account, can you please help to use it so that we
can accumulate users and be accepted into facebook application
directory?
You just need to click following two links AFTER login into your
facebook account.
Le 18 janv. 2010 à 13:57, Massimiliano Arione a écrit :
Nicholas, IMHO your solution is good.
I don't know any other solution for a such problem.
Why do you say that a double cache is not necessary? Indeed, it's
exactly what you need!
Most of my actions are identical for members and
Well I managed to work out the answer myself. So if anyone else is
interested, here it is:
$routes = sfContext::getInstance()-getRouting()-getRoutes();
$raw_url = $routes['email_show']-getPattern();
On Jan 15, 9:34 am, Donald chekot...@gmail.com wrote:
I am trying to better integrate a
I have the following in my schema.yml
pre
MailMessage:
connection: doctrine
tableName: mail_message
columns:
name:
type: string(120)
fixed: false
unsigned: false
primary: true
autoincrement: false
priority:
type: integer(2)
fixed: false
On Mon, 18 Jan 2010, Nicolas CHARLOT wrote:
I need to store 2 versions of a same action depending on user status
(authenticated and member or not).
The solution I founded was to write my own viewCacheManager:
It works but all actions are cached twice and it's not necessary. I'm looking
Thanks for the help Filippo.
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more
Hello (i'm french excuse me for my englise),
Is it possible to execute setPostValidator() only if others validators
are valids ?
Thanks,
Dorian
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
If you are using symfony 1.3/1.4 you can add it to your schema.yml and
use the doctrine:generate-migrations-diff task.
config/doctrine/schema.yml
[code]
columns:
...
my_column:
type: enum
values: [SomeValue, SomeOtherValue]
default: SomeValue
...
[/code]
If you are using
Hello all,
I have a Doctrine table called Comment which has a field called
is_published and as I have different type of users I don want my
basic users see my is_published widget. But I can not unset this
widget from a controller where I can check the credentials, on the
other hand in a form, I
I had this problem before, you will have to take the user object and
pass it to the form class and check the credentials and then unset the
widget there. If there is no user object you will have to unset it.
On Jan 18, 9:25 am, Ahsanul ahsanu...@gmail.com wrote:
Hello all,
I have a Doctrine
Hello all, my customer model currently defaults to sorting by id asc.
How do I change it to default to sort by name asc?
Thanks,
Darren
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
In the call to light_modallink you need to point to the module action
that will return the contents of the lightbox...
i.e. rather than 'sfLightboxPlugin/modal' you might have
'myModule/index' or whatever other action returns the information you
want to display.
Regards,
Marti
2010/1/18 Javier
Look here: http://trac.symfony-project.org/ticket/5389
It's not so easy...
Cheers, Daniel
On 18.01.2010, at 16:44, DoRiaN wrote:
Hello (i'm french excuse me for my englise),
Is it possible to execute setPostValidator() only if others validators
are valids ?
Thanks,
Dorian
--
You
Why not just a javascript library for a lightbox instead of using a
Symfony module?
On Jan 18, 10:19 am, Martin Settle martin.set...@gmail.com wrote:
In the call to light_modallink you need to point to the module action
that will return the contents of the lightbox...
i.e. rather than
I have a form for the employees department and it has the information
on the employee, including the password. The problem is I do not want
the employee to have to re-enter their password every time they fill
out the form, so if the form is blank it would maintain the same
password. Is this
You can pass the sfUser instance as an option of the form or sub class
the form so you can switch form class in the controller based on user
credentials.
On Jan 19, 1:29 am, Darren884 darren...@gmail.com wrote:
I had this problem before, you will have to take the user object and
pass it to the
In the past, when not using sfGuardDoctrineUser I have usually made a
different reset password page, seperate from the rest of the user
form.
Ashton
On Jan 18, 2010, at 16:31, Darren884 darren...@gmail.com wrote:
I have a form for the employees department and it has the information
on the
Oh..! Thank you all for the solutions. Ya. My team-leader did the same
in his case but I thought as my Forms should not know who the current
user is and there might be a better way to do it in a better way...!
No probs.. will go with your solution now :-)
~Cheerz~
On Jan 19, 8:13 am, ken
34 matches
Mail list logo