[symfony-users] Multiple databases and data exchange

2011-02-16 Thread Thor
Hi all, i have a question about multiple databases: supposing that i have the database.yml and everything setup to use two databases instead of one, with one that serve as a backup , and the other as the production... how can i achieve that with propel? i found a simple way to implement the 2 da

[symfony-users] Re: Make Symfony and C++ work together

2011-02-16 Thread Gabriel Petchesi
Personally I would separate the PHP and C++ code and create communication interface via XML. If all your data comes via this interface you will not need a Symfony model layer and you can disable the ORM. If I remember correctly this type of infrastructure were using at Yahoo with Symfony.

[symfony-users] Re: Netbeans with sudo root permission problem

2011-02-16 Thread Gabriel Petchesi
What you said is correct, the same setup I use for my development environment as well. umask: 002 development users belonging to www-data group. Directories created with 775 and files with 664. Another thing that you could do, have not tried it myself, have multiple users share the same user id

Re: [symfony-users] Netbeans with sudo root permission problem

2011-02-16 Thread Gareth McCumskey
You should really have all your files sitting in your home directory and use Apache virtual hosts (as described on the symfony website) too all you to test the application in your local browser. You should not store your project in the /var/www directory. On Wed, Feb 16, 2011 at 5:31 PM, ereallsta

[symfony-users] Re: i18n Forms and Tables

2011-02-16 Thread Justin Fortier
After some further rummaging, I found out I was focusing too much on Symfony2, instead of looking at Doctrine2. Luckily I found this: https://github.com/stof/DoctrineExtensionsBundle/blob/master/Resources/doc/index.rst I'm working on implementing it, I'll let you guys know how it goes. Once agai

Re: [symfony-users] Re: [Symfony2] User authentication

