[symfony-users] Re: Working with Symfony and Git (collaboration)

2010-09-23 Thread Darmen
Thanks Grzegorz for your answer. The only things that applications have common are: - Users (user models), centralized authorization - Some components (or component slots) from app A (for example) can be used in app B or C. And another question -- is it unneffective to store all the data in

[symfony-users] Re: making https link

2010-09-23 Thread ScherlOMatic
Never heard about something like that But I think this should be done by your apache configuration. BR On 23 Sep., 02:52, wittygraphy wittygra...@gmail.com wrote: Hi all, I am rendering a http (non secure) page, but I would like to embed a https link into it. Is it possible to produce such

[symfony-users] Re: Jobeet Tutorial - routing problem

2010-09-23 Thread martin
Thank you Eno, it was the rewrite module, now it works as expected. Regards, Martin On Sep 23, 4:39 am, Eno symb...@gmail.com wrote: On Wed, 22 Sep 2010, martin wrote: The homepage works well, but any other URL's keep telling me that the requested URL wasn't found.. Example: On

Re: [symfony-users] making https link

2010-09-23 Thread Gareth McCumskey
You could consider using symfony's filter mechanisms to automatically check where a request is attempting to go and if it matches one that you need to be https the filter can force a redirect from http to https. In other words, if the module/action you want a link to go to is user/login, then a

Re: [symfony-users] problem with sfWidgetFormChoice

2010-09-23 Thread Gustavo Adrian
Could you show us your DB schema? how do you want to save your multiple extensions on the DB? if you want to save the extensions in only one field then you could override the doSave method on your form, take the array of extensions and make a string with pipe separated values ( like: JPG|GIF|PNG )

[symfony-users] different css for layouts

2010-09-23 Thread Vikos
Hello I have multiple layout width own arrangement. My simple question: Can I configure symfony to automatically load different css/js for layouts? Set the same javascript and css files in every view.yml width different layout is time-consuming. I want something like this: layout1- css1.1,

[symfony-users] automated response

2010-09-23 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 25 septembre. L'accès à mes courriels pourrait être limité durant cette période. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante:

[symfony-users] Re: Unknown record property / related component permissions on sfGuardUser setLabel() on a non-object

2010-09-23 Thread Social It
I found the problem for the second issue. I had to delete all SFGuard Forms from lib/form/doctrine/base and reinstall. On Wed, Sep 22, 2010 at 10:07 PM, Social It social@gmail.com wrote: I fixed the first problem by following instructions here and deleting the BaseSfGuard classes with rm

[symfony-users] linik trouble

2010-09-23 Thread Nova Lina
hi dear all im a junior programer and first time using symfony framework 1.4 i have a trouble with link.somebody can help me to explain what diferent source when i coding like this... 1) a href=?php echo url_for('main/home'); ?Home/a/li with 2) a href=

Re: [symfony-users] linik trouble

2010-09-23 Thread Gábor Fási
The url_for() helper is environment-aware - it means that it will echo the correct url for your current environment. In your case, you echoed a link for the 'user' application in the 'dev' environment, that's why the url included the user_dev.php filename. If that was your first application in the

[symfony-users] Re: different css for layouts

2010-09-23 Thread eliana m.
hello how do you want to change the Javascript and CSS files ...? I did a CMS and the user select a template that he wants, and they change. but I Do not know if it help you Tell us more about how you want to change the Javascript and CSS files. -- If you want to report a vulnerability

Re: [symfony-users] linik trouble

2010-09-23 Thread Eno
On Thu, 23 Sep 2010, Nova Lina wrote: i have a trouble with link.somebody can help me to explain what diferent source when i coding like this... 1) a href=?php echo url_for('main/home'); ?Home/a/li with 2) a href=

[symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread eliana m.
hi Gustavo ... thank you very much for your response. I'm using symfony 1.4. I need to save the choices the user selects in the field called extension of the database. The schema is: IngeindArchivospermitidos: #connection: doctrine columns: tipo_archivo: { type: string(20), fixed:

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread Gustavo Adrian
Hi, I thinkg you should override the doUpdateObject method on the form and change the value of the extension field there. Remember to put a pipe or comma to separate the values on the string.Try this (not tested) on the doUpdateObject method of your form: public function doUpdateObject( $values

[symfony-users] Re: making https link

2010-09-23 Thread wittygraphy
Scherl, it's possible but apache config file would be modified and maintenance for mod-rewrite rules which could get long and complicated Gareth, the sfSslRequirementPlugin does exactly what you described In both cases a redirect is required and I'd like to avoid it due to security concerns thus

[symfony-users] Re: linik trouble

2010-09-23 Thread wittygraphy
Agreed w/ the recommendation of using url_for() and link_to(). However the first form is needed if you want to switch the protocol (http - https) and these helpers doesn't have an option to specify/force the protocol. Symfony always use the same protocol as the page being rendered. Heidi On Sep

[symfony-users] Re: different css for layouts

2010-09-23 Thread Richtermeister
Hey Vikos, yes, that is relatively easy, but obviously you can't just use the view.yml for that. However, from within the layout you can just call: use_stylesheet('whatever'); use_javascript('blah'); That way you can customize the layouts to use different assets. Daniel On Sep 23, 5:25 am,

Re: [symfony-users] Re: different css for layouts

2010-09-23 Thread Gustavo Adrian
I think that in your case would be faster to just hardcode the CSS/JS on every layout, but If you don't want to do this you could use the methods from the response addStylesheet and addJavascript to change the CSS/JS at the time you choose and set your layout.. but you'll need to do it

[symfony-users] Um checbox em cada linha (A checbox in each row)

2010-09-23 Thread Gerda Graciela Rodrigues
Oi (Helo)!! Alguém sabe como eu coloco um checkbox em cada linha de uma tabela? (Does anyone know how I put a checkbox in each row of a table?) Obrigada! (Thank you!) Gerda Graciela --- code-- public function configure() {

Re: [symfony-users] symfony + Cassandra

2010-09-23 Thread Eno
On Thu, 23 Sep 2010, Mercedes Sualog III wrote: Actually I don't still have the idea on how to do it..I am thinking since Symfony supports ORM ideally this should support any database but I am not sure with Cassandra since this a NoSQL and new one. Yeah, you would need to write an ORM-NoSQL

Re: [symfony-users] Um checbox em cada linha (A checbox in each row)

2010-09-23 Thread Gustavo Adrian
Hi, If I understand correctly, you want to put a checkbox on a table, like the one generated on the admin generator, where you select items to make a particular action? If that's so and you're not using the admin generator, just add your own checkbox to the table and create an action to receive

[symfony-users] Re: functional tests and the user

2010-09-23 Thread mahadi
Hi, i found a similar post written some days before i wrote my question. Also no answers yet. Doesn't anybody know something concerning this issue? Regards mahadi On Sep 16, 7:25 pm, mahadi profi...@altmuehlnet.de wrote: Hi folks, im trying to get user information in a functional test.

[symfony-users] Re: symfony Day Cologne 2010

2010-09-23 Thread Dennis Benkert
Hi, as mentioned on PHPDeveloper we have set up a discount for 50 tickets. For more information check out http://phpdeveloper.org/news/15178. See you in Cologne, Dennis 2010/8/25 Dennis Benkert spinecras...@googlemail.com Hi, this year we are organizing a symfony Day again here in Cologne,

[symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread eliana m.
hello again Gustavo implement the function that sent me the following manner: public function doUpdateObject( $values = null ) { if ( isset( $values[ 'extension' ] ) ) { $objeto = parent::doUpdateObject(); if(is_array( $values[ 'extension' ] ) !

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread Gustavo Adrian
Selecting one or more elements, which is the value shown in $values[ 'extension' ] ? do a quick var_dump to see it, and call parent::doUpdateObject at the end of your method, passing to it your modified $values array. I didn't notice that you're using sfWidgetFormChoice. Use

[symfony-users] Re: Symfony2PR3: Entity works fine in dev but throws exception in prod

2010-09-23 Thread Dennis Jacobfeuerborn
So apparently when calling index_dev.php symfony uses the yaml driver for the entity but with index.php it uses the annotations driver which throws this error. I cannot find any specific setting of the driver in the config files so where is this defined and why does symfony use two different

[symfony-users] Re: Symfony2PR3: Entity works fine in dev but throws exception in prod

2010-09-23 Thread Dennis Jacobfeuerborn
Ok, so I'm a bit at a loss here. There are apparently two ways to generate the entity classes from the yaml definition. Both generate different Metadata in the code and Symfony2 apparently cannot parse either of these formats. 1. 'php hello/console doctrine:generate:entities --bundle=Application/

Re: [symfony-users] Re: Symfony2PR3: Entity works fine in dev but throws exception in prod

2010-09-23 Thread Tim Nagel
I cant address points 2 or 3 because i do not use those functions, however regarding point 1, I just tested switching my index.php from dev to prod and it worked as expected without changes, reading my PHP annotations just fine. t But I just tested the enviroment switching dev to prod and it

[symfony-users] Re: Symfony2PR3: Entity works fine in dev but throws exception in prod

2010-09-23 Thread Dennis Jacobfeuerborn
After clearing the prod cache I now get the annotations parsed correctly but the problem still is that Symfony ignores the yaml file which it happily uses in the dev environment. On Sep 24, 3:24 am, Tim Nagel t...@nagel.com.au wrote: I cant address points 2 or 3 because i do not use those

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-23 Thread Tristan
Do you have an example please ? Cause as i never see it from my eyes, it does not make sense. Thanks ;) On 22 sep, 19:32, Richtermeister nex...@gmail.com wrote: This is very simple. You have those FilterForm classes for each model.. just use those to render the forms on the front-end, and

[symfony-users] How to set security.yml for an abstract module like : sfGuardPermission / sfGuardGroup

2010-09-23 Thread Tristan
Hello, i'm securing my backend because i'm going to recruit some moderators. The probel is that i can access to the sfGuardPermission / sfGuardGroup modules and there are abstract, meaning there are no folders name sfGuardPermission / sfGuardGroup How to set the credential to admin in order to