[symfony-users] Dojo support for Symfony 2

2011-03-30 Thread cschulze
Greetings, I am about to start using Symfony 2. Initially, I've got the question, if there already is any existing work or work in progress, implementing support for Dojo Toolkit (especially forms). Best regards Christian Schulze -- If you want to report a vulnerability issue on symfony,

[symfony-users] sample sites

2011-03-30 Thread Jab..
Any real time websites built with symfony that I could look at to understand its capability On 29-Mar-2011 11:15 PM, Pete Sisson petes...@gmail.com wrote: Hi folks I've been trying to move my bundle from importing the config in to the apps config.yml with imports (which I have working fine),

Re: [symfony-users] probleme with function __tostring() undefined function

2011-03-30 Thread Alexander Haas
Your problem is not specifically related to symfony. It's a PHP concept: http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring And symfony is using it to render your model objects to strings (for choice-fields / dropdowns f.E.). So if it is the Book which can not

Re: [symfony-users] Re: [Symfony2] Security ACL: General questions

2011-03-30 Thread Tim Nagel
I've been working on an implementation too and what I've got that appears to be working reasonably well: https://github.com/merk/CommentBundle/blob/acl/Acl/SecurityThreadAcl.php#L96-- This is called from a command that will install the fallback Class ACE entry.

[symfony-users] Synfony 1.4: sfDoctrineGuard i18n

2011-03-30 Thread Bernhard Flokstra
I want to translate the signin form of sfDoctrineGuard plugin to Dutch. How can I do this? -- 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 group.

Re: [symfony-users] Synfony 1.4: sfDoctrineGuard i18n

2011-03-30 Thread Michał Piotrowski
Hi, 2011/3/30 Bernhard Flokstra symf...@eenwereldapart.nl: I want to translate the signin form of sfDoctrineGuard plugin to Dutch. How can I do this? take a look at plugins/sfDoctrineGuardPlugin/i18n/ -- Best regards, Michal http://eventhorizon.pl/ -- If you want to report a

Re: [symfony-users] Synfony 1.4: sfDoctrineGuard i18n

2011-03-30 Thread Bernhard Flokstra
Hi, So, I only have to copy one of the sf_guard.**.xml files and change the language codes to nl? Then I wonder why it issn't working. What I did is this. I duplicated /plugins/sfDoctrineGuardPlugin/i18n/sf_guard.es.xml and renamed the duplicated file to sf_guard.nl.xml. Then I changed the

[symfony-users] Re: need sample use FileField to file upload

2011-03-30 Thread Manne
I'm using the PR9 and is having the same issue. The main issue is really that I can't find any documentation at all on how to handle the submission of files through forms. Anyone that have found something to share on this topic? :-) I've got the form (with a FileField) to submit the file, but

Re: [symfony-users] sample sites

2011-03-30 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi jab, one of our customers just went online with http://www.joiz.ch/ all shiny new symfony2. cheers, david Am 29.03.2011 20:23, schrieb Jab..: Any real time websites built with symfony that I could look at to understand its capability On

[symfony-users] Re: Custom list actions with Admin generator

2011-03-30 Thread Viktoras
Simply speaking, I want a link next to New, Save, Save and add. I mean next to New in the list. -- 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

Re: [symfony-users] [Symfony2] MondoDB support in PR9

2011-03-30 Thread Christophe COEVOET
Le 30/03/2011 02:58, Diego Henrique Oliveira a écrit : Guys, Anyone can tell me why the mongodb it's no supported by Symfony PR9? I'm trying to enable MongoDbBundle and i'm getting this error: https://gist.github.com/893668 Thanks You need to get the vendors : the Mongodb ODM and the mongoDB

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread Christophe COEVOET
Le 30/03/2011 05:59, César Hernández a écrit : Ufff, now *php app/console doctrine:mongodb:data:load* PHP Fatal error: Class 'Doctrine\Common\DataFixtures\Loader' not found in /var/www/sf2-pr8-05/vendor/symfony/src/Symfony/Bundle/DoctrineAbstractBundle/Common/DataFixtures/Loader.php on

[symfony-users] Re: Custom list actions with Admin generator

2011-03-30 Thread Viktoras
Ok, a little but more details. I found out, that route tokens are different for default and my custom actions. Default: array 0 = array 0 = string 'separator' (length=9) 1 = string '' (length=0) 2 = string '/' (length=1) 3 = null 1 = array 0 = string

Re[2]: [symfony-users] Synfony 1.4: sfDoctrineGuard i18n

2011-03-30 Thread Ramunas
Try to set 'i18n' option to TRUE in your settings.yml if not set. See this reference for details: http://www.symfonyreference.com/settings-yml -- http://www.symfonyreference.com - Symfony Configuration Reference (schema.yml, databases.yml, settings.yml, etc..) 2011.03.30 Wednesday, March

