[symfony-users] Re: About embed forms

2009-10-06 Thread Francisco José Núñez Rivera
I tried it with $opinion = new Opinion(); $opfeat = new $opinion-OpinionFeature; but cant find the class OpinionFeature... Otherwise i do the same you write (more or less). I think that when i'm showing opinion form it creates a new Opinion(); variable. Then i use that variable to set the new

[symfony-users] Re: Raising events in a form

2009-10-06 Thread Florian
Hi ! What I always see is not to use sfContext directly in model, but : sfProjectConfiguration::getActive()-getEventDispatcher()-notify(new sfEvent($this, 'foo.bar')); ( as you already said ) An other solution is to inject your dispatcher like this : //in your form class: public function

[symfony-users] Re: Template in AJAX request

2009-10-06 Thread Gareth McCumskey
Just to add, using AJAX to do a full page load is not an ideal situation. AJAX is meant to be used for small parts of a page so that you don't have to relaod the whole page. If your AJAX is supposed to return the entire page rather do a page reload as this is actually faster to process as well

[symfony-users] Re: sf1.0: Foreign Key oddities when dealing with a through-class and the Symfony Admin Generator

2009-10-06 Thread benlancaster
On Oct 5, 4:43 pm, benlancaster ben.lancas...@holler.co.uk wrote: When the Article is saved, the ArticlePage choices from the admin_check_list get saved, but the featured flag doesn't. What's REALLY weird is that my DB Query Log shows that the items are being saved with the correct

[symfony-users] Re: sfGrid with Doctrine and a join how to get a field from a joint table

2009-10-06 Thread Bernhard Schussek
Hi Iwan, Sorry for the late reply, I only saw this post now. Unfortunately, this functionality is currently not supported by the Doctrine driver. Bernhard -- Software Architect Engineer Blog: http://webmozarts.com 2009/9/23 Iwan van Staveren istave...@gmail.com: I have two tables. And

[symfony-users] How to translate symfony plugins?

2009-10-06 Thread Lubiluk
I use i18n ready plugins like sfGuard, sfApply, but i need them to speak different language than english. I foud out that i can translate them as usual with messages.xml file. The problem is how to extract all messages from plugin? Task i18n:extract does the job only for application's modules. Is

[symfony-users] Re: Template in AJAX request

2009-10-06 Thread mawashiboy
AJAX is not meant to resfresh the whole page. I think you should think about another way to do what u want. The only way i see to refresh the layout is to replace the content of the body tag --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Sf/Doctrine : Using package option in schema file.

2009-10-06 Thread David BOUCHÉ
I've created the /config/doctrine/webservices.schema.yml : -- connection: webservices actAs: [Timestampable] options: type: INNODB User: package: lib.model.webservices columns: id: type: integer(4) primary: true

[symfony-users] Re: How to translate symfony plugins?

2009-10-06 Thread Alexandru-Emil Lupu
Hi! I am not aware of such plugin developed yet, but i wanted to start one. Unfortunatelly i do not have the time to do it. Regards Alecs On Tue, Oct 6, 2009 at 1:43 PM, Lubiluk lubi...@gmail.com wrote: I use i18n ready plugins like sfGuard, sfApply, but i need them to speak different

[symfony-users] Re: sfWidgetFormSchemaFormatter granularity

2009-10-06 Thread Tom Boutell
++ Sometimes echo $form really could be more than just a convenience in the early stages of development, greatly accelerating the final product if only we had a reasonable hope of giving row containers class names and so on. The form decoration setup really is needlessly limiting. On Oct 5,

[symfony-users] Re: Sf/Doctrine : Using package option in schema file.

2009-10-06 Thread Jonathan Wage
The model generation does not work this way and the package feature cannot be used with symfony. The package feature is how we generate models for plugins in symfony. - Jon On Tue, Oct 6, 2009 at 4:46 AM, David BOUCHÉ da...@bouchethomas.com wrote: I've created the

[symfony-users] Re: Future of Symfony Selenium

2009-10-06 Thread Tennis Smith
That makes sense. But making sense doesn't mean it will happen that way. :) -T On Mon, Oct 5, 2009 at 9:03 AM, Pablo Godel pgo...@gmail.com wrote: I am one of those that thinks that re-inventing the wheel is not good unless there is a really good reason for it (doing it better is one of

