Re: [symfony-users] domain

2010-02-23 Thread Stefan Koopmanschap
given the whois information, symfony-bundles.org was not registered by fabien/sensio. On Tue, Feb 23, 2010 at 8:15 PM, Yura Rodchyn wrote: > Hi Fabien, > Is http://symfony-bundles.org/ your domain, or it's registered before? > > -- > You received this message because you are subscribed to the Goo

Re: [symfony-users] Question about bundles

2010-02-23 Thread Fabien Potencier
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 s

[symfony-users] Re: Custom logger via factory.yml?

2010-02-23 Thread Richtermeister
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

Re: [symfony-users] Re: Array over a Form

2010-02-23 Thread Gareth McCumskey
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 cache'

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Roland Cruse
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 a

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread eMerzh
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,

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Christian Hammers
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 : > Hi > > I must be

[symfony-users] Re: Doctrine equivalent to isColumnModified

2010-02-23 Thread Tony Piper
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 wrote: > Hi, > > I want to know if a column was modified, in my model's save() method. > Using Propel there's the isColumnM

Re: [symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread Eno
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

Re: [symfony-users] Error message "No description for object of class..."

2010-02-23 Thread ReynierPM
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.

Re: [symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread Daniel Lohse
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

[symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Roland Cruse
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->

[symfony-users] Re: include javascript & ajax

2010-02-23 Thread Antoine S.
livequery is probably the best choice for public website On Feb 22, 1:14 pm, "Antoine S." 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. > include_javascript() > But I dont want

[symfony-users] Error message "No description for object of class..."

2010-02-23 Thread Adrien Mogenet
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 descriptio

[symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread 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 wrote: > So basically I have to go throughout all my code and add slots, great > Symfony is really logical when adapting to

[symfony-users] Re: Help with titles in template? A global title?

2010-02-23 Thread Darren884
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 wrote: > On Tue, 23 Feb 2010, Darren884 wrote: > > Hi guys I

Re: [symfony-users] Help with titles in template? A global title?

2010-02-23 Thread Eno
On Tue, 23 Feb 2010, Darren884 wrote: > 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 >

Re: [symfony-users] Problem with File Upload

2010-02-23 Thread Dennis Riedel
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*." Af

Re: [symfony-users] Re: Array over a Form

2010-02-23 Thread Samuel Morhaim
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 wrote: > JSON isn't supported in PHP until 5.2 and was develope

[symfony-users] Help with titles in template? A global title?

2010-02-23 Thread Darren884
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 f

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-23 Thread Tom Ptacnik
Look into the admin generated backend, there is the solution... On 22 ún, 14:00, Nicolas wrote: > Nobody has an answer ? > How can we use a doctrine pager with Filter Forms ? > > On 18 fév, 12:40, Nicolas wrote: > > > > > @gino pilotino > > When I use your code, the filters are working well, bu

[symfony-users] domain

2010-02-23 Thread Yura Rodchyn
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

[symfony-users] Question about bundles

2010-02-23 Thread rodc...@gmail.com
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

[symfony-users] Doctrine equivalent to isColumnModified

2010-02-23 Thread Luã
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

[symfony-users] Logout message

2010-02-23 Thread sajt
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% use_flas

[symfony-users] Problem with File Upload

2010-02-23 Thread Maicol Cantagallo
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 \actions.class.php

[symfony-users] Custom logger via factory.yml?

2010-02-23 Thread Christian Hammers
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

[symfony-users] Re: Forms howto symfony 1.4

2010-02-23 Thread Tom Ptacnik
There are so much documentation of what you want to do On 22 ún, 20:49, Diego Bello 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 the new con

[symfony-users] Form in popup

2010-02-23 Thread ellis...@gmail.com
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:

[symfony-users] problem with sfAdminThemejRollerPlugin

2010-02-23 Thread Fabien Amiaud
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 \sfprojects\appliCourrierRe

[symfony-users] Re: Installer Script - building plugin models

2010-02-23 Thread Richtermeister
Nothing? What good is the installer if I can't add / build plugins with it..? Daniel On Feb 22, 1:44 pm, Richtermeister 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 install a pl

[symfony-users] Re: Symfony 2 - "Extremly Configurable"

2010-02-23 Thread michael.pie...@googlemail.com
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > On 2/20/10 11:03 AM, michael.pie...@googlemail.com wrote: > > hehe, good catch ;) > > To avoid downloading all the debu

[symfony-users] Re: Symfony 2 - "Extremly Configurable"

2010-02-23 Thread michael.pie...@googlemail.com
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be

[symfony-users] Re: Symfony 2 - "Extremly Configurable"

2010-02-23 Thread michael.pie...@googlemail.com
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be

Re: [symfony-users] Re: Question about Symfony 2.0

2010-02-23 Thread Gareth McCumskey
> 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 seriou

Re: [symfony-users] Re: Question about Symfony 2.0

2010-02-23 Thread Fabian Lange
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 symfony

Re: [symfony-users] Re: Array over a Form

2010-02-23 Thread Gareth McCumskey
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 for

[symfony-users] Re: Question about Symfony 2.0

2010-02-23 Thread Matthias N.
On 22 Feb., 13:47, Fabien Potencier wrote: > On 2/22/10 11:53 AM, Gareth McCumskey wrote: > > > > Hey all, > > > I just finished watching the presentation by Fabien about Symfony 2.0, > > and it really looks great. You can see that the lessons learnt > > developing symfony 1.x have paid off for th

[symfony-users] Re: Question about Symfony 2.0

2010-02-23 Thread michael.pie...@googlemail.com
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) Mich

[symfony-users] Re: Array over a Form

2010-02-23 Thread rooster (Russ)
On Feb 23, 8:13 am, Gareth McCumskey wrote: > To answer make the value of the hidden field equal to the serialized > array > > http://www.php.net/serialize > Ah yes I misunderstood the question - in my example it is possible but a bit silly because you'd need a bunch of hidden fields. If

Re: [symfony-users] if anyone would like to sign up on our site, we could use some Symfony experts

2010-02-23 Thread Eno
I dont suppose anyone knows of a similar site for Android questions? :-) -- -- 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

Re: [symfony-users] Form decorator

2010-02-23 Thread Sid Bachtiar
> 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 wrote: > Well just to conclude this, I saw an example on one of the symfony > docs about overwriting

Re: [symfony-users] Form decorator

2010-02-23 Thread Gareth McCumskey
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 wrote: > 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

Re: [symfony-users] Form decorator

2010-02-23 Thread Gareth McCumskey
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 futu

Re: [symfony-users] Question about Symfony 2.0

2010-02-23 Thread Fabien Potencier
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

Re: [symfony-users] Form decorator

2010-02-23 Thread Sid Bachtiar
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); $this->widgetSchema->set