2011-02-16 Thread Tac Tacelosky
Tom Boutell has on his todo list for SillyCMS ( https://github.com/boutell/SillyCMS) to "Add multiuser security using Doctrine objects and Symfony 2 ACLs; go beyond the in-memory user provider". I'm hoping he makes a little tutorial about the steps to go through to make that happen, I'm in the sam

Re: [symfony-users] [Symfony 2] Doctrine:generate:entities strange behaviour in PR6

2011-02-16 Thread taidehuone
Is this bug still active? I've been off from development for ten days because I had to install some servers. I just finished relocating my project, then cloned symfony2 from github and cloned the latest vendor releases too. At first I noticed the doctrine:generate:entities task had changed to requ

[symfony-users] Re: sf1.4.9 : schema.yml relations article and sfGuardUser

2011-02-16 Thread Roman Gnatyuk
>     user_id: string(255) should be user_id: integer >   relations: >     sfGuardUser: >       foreignType: one try: relations: sfGuardUser: foreignType: one local: user_id foreign: id -- If you want to report a vulnerability issue on symfony, please send it to sec

[symfony-users] [Symfony2] i18n Forms and Tables

2011-02-16 Thread Justin Fortier
Anyone successfully implement this on Symfony2? I couldn't find any examples of it, but basically I'd need to be able to create a form that embeds X number of sub-forms. I've successfully managed to create a simple form and validate it, but when it comes to embedding several forms, I'm completely

[symfony-users] Re: Bundles and Entities

2011-02-16 Thread Daniel Londero
On 16 Feb, 18:51, Richtermeister wrote: > The only thing I'm unsure about is how to group said files within the > bundle.. I mean, most bundles I see have one controllers dir and one > templates dir, etc.. but do you just mix admin vs. front-end templates > in there? http://docs.symfony-reloaded.

[symfony-users] Best practice: Quick redirect to a subdomain depending on user language

2011-02-16 Thread fesja
Hi! I'm optimizing our webpage, and we have notice something we want to dramatically improve. When the user loads example.com, the filters (rendering, security and remember) are executed. Then we execute our subdomain filter. If it's the first time the user is here, we get the preferred language

[symfony-users] Re: [Symfony2] User authentication

2011-02-16 Thread Nikita Korotaev
You can get User in Controller by using this line: $this->get('security.context')->getUser(); Regards, Nikita -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "

[symfony-users] [Symfony2] Authenticating user in code

2011-02-16 Thread Nikita Korotaev
Hi everyone! The question is very simple. So is the answer(I hope). How to authenticate user in code? My guess is to create a *UsernamePasswordToken* object. And then make: $this->get('security.context')->setToken(new UsernamePasswordToken(string $user, string $credentials, $providerKey, array $ro

Re: [symfony-users] Re: [Symfony2] Bundles and Entities

2011-02-16 Thread Yohan GIARELLI
You can create subfolders in resources/view and multiple controllers, eventually in fe/be subnamespaces. Yohan. Le 16 févr. 2011 18:51, "Richtermeister" a écrit : > It's really the same as in symfony1 where a blog plugin would contain > a "front module" and one or more "admin modules", as well as

[symfony-users] Re: [Symfony2] Bundles and Entities

2011-02-16 Thread Richtermeister
It's really the same as in symfony1 where a blog plugin would contain a "front module" and one or more "admin modules", as well as the entire blog model and blog specific assets. The only thing I'm unsure about is how to group said files within the bundle.. I mean, most bundles I see have one contr

[symfony-users] sf1.4.9 : schema.yml relations article and sfGuardUser

2011-02-16 Thread benM
Hello, I want to set relation between user_id in Article table and id sfGuardUser table. my schema.yml : Article: actAs: Timestampable: ~ columns: id: type: integer primary: true autoincrement: true user_id: string(255) titre: string(255) incipit : clob

[symfony-users] Re: Netbeans with sudo root permission problem

2011-02-16 Thread madeyt
Hi I solved this problem by setting group of files and directories to www- data (my user is owner) and setting permissions to 640 for files and 770 for directories in symfony project folder: sudo find . -exec chgrp www-data {} \; find . -type d -exec chmod 770 {} \; find . -type f -exec chmod 64

[symfony-users] Symfony 2 problem: error "The service "templating" does not exist"

2011-02-16 Thread Medvech
This is error message which I have, what is the problem? InvalidArgumentException: The service "templating" does not exist. in D:\Projects\menu\vendor\symfony\src\Symfony\Component\HttpKernel \bootstrap.php on line 108 Call Stack # TimeMemory FunctionLocation 1 0.0010 364

[symfony-users] doctrine dbal connection

2011-02-16 Thread Nico
Hi everybody, I would like to create the database from cli, but there is an issue with the doctrine dbal configuration. I already tried a few things to figure out where it comes from... That's how my yaml dbal config looks like: # Doctrine Configuration doctrine.dbal: default_connection:

[symfony-users] [Symfony2] User authentication

2011-02-16 Thread Ed
Hello again, I'm currently trying to evaluate Symfony 2 and I'm working on a little sandbox site to get my head around things, but I'm a bit worried by the documentation, I can't seem to find much in the way of tutorials and the symfony-reloaded docs tend to assume too much prior knowledge. Is thi

Re: [symfony-users] Re: [Symfony2] Bundles and Entities

2011-02-16 Thread Yohan GIARELLI
Yes, it's right. it's more semantic and easy to use. (one routing per bundle with fe/be routes, etc.) Yohan. 2011/2/16 Daniel Londero > On 16 Feb, 14:42, GIARELLI Yohan wrote: > > A *Bundle* is a structured set of files (PHP files, stylesheets, > > JavaScripts, images, ...) that *implements*

Re: [symfony-users] Social network with symfony ?

2011-02-16 Thread Macvek
I think symfony is a great tool for fast development, and this is the main purpose I'm using it. In case of building social network, there are better technologies like Java or .NET which can outperform PHP and are not bound to request->processing->responce model. It is possible to build large soci

Re: [symfony-users] Social network with symfony ?

2011-02-16 Thread Michał Piotrowski
Hi, 2011/2/16 coolmec33 : > Hello everyone, > > I want to know the feasibility of a social network (profiles, walls, > groups, friends ) with the symfony framework. > > I have already worked on several projects with symfony and I know is > very powerful, and it can do many things, and From the

[symfony-users] Social network with symfony ?

2011-02-16 Thread coolmec33
Hello everyone, I want to know the feasibility of a social network (profiles, walls, groups, friends ) with the symfony framework. I have already worked on several projects with symfony and I know is very powerful, and it can do many things, and From these experiences I think it's doable. I

Re: [symfony-users] Netbeans with sudo root permission problem

2011-02-16 Thread Macvek
Hi, You can always make directory in /var/www/UserName which belongs to user and servers only php scripts, which should be read-only for apache and have a directory /var/www/UserName/share, with mask 777 (or owned by www-data) for files used by scripts. On the other hand Symfony doesn't have to b

[symfony-users] Netbeans with sudo root permission problem

2011-02-16 Thread ereallstaff
Hi I have an annoying problem develoing application with netbeans I am on Ubuntu 10.10 and use netbeans 6.9 , installed from Ubuntu software center repository I know that applications Symonfy and php file should belong to www:data user and group, where www-data that is the default Apache user. B

[symfony-users] Re: [Symfony2] Bundles and Entities

2011-02-16 Thread Daniel Londero
On 16 Feb, 14:42, GIARELLI Yohan wrote: > A *Bundle* is a structured set of files (PHP files, stylesheets, > JavaScripts, images, ...) that *implements* a single feature (a blog, a > forum, ...) and which can be easily shared with other developers. > > Think about creating separated controllers in

[symfony-users] Re: Render field date format

2011-02-16 Thread webbear
I know about this feature - but it creates 3 select fields - it is not convinient in my case. I need only 1 input/text field and I need to format displayed value in that field. On 16 фев, 16:08, Arnold Ispan wrote: > Hi, > > I use the date widget from sfFormExtraPlugin and this is how i do it: >

[symfony-users] Re: [Symfony2] acessing the container inside custom validators

2011-02-16 Thread Andras
Hi, Could you please be more specific? E.g. I would like to create a validator which returns FALSE if a username already exists in one of the database tables. Could you please write a code example for 1. adding the Entity Manager as a parameter 2. adding the validator as an annotation to a proper

Re: [symfony-users] Render field date format

2011-02-16 Thread Arnold Ispan
Hi, I use the date widget from sfFormExtraPlugin and this is how i do it: $this->widgetSchema['date'] = new sfWidgetFormJQueryDate(array( 'date_widget' => new sfWidgetFormDate(array( 'format' => '%day%/%month%/%year%' )) ));

[symfony-users] Render field date format

2011-02-16 Thread webbear
Hi, Please help to change date format for input/text widget of date value. Actually I don't use standard symfony date widget - I want to make date field like input/text field with jquery.ui.datepicker plugin. I'm trying to localise format of rendering value (mean already saved value that appears

Re: [symfony-users] [Symfony2] Bundles and Entities

2011-02-16 Thread GIARELLI Yohan
Hello, Your fe / be should be in the same bundle. quote from the Symfony2 doc : A *Bundle* is a structured set of files (PHP files, stylesheets, JavaScripts, images, ...) that *implements* a single feature (a blog, a forum, ...) and which can be easily shared with other developers. Think about

[symfony-users] [Symfony2] Generate Entities from MySQL database

2011-02-16 Thread Maragues
Hi all, In PR6, I've managed to import my MySQL tables to dcm.xml files, but now I'm struggling to transform this mappings to entities. The odd thing is I was able to do it in PR5. A snippet of one of the mapped files #/src/Agencias/DatabaseBundle/Resources/config/doctrine/metadata/orm/ Agencias.

[symfony-users] Re: symfony2 twig subform error messages

2011-02-16 Thread Andras
Hi, A bit shorter version of my question: I have a form with a subform called enterprise. How can I print the field validation errors with twig? E.g. {{ form_errors(form.enterprise.username) }} does not work for the field username. Andras On febr. 15, 11:42, Andras wrote: > Hi, > > I'm trying

[symfony-users] Re: Jobeet tutorial - Functional test fails while manual test in browser works correctly

2011-02-16 Thread Rohit
I found the issue - it was my mistake in lib/test/ JobeetTestFunctional.class.php in function createJob(). Earlier, the code was: return $this-> get('/job/new')-> click('Preview your job', array('job' => array_merge(array( 'company' => 'Sensio Labs', 'url'

[symfony-users] [Symfony2] Bundles and Entities

2011-02-16 Thread Daniel Londero
Hi, I'm quite ready to start a project with Symfony2 but I need to share some thoughts about bundles and entities organization to start with the better structure. In symfony 1.4 we can have more applications in the same project (say fe and be) with a common model generated from schema.yml. In Sym

Re: [symfony-users] Re: Forms and validation

2011-02-16 Thread Bernhard Schussek
Oops, parentheses I mean. /** @validation:NotNull */ and /** @validation:NotNull() */ both are valid. Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Group

[symfony-users] Jobeet tutorial - Functional test fails while manual test in browser works correctly

2011-02-16 Thread Rohit
Hello, Please ignore my earlier message, it was posted incomplete. I am sorry for the trouble. I am working through Jobeet tutorial - Symfony 1.4 + Doctrine. I am on Windows with Apache and MySQL. On Day 11, Testing Forms, test 3.5 is failing. The test is that a job poster should be shown 404 pa

[symfony-users] credentials

2011-02-16 Thread sheik...@gmail.com
Hai... This is sheik, i need credential for group only based on backend set permissions. for example: I have create user,group and permissions group names: 1.Sales(read-permission) 2.Hr(write-permission) now i want Sales groups only accepted particular(index page) modules. please help me .th

[symfony-users] Re: Forms and validation

2011-02-16 Thread Lideln
Hi, I did not understand the "parent" thing ? Is there something wrong with my code ? I hope so, otherwise I would not understand why I got this error :-/ On 16 fév, 00:27, Bernhard Schussek wrote: > > Correct syntax for annotation-validators is to use parents in the end: > > email(), NotBlank()

[symfony-users] Jobeet tutorial - Functional test fails while manual test in browser works correctly

2011-02-16 Thread Rohit
Hello, I am working through Jobeet tutorial - Symfony 1.4 + Doctrine. I am on Windows with Apache and MySQL. On Day 11, Testing Forms, test 3.5 is failing. The test is that a job poster should be shown 404 page if he tries to edit a published job. When I manually test the flow in a browser, it wo

[symfony-users] Re: Forms and validation

2011-02-16 Thread Lideln
On 16 fév, 00:27, Bernhard Schussek wrote: > > Correct syntax for annotation-validators is to use parents in the end: > > email(), NotBlank()... > > This is not true. You can leave away the parents just as well. > > Bernhard Sorry what do you guys mean by parents ? Is there something wrong with

[symfony-users] sfWidgetFormDoctrineJQueryAutocompleter problem

2011-02-16 Thread latysh KGstan
Dear folks I'm trying to solve this problem for three days & no result. Please help me in solving this problem. Thanks in advance! I am trying to use Jquery Autocompleter for DOCTRINE...I have installed sfFormExtraPlugin I am using SYMFONY 1.4.8 & working on Jobeet project. My goal is to use auto

[symfony-users] Re: Form validation

2011-02-16 Thread Lideln
On 16 fév, 00:02, Christophe COEVOET wrote: > Le 15/02/2011 23:57, Lideln a crit : > > > Since I cannot add new answers to the topic I created earlier (why > > that ?), I create a new one here with additionnal info. > > > As I said, I followed the official tutorial to create a RegisterForm > > a