[symfony-users] Problem of MySQL freeze when saving object

2009-10-06 Thread Loïc Vernet
Hi, I have a strange error actually with my symfony installation (symfony 1.2.8 + PHP 5.3 + Wamp 2.0i) Sometimes, for example in a an admin generator module, when trying to save the object the script just freeze and never ends. When looking at the log, the last thing logged is the doctrine

[symfony-users] getId() not working on newly saved object

2009-10-06 Thread Josh
Hi all: I'm still pretty fresh to Symfony so bear with my newbie questions and confusions. Here's the deal: $this-product = new Product; // from BaseProduct::Product $obj = $this-product-save(); echo $obj-getProductId(); // product.product_id: int(11), autoincrement, primary key. The echo

[symfony-users] Question about abbreviated syntax in YAML files

2009-10-06 Thread tirengarfio
Hi, I have these schema and testa data: sfGuardUser: actAs: [Timestampable] columns: id: type: integer(4) primary: true autoincrement: true username: type: string(128) notnull: true unique: true algorithm: type: string(128)

[symfony-users] Re: How to know if an object has been modified

2009-10-06 Thread Ignacio Bergmann
No ideas? Nacho http://card.ly/nachocual --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

[symfony-users] Re: How to know if an object has been modified

2009-10-06 Thread Andrei Dziahel
Hi. Use isModifiedhttp://www.doctrine-project.org/Doctrine_Record/1_0#method_ismodifiedmethod. 2009/10/2 Ignacio Bergmann nachoc...@gmail.com Hello, this is my first message to the list... hope it isn't a silly question. I'm using Doctrine, and I have a class in my model which has a field

[symfony-users] Sf 1.2 route cache problems in prod with sfDoctrineRoute patterns

2009-10-06 Thread Mateusz Papiernik
Hi! I've encountered a strange problem with routing in my symfony 1.2 with doctrine application. I tracked it down to routing cache problems. I have two routes: user_edit_profile: url: /user/:nick/settings class: sfDoctrineRoute options: { model: sfGuardUserProfile, type: object }

[symfony-users] Re: getId() not working on newly saved object

2009-10-06 Thread Nick Winfield
$this-product-getId() will give you the auto increment ID of the row just inserted 2009/10/6 Josh joshlaro...@gmail.com Hi all: I'm still pretty fresh to Symfony so bear with my newbie questions and confusions. Here's the deal: $this-product = new Product; // from BaseProduct::Product

[symfony-users] sfGuardPlugin clears sfGuardUserProfile

2009-10-06 Thread Pablo Godel
I am using sfGuardPlugin to manage users in an application. I created sfGuardUserProfile to add fields like name, email, website, etc. It all works nicely, but when I update sfGuardUser through the admin generator, it clears sfGuardUserProfile. I see the following in the sql log: 629 Query

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Jake Barnes
On Oct 5, 2:54 am, Eno symb...@gmail.com wrote: On Mon, 5 Oct 2009, Sid Bachtiar wrote: I was trying to look something more for non-developer. Let's say I developed a website then when I give the source code to my client (who isn't computer illiterate, but is not familiar with

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Jake Barnes
On Oct 5, 7:26 am, Tom Boutell t...@punkave.com wrote: This is true, but if you deploy with svn don't forget: RewriteRule (\.svn)/(.*?) - [F,L] In your .htaccess. You don't want people snooping in the .svn folders. You can svn export and none of the .svn folders will be exported.

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Sid Bachtiar
Yeah, I'm thinking: 1. Have install.php on web folder and lock it or delete it after installation is successful 2. Requirements checking if the environment has everything required (plugins should be able to add requirement check too) 3. Let end user enters database information (like in

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Mariusz Sasinski
One of the big weaknesses of Symfony is that it can not be deployed as easily as WordPress. The fact that non-technical people have an easy time installing WordPress gives WordPress much of its presence on the web scene. As far as I know symfony is not a blog, and it's made with

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread david
Wordpress is an application, Symfony is a framework that you can use to build applications. sf provides all the parts to make installers - you just need to glue 'em together. On Wed, 07 Oct 2009 00:32:18 +0200, Jake Barnes lkrub...@geocities.com wrote: On Oct 5, 2:54 am, Eno

