You attach your decorator class to your form, e.g.:
class yourForm extends sfForm
{
function configure()
{
/* configure your fields */
$decorator = new yourFormFormatter($this-widgetSchema);
$this-widgetSchema-addFormFormatter('custom', $decorator);
On 2/23/10 7:40 AM, Gareth McCumskey wrote:
Hi Fabien,
Thanks for the response, its really appreciated. And its good to know
that this will at least be looked at :). I do understand that not
everything will be automated,but just as a baseline, with no
automation, our current symfony 1.x project
Well just to conclude this, I saw an example on one of the symfony
docs about overwriting the formatRow method.
Firstly, my big thanks to you Sid as I would not have gotten this far
without your help the community again has come to the rescue.
Now for anyone that may find this useful in
I think this entire process will make an interesting blog post which
I'll do later today
On Tue, Feb 23, 2010 at 10:20 AM, Gareth McCumskey gmccums...@gmail.com wrote:
Well just to conclude this, I saw an example on one of the symfony
docs about overwriting the formatRow method.
Firstly, my
and I know the names can cause some giggles but hey :P
LOL ... so ... any interesting website project lately? :P
Happy coding and bye for now.
On Tue, Feb 23, 2010 at 9:20 PM, Gareth McCumskey gmccums...@gmail.com wrote:
Well just to conclude this, I saw an example on one of the symfony
docs
I hate to say it, because it means a lot of work for me too, but BC
kills innovation. As Symfony 2 already introduce some new (core)
concepts, it shouldn't change the course because of BC. I mean, it'll
be a difficult migration from symfony 1 anyway.
Oh, and i didn't mentioned Doctrine 2 :o)
JSON isn't supported in PHP until 5.2 and was developed specifically
for JavaScript (JavaScript Object Notation). Serialize is a built-in
PHP function made for PHP, so its better generally to use that if
you're coding in PHP :P.
Agreed, potatoes potatoes, but often better to use what was built
Sounds Like Matthias is volunteering to prototype something like that :-)
Do not worry about the work needed to upgrade.
Look at this: If you started with symfony 1.0, then with just minor
work you got a supported platform for 4 years
With a bit more you got it for 6 years.
And you can use
End of support does not mean end of life. And keep in mind that for
urgend security issues we will backport patches even to unsupported
versions. So we will keep you covered in case of critical bugs.
Now THAT is what we wanted to hear :D. As long as we are protected in
the future from serious
Oh, i can see something happening here ;o)
http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933
Michael
On 22 Feb., 14:04, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
hehe, good catch ;)
To avoid downloading all the debug toolbar information in
Oh, i can see something happening here ;o)
http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933
Michael
On 22 Feb., 14:04, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
hehe, good catch ;)
To avoid downloading all the debug toolbar information in
Oh, i can see something happening here ;o)
http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933
Michael
On 22 Feb., 14:04, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
On 2/20/10 11:03 AM, michael.pie...@googlemail.com wrote:
hehe, good catch ;)
Nothing? What good is the installer if I can't add / build plugins
with it..?
Daniel
On Feb 22, 1:44 pm, Richtermeister nex...@gmail.com wrote:
Hi all,
I'm playing with the new installer script functionality, and so far
things work great, except for one issue:
At one point in my script I
Hello,
I use the sfAdminThemejRollerPlugin with symfony 1.2.9. It's a great
plugin but i can't edit a line in my admin generator. If i click on
the edit button, i have:
Fatal error: Call to undefined method
courrierGeneratorConfiguration::getForm() in D:\developpement
Hi!
I'm completely lost about ajax and javascript.
I have to forms (enterprise and category).
I want a button in the enterprise form that makes a new window or
popup with a category form.
I would be greatful if anybody could show me how this can be done.
I'm completely lost.
Here is what I did:
There are so much documentation of what you want to do
On 22 ún, 20:49, Diego Bello dbe...@gmail.com wrote:
Hi guys,
Is there any documentation about how to use forms in symfony 1.4?.
What I want to do is to change a field from text input to select.
I tried rewritting the form putting
Hello
Is it possible to define a custom sfFileLogger() in factories.yml that works
completely independend from the standard frontend.log? It should be accessed
like e.g. sfContext::getLogger(myAppLog)-info(remember that);
Just that getLogger() does not take an argument and I'm probably trying it
Hi,
i have a problem. I'm using this tutorial
http://www.symfony-project.org/forms/1_1/en/02-Form-Validation to file
upload, but it gives me this error:
Fatal error: Call to a member function getOriginalName() on a non-
object in C:\sfyproject\apps\frontend\modules\people\actions
Hello,
I have a web application, where every page is secure. I like to show a
message when the user is automatically logged out from the site.
I have this in my factory.yml:
user:
class: myUser
param:
timeout: 1800
logging: %SF_LOGGING_ENABLED%
Hi,
I want to know if a column was modified, in my model's save() method.
Using Propel there's the isColumnModified method, but what about
doctrine?
Thanks.
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Hi Fabien,
How you will use the bundles, it will be normal include 'bundle.phar'
before using or unpack? You will use defaultStub for autoloading
classes from bundle?
I want to start writing bundles and some info to drive your way
writing code for sf2.0.
Sorry for my english.
--
You received
Hi Fabien,
Is http://symfony-bundles.org/ your domain, or it's registered before?
--
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
Look into the admin generated backend, there is the solution...
On 22 ún, 14:00, Nicolas nicolas.soin...@gmail.com wrote:
Nobody has an answer ?
How can we use a doctrine pager with Filter Forms ?
On 18 fév, 12:40, Nicolas nicolas.soin...@gmail.com wrote:
@gino pilotino
When I use
Hi guys I am able to define per page and I have, however I have
defined them like
New Article
Edit Article
But in my template it does include_title().
I don't want to have to define:
Site Name :: New Article
Site Name :: Edit Article
in every yml file. Is there a way I could do Site Name in 1
I figured what I was trying to do is easier to just send the ID and re
get the DB contents from the other side...
i am not pro-json for this..
will look into serialize.
thank you.
On Tue, Feb 23, 2010 at 5:13 AM, Gareth McCumskey gmccums...@gmail.com wrote:
JSON isn't supported in PHP until
Hello Maicol
I think you are missing the binding of the submitted form. As described in
the tutorial:
When the user submits the form with a POST request, the bind() method binds
the form with the user input data and triggers the validation mechanism. The
form then changes to a *bound state*.
So basically I have to go throughout all my code and add slots, great
Symfony is really logical when adapting to usability. Ill niche this
because I am not going to change what they had build in, its
ridiculous.
On Feb 23, 1:03 pm, Eno symb...@gmail.com wrote:
On Tue, 23 Feb 2010, Darren884
I actually found this code after searching the whole library:
sfContext::getInstance()-getResponse()-getTitle();
That is my variable I need.
On Feb 23, 1:15 pm, Darren884 darren...@gmail.com wrote:
So basically I have to go throughout all my code and add slots, great
Symfony is really logical
Hi all,
let's consider these simple lines :
foreach ($extraRows as $rowId = $extraValue)
{
var_dump($extraValue);
$extraValue = new MemberExtraValue();
$extraValue-setValue($extraValue);
//...
}
Well, if I print $extraValue. no problem. But in -setValue, it tries
to set No description
livequery is probably the best choice for public website
On Feb 22, 1:14 pm, Antoine S. antoine.spodobal...@gmail.com
wrote:
Hi,
I was wondering waht is the best way to include javascript with or
without ajax.
In a normal layout, there is an include of the javascripts file.
Hi
I must be missing something. I am using symfony 1.3 and trying to
update a record in an action but what happens is an insert
into.which generates an integrity error.
Here is my code.
$this-excursion =
Doctrine::getTable('TdExcursion')-find($request-getParameter('id'));
$this-form
Have a look at the tsTitlePlugin, I'm using it extensively and it's great!
Daniel
On 23.02.2010, at 22:18, Darren884 wrote:
I actually found this code after searching the whole library:
sfContext::getInstance()-getResponse()-getTitle();
That is my variable I need.
On Feb 23, 1:15 pm,
On 2/23/2010 4:35 PM, Adrien Mogenet wrote:
Well, if I print $extraValue. no problem. But in -setValue, it tries
to set No description for object of class MyClass.
WTF ?? If I set directly a value, it works.
This error happens when you don't have created __toString() method in
some classes.
On Tue, 23 Feb 2010, Darren884 wrote:
So basically I have to go throughout all my code and add slots, great
Symfony is really logical when adapting to usability. Ill niche this
because I am not going to change what they had build in, its
ridiculous.
You can test if the slot id set or not and
Try this:
$modifiedFields=$this-getModified();
You can then use array_key_exists() to see if your field has been
modified.
cheers,
Tony.
On Feb 23, 5:34 pm, Luã @hisamu eumesmo...@gmail.com wrote:
Hi,
I want to know if a column was modified, in my model's save() method.
Using Propel
Hi
This could mean that the form is always initialized with an empty
$this-excursion. Sure that find() does not return an array?
I always use -findOneById($request-getParameter('id')); to be sure.
bye,
-christian-
Am Tue, 23 Feb 2010 14:06:02 -0800
schrieb Roland Cruse cruses...@gmail.com:
Hi,
i had twice this kind of pbm with columns with a name that doctrine already
use internaly...
i've made a report but no news so far.
i think the col names where table_name or table and system_id
try to change / comment your column(s) to see if anything change
Good look
Brice
On Tue,
Thanks. That did it!
Now I have:
$parameters = $request-getParameter('td_excursion');
$this-excursion =
Doctrine::getTable('TdExcursion')-findOneById($parameters['id']);
$this-form = new TdExcursionForm($this-excursion);
Though I am thinking there is a better way to get the hard coded array
The one downside, of course, of requerying the database is that, well,
you're requerying the database. Database calls are slow and if you end
up doing it a lot can add a lot of extra server load. Probably better
to look at using a chunk of memory temporarily to avoid that as
databases (query
Hey Christian,
yeah, I've had some trouble with that as well, but I think I found a
good solution.
First, I continue to use the regular event system to send log events,
but I send events of type blah.log instead of application.log.
Now, to catch those you have to implement a custom logger like
On 2/23/10 8:10 PM, rodc...@gmail.com wrote:
Hi Fabien,
How you will use the bundles, it will be normal include 'bundle.phar'
before using or unpack? You will use defaultStub for autoloading
classes from bundle?
I want to start writing bundles and some info to drive your way
writing code for
given the whois information, symfony-bundles.org was not registered by
fabien/sensio.
On Tue, Feb 23, 2010 at 8:15 PM, Yura Rodchyn rodc...@gmail.com wrote:
Hi Fabien,
Is http://symfony-bundles.org/ your domain, or it's registered before?
--
You received this message because you are
42 matches
Mail list logo