AW: AW: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-30 Thread Juergen Kober
O.k., I¹ve figured it out - the backup file is created by EntityGenerator ( Doctrine\ORM\Tools): if ($this-_backupExisting file_exists($path)) { $backupPath = dirname($path) . DIRECTORY_SEPARATOR . ~ . basename($path); if (!copy($path, $backupPath)) {

[symfony-users] [Symfony2] [Doctrine2] Accessing container or any othet service right from Entity. Is it possible?

2011-03-30 Thread Alexander Kachkaev
My question is already listed in the topic. I’d like to explain why I would like to have this feature with a simplified example. I am developing a multilingual website, and some entities are containing fields like: name_en name_fr name_xx The number of languages is not big, so there is no need

[symfony-users] Re: [symfony2] using a container extension to import config

2011-03-30 Thread weaverryan
Hey Pete- Also, just an FYI - for end-user bundles (that you're not going to share or use in multiple projects), we don't really recommend using the Extension class (there's really no point to doing the extra work). That's part of the reason why the docs trail off a bit there. They will be filled

Re: [symfony-users] [Symfony2] [Doctrine2] Accessing container or any othet service right from Entity. Is it possible?

2011-03-30 Thread Gustavo Adrian
You should use a Doctrine extension to manage translations: https://github.com/l3pp4rd/DoctrineExtensions On Wed, Mar 30, 2011 at 11:52 AM, Alexander Kachkaev alex.kachk...@gmail.com wrote: My question is already listed in the topic. I’d like to explain why I would like to have this feature

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread César Hernández
ok... has gone a little ... *file: config.yml* doctrine_mongo_db: connections: default: server: mongodb://localhost:27017 options: connect: true default_document_manager: default document_managers: default: mappings:

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread Gustavo Adrian
Your function should look like: public function load($manager) { $user1 = new User(); $user1-setName('Cesar Hernandez'); $manager-persist($user); $user2 = new User(); $user2-setName('May-lhing Sanchez'); $manager-persist($user); $user3 = new User();

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread César Hernández
mongod is runnig phpinfo()... mongo MongoDB Supportenabled Version 1.1.4 DirectiveLocal ValueMaster Value mongo.allow_empty_keys00 mongo.allow_persistent11 mongo.auto_reconnect11 mongo.chunk_size262144262144 mongo.cmd$$ mongo.default_hostlocalhostlocalhost mongo.default_port27017 27017

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread Gustavo Adrian
Mongo class is used to create a connection to MongoDB from PHP ( http://php.net/manual/es/book.mongo.php ). You don't have to create an instance yourself. Your problem is that the class Mongo is not being found. Can you verify if you have two php.ini, and if that's the case, if the extension is

Re: [symfony-users] Re: How to retrieve related objects with ACL

2011-03-30 Thread badllama77
I would think that would work, and ironically the same logic could be used to do exactly what I wanted to do. I would consider reversing the logic though, and adding a block permission. That way it is exclusionary and lighter. The only advantage I can see to having a separate relationship at

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread César Hernández
Continuous progress... but now I have a new problem *file: config.yml* doctrine_mongo_db: connections: default: server: mongodb://localhost:27017 options: connect: true default_document_manager: default document_managers:

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread César Hernández
Thanks Gustavo, effectively add the driver was missing in the CLI php.ini 2011/3/31 Gustavo Adrian comfortablynum...@gmail.com Mongo class is used to create a connection to MongoDB from PHP ( http://php.net/manual/es/book.mongo.php ). You don't have to create an instance yourself. Your

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread Christophe COEVOET
Le 30/03/2011 20:14, César Hernández a écrit : Continuous progress... but now I have a new problem *file: config.yml* doctrine_mongo_db: connections: default: server: mongodb://localhost:27017 options: connect: true

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread Gustavo Adrian
You don't have the container on the fixtures by default. You have to implement the ContainerAwareInterface interface. In your case you don't need the container. Your method should be: public function load($manager) { $persona1 = new Personas(); $persona1-setNombre('Cesar

Re: [symfony-users] Re: ODM insisting ... Problems with data / load

2011-03-30 Thread César Hernández
Thanks to all and it works ...! -- César Hernández Anzoátegui - Venezuela dpce...@gmail.com LinuxCounter: 285.345 CIV: 122.539 -- 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

[symfony-users] erreur Call to a member function getprenom() on a non-object

2011-03-30 Thread mohamed sabri ben sassi
salut ,, j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec dans le template avec la fonction getprenom() il m'affiche l'erreur suivante Fatal error: Call to a member function getprenom() on a non-object in C:\development\sfprojects\gestion des

Re: [symfony-users] [Symfony2] [Doctrine2] Accessing container or any othet service right from Entity. Is it possible?

2011-03-30 Thread Alexander Kachkaev
Gustavo, thank you very much for your reply. Those extensions look very powerful! But to my mind the approach you’ve mentioned is more appropriate for applications having many languages rather than two or three. Translations are kept in separate tables, so there is more load on the database.

Re: [symfony-users] Re: How to retrieve related objects with ACL

2011-03-30 Thread badllama77
@johannes: It is simple enough I have a record that can be related to one or more users who have X permissions. Since I am planning on using the ACL I was hoping to avoid creating a second redundant link between the record and the users. I think however for the time being I will take the

Re: [symfony-users] [Symfony2] [Doctrine2] Accessing container or any othet service right from Entity. Is it possible?

2011-03-30 Thread Gustavo Adrian
I still think the best alternative is to use an extension with i18n tables to manage translations. It's a lot easier to handle translations and it doesn't mean it overloads your DB that much. It's just one JOIN. You can always use cache strategies to avoid performance problems. Still, if you

Re: [symfony-users] [Symfony2] [Doctrine2] Accessing container or any othet service right from Entity. Is it possible?

2011-03-30 Thread Christophe COEVOET
Le 30/03/2011 21:38, Alexander Kachkaev a écrit : Gustavo, thank you very much for your reply. Those extensions look very powerful! But to my mind the approach you’ve mentioned is more appropriate for applications having many languages rather than two or three. Translations are kept in

[symfony-users] Re: using a container extension to import config

2011-03-30 Thread Pete Sisson
Thanks for the replies guys. Looks like I just got the naming messed up. I see the point re Extension class being for distributing so a bit overkill otherwise. Cheers. Pete On Mar 30, 3:55 pm, weaverryan weaverr...@gmail.com wrote: Hey Pete- Also, just an FYI - for end-user bundles (that

[symfony-users] Re: [PR8] AsseticBundle Configuration + Usage

2011-03-30 Thread Wizermil
Hi Sven, I have the same issue with PR9, I'm only able to generate the debug assets. For that I used write_to in app/config/config.yaml like you wrote but prod environment nothing I don't know why. BTW here is the code I use in my twig template {% stylesheets

[symfony-users] Validation in Symfony

2011-03-30 Thread Illya Klymov
Hi! I have a question on how to build an effective validation system in Symfony2+Doctrine. I want to make sure that my entity will never be stored in DB in incorrect state. Also, I want to use symfony validation to display validation errors in forms in correct way. So I've implented service,

Re: [symfony-users] introspect a functional test uncaught exception

2011-03-30 Thread Luis Cordova
finally switched to sf2, it is much better On Mon, Nov 8, 2010 at 12:26 PM, Luis Cordova cordo...@gmail.com wrote: hi, how I removed the @ from the mkdir on the validatedFile.class.php core file on symfony and now I get: exception 'RuntimeException' with message 'PHP sent a warning error

Re: [symfony-users] Validation in Symfony

2011-03-30 Thread Bernhard Schussek
Hi Illya, 2011/3/30 Illya Klymov illya.kly...@gmail.com: Another problem is binding some validation checks to corresponding form fields. As far as i understand, getPropertyPath is used to retrieve data from ConstraintViolations and to bind error to corresponding form field. I have a method

[symfony-users] Symfony + CMS

2011-03-30 Thread Javier Garcia
Hi, someone to tell me what pros and cons combining symfony with drupal? Should i use better any other CMS based on symfony (sympal, diem,...) ? What is your experience? Bye Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] [Symfony2] link_to() helper for Symfony2???

2011-03-30 Thread oscar balladares
Hi everybody [?] I need the functionallity of the link_to() helper. It generates a link tag when clicked it triggers an Onclick event that submit an embbeded form which is similar to: a href='#' onclick=if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display

[symfony-users] Re: [PR8] AsseticBundle Configuration + Usage

2011-03-30 Thread Albert Jessurum
On Wednesday, March 30, 2011 10:05:34 PM UTC+2, Wizermil wrote: Hi Sven, I have the same issue with PR9, I'm only able to generate the debug assets. For that I used write_to in app/config/config.yaml like you wrote but prod environment nothing I don't know why. BTW here is the code I

[symfony-users] Re: [Symfony2][PR8] AsseticBundle Configuration + Usage

2011-03-30 Thread Albert Jessurum
In my view I have the following code to generate assets: File: @MyBundle/Resources/views/layout.twig.html {% assets 'mybundle/css/*.css' output='css/all.css' %} {{ asset_url }} {% endassets %} You're missing the @ when refering to a resource. It should be {% assets