[symfony-users] Re: how to install a symfony website

2009-10-06 Thread Sid Bachtiar
sf provides all the parts to make installers - you just need to glue 'em together. Correct! And it would make it easier to spread Symfony to the mass if it has a generic installer built in. I know, I know, what don't I build it myself? I'd like to, but at the moment I'm pretty stretched out.

[symfony-users] upload multiple files with ajax

2009-10-06 Thread Martin Ibarra Cervantes
hi guys, I need upload images to my server, for example Image_1 Comment_Image_1 Image_2 Comment_Image_3 Image_3 Comment_Image_3 maybe with ajax or not, but i need save the values in a DB, --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: About embed forms

2009-10-06 Thread Dennis
Try this for adding an object's PARENT form to the child form. http://www.symfony-project.org/blog/2008/11/07/new-in-symfony-1-2-doctrine-goodies Where it says Edit/Add Author Exactly in the middle of the document. Me, I'm looking to add Chidren to the Parent Object, but not a large quanity of

[symfony-users] Re: problem with undefined table and embedded form

2009-10-06 Thread Dennis
BTW, which is the parent object, and which is the child object: vehiculo vs. sinestro? On Sep 9, 3:26 pm, Eno symb...@gmail.com wrote: On Wed, 9 Sep 2009, Abraham Montilla wrote: and as i said, i don't know why did it work before cause the autoincrement line is set from the beginning of

[symfony-users] Re: getId() not working on newly saved object

2009-10-06 Thread Josh
Yeah, this is not working. I guess that's what I'm saying. I'm taking two new objects, populating them, then saving one and using that ID to populate a column in the other object. For whatever reason, this is not working. BUT, the row is saved to the DB upon $obj-save() OR $this-product-save() or

[symfony-users] if (condition): endif: not working

2009-10-06 Thread Avani
Hi all, I am working on symfony since last 1 month. Yday I just installed symfony to my other laptop. I dont know why I am getting errors in my templates which works for my pc. I am gettting errors everywhere when I used ?php if(condition): endif: ? if I have used ?php if{} ?

[symfony-users] Re: if (condition): endif: not working

2009-10-06 Thread Sid Bachtiar
It should be: ?php if (condition): ? h1Hola hola hola/h1 ?php endif; // with semi colon ? On Wed, Oct 7, 2009 at 2:58 PM, Avani avani.v.puj...@gmail.com wrote: Hi all, I am working on symfony since last 1 month. Yday I just installed symfony to my other laptop. I dont know why I am

[symfony-users] Re: if (condition): endif: not working

2009-10-06 Thread Avani
Oh sorry, it was typing mistake. whole project is working in my 1 pc. When I copy the same into my other pc, it is giving errors Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\td\apps \core\templates\layout.php on line 354 everywhere where I have used ?php if(condition) : ?

[symfony-users] Re: if (condition): endif: not working

2009-10-06 Thread Jeremy Thomerson
Please provide lines 345 - 365 of C:\xampp\htdocs\td\apps\core\templates\layout.php would be helpful. Jeremy On Tue, Oct 6, 2009 at 9:03 PM, Avani avani.v.puj...@gmail.com wrote: Oh sorry, it was typing mistake. whole project is working in my 1 pc. When I copy the same into my other pc, it

[symfony-users] Re: Question about abbreviated syntax in YAML files

2009-10-06 Thread wiredcs
I think the error says it. If you don't specify the one side it won't populate that model with the setter for user profile. Use build-all to see what the generator is generating. I find it easier to read and understand the doctrine models. On Oct 6, 2:48 pm, tirengarfio tirengar...@gmail.com

[symfony-users] Re: if (condition): endif: not working

2009-10-06 Thread Jeremy Thomerson
Well, without seeing all the code, it's hard to tell, but you are mixing if () { /* thirty lines later */ } with if (): and endif; syntax. I would suggest that you clean up your code format, use one consistent syntax and you will likely find that you actually have an open if somewhere - which is