Re: [symfony-users] What do you use symphony for?

2010-02-01 Thread Stefan Paschke
Hi I have used symfony for two social network sites, one being a restaurant recommendation site, the other a casting platform for movie actors / producers. Both are based on quite complex relational databases which I model with Propel, enjoying its speed and flexibility. The main part of my

[symfony-users] Symfony migrations

2010-02-01 Thread Romain Pouclet
Hi all, I am currently working on a Symfony application which is now in production. I still have to work on it so I have to set up some migrations but I must admit I'm completely lost here. I found a publication about setting up Doctrine Migrations

Re: [symfony-users] Re: Help please! json_encode problem in symfony

2010-02-01 Thread Dong YANG
Hi Eno and Dejan, Thanks for your replies, I found why I got always empty when calling json_encode in this method, in fact, the object returnd by $this-getRoute()-getObject() contains only protected and privated members, and json_encode treats only public members, so as result I got always

Re: [symfony-users] mgI18nPlugin with sf 1.3/1.4

2010-02-01 Thread Thomas Rabaix
Yes it is On Sat, Jan 23, 2010 at 7:06 PM, Stéphane stephane.er...@gmail.com wrote: I don't. I didn't knew this plugin until now. Thanks, will give it a try monday on stable sf1.4 Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

[symfony-users] array of array

2010-02-01 Thread DoRiaN
Hello (i'm french excuse me for my englis), I try to use an array in widget name with $this-widgetSchema- setNameFormat('test[%s]'); $this-setWidget('example[0]', On submit I've : Unexpected extra form field named example. Thanks, Dorian -- You received this message because you are

[symfony-users] Re: sfDoctrineGuard and more than one Profile

2010-02-01 Thread Tom Ptacnik
I don't know if you are asking for such a simple think, or I just don't uderstand :) You can simply put all schemas your tables into the schema.yml file and then add a relations between sf_guard_user table and you tables. On 31 led, 21:23, ReynierPM rper...@uci.cu wrote: Hi every: I'm

Re: [symfony-users] What do you use symphony for?

2010-02-01 Thread Ravi Undupitiya
Hey, Sorry guys, this is an academic report, I don't think I can publish it online, not at least I get my grade back. Thanks again for the support. I'm really looking forward to learning symfony myself for some projects I have in mind. Best, Ravi On Mon, Feb 1, 2010 at 9:18 AM, Stefan

[symfony-users] Re: sfForm standalone - Upload file with prefix

2010-02-01 Thread DoRiaN
Yes i have undefined index in $_FILES. It's logical. On 1 fév, 14:03, Tom Ptacnik to...@tomor.cz wrote: Have you tried something like $oFormFile-bind(array(), array('file' = $_FILES ['myPrefix_file'])); ? On 31 led, 23:07, DoRiaN doria...@gmail.com wrote: Up please. On 26 jan, 15:47,

[symfony-users] MVC - where to put complex application code in symfony

2010-02-01 Thread Tom Ptacnik
Hi, I want to ask you where you put complex application code when developing with symfony (some bigger applications). When I don't develope with symfony faramework I've got this tiers: - Model classes (only beans - attributes and getters setters, this class doesn't do anything by itself) - DAO

Re: [symfony-users] MVC - where to put complex application code in symfony

2010-02-01 Thread Sid Bachtiar
You could always create your own business logic classes and call them from controller. On Tue, Feb 2, 2010 at 2:46 AM, Tom Ptacnik to...@tomor.cz wrote: Hi, I want to ask you where you put complex application code when developing with symfony (some bigger applications). When I don't

[symfony-users] symfony 1.2 - multiple (same) forms

2010-02-01 Thread erikms
Hi all, I am trying to do the following: I have an AJAX request that submits form data, which if it validates is saved into the database. If the data does not validate, an edit form is returned so the user may correct her data. However, it may happen that more than one edit form is returned. This

[symfony-users] Re: array of array

2010-02-01 Thread DoRiaN
With $this-embedForm() it's OK. Is there an alternative? On 1 fév, 12:33, DoRiaN doria...@gmail.com wrote: Hello (i'm french excuse me for my englis), I try to use an array in widget name with $this-widgetSchema- setNameFormat('test[%s]'); $this-setWidget('example[0]',   On submit

Re: [symfony-users] Re: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ReynierPM
On 2/1/2010 8:12 AM, Tom Ptacnik wrote: I don't know if you are asking for such a simple think, or I just don't uderstand :) You can simply put all schemas your tables into the schema.yml file and then add a relations between sf_guard_user table and you tables. Hi: I know that adding

[symfony-users] Re: Apostrophe, our CMS framework, is now Symfony 1.4 ready

2010-02-01 Thread Hal
Hi Tom This project looks very interesting, and I am very impressed with your screencast. CMSs are extremely popular with technical, non-technical, individuals and businesses alike. Therefore, if apostrophe is good enough, it could easily garner attention independently of it's relationship with

[symfony-users] Nested set rendering

2010-02-01 Thread Romain Pouclet
Hi there, I'm heavily working w/ Doctrine NestedSet behavior. I have a tree I'd like to render in a complex way. Let say I have a path for my selected node : node1 node2 node3 I'd like to render it so I can display : ul linode 1 sibling 1/li linode 1 sibling 2/li linode 1 sibling 3/li li

[symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread maxxyb
Hi I am trying to upgrade my Symfony project and am having problems with the Propel portion of the upgrade. For some reason I can see no Propel tasks in the Available Tasks list when I used the command symfony list. Can anyone tell me what I may be doing wrong? I have tried to upgrade to both

[symfony-users] Scheme definition help - symfony 1.4

2010-02-01 Thread AnTiLo0p
I'm trying to make the following scheme work, but I just can't do it... I'm getting mess with all the doctrine one to many relations, could you please give me any adivise?, I'm getting following error after doing a doctrine-insert-sql: SQLSTATE[42000]: Syntax error or access violation: 1072

[symfony-users] UNABLE TO SUMMIT JAMB REGISTRATION PAGE OF THIS URL;http://www.jambutme.com/jambreg/saveReg

2010-02-01 Thread segun
The server returned a 500 Internal Server Error. WHEN I TRY TO SUMMIT A FILLED FROM THE ADDRESS BELOW. HOPE YOU will fix it as soon as possible. -- 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] Simple routing not woking well

2010-02-01 Thread HiDDeN
Hello. I have defined this homepage route in my routing.yml : homepage: url: / param: { module: home, action: index } I have defined the logo in my site to be pointing to that route this way: a href=?php url_for('@homepage') ?img id=logo src=http:// www.example.com/images/logo.jpg //a

Re: [symfony-users] Nested set rendering

2010-02-01 Thread Bernhard Schussek
You could, for instance, write a recursive render helper: function render_nested_set(Doctrine_Collection $collection) { $output = ul\n; foreach ($collection as $record) { $output .= li.$record; // __toString(), or whatever you like if ($record-getNode()-hasChildren()) {

Re: [symfony-users] Nested set rendering

2010-02-01 Thread Romain Pouclet
Problème is, I want my rendering to follow a path, as you can see in my example. Anyway, a recursive render helper is a good start I guess! Maybe I should add a 'path' parameter helper to make something like : function render_nested_set(Doctrine_Collection $collection, array $path) { // ... }

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-02-01 Thread ashton honnecke
I have detailed the process here: http://blog.honnecke.us/2010/01/using-sfdoctrineguardusers-external-authentication/ On Fri, Jan 29, 2010 at 2:20 PM, ashton honnecke ahonne...@gmail.com wrote: The way that I addressed this was to:  * Create a custom form for the signin process  * In that

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Andrei Dziahel
Hi. Enable sfPropelPlugin in ProjectConfiguration.class.php. 2010/2/1 maxxyb max...@gmail.com Hi I am trying to upgrade my Symfony project and am having problems with the Propel portion of the upgrade. For some reason I can see no Propel tasks in the Available Tasks list when I used the

[symfony-users] Re: array of array

2010-02-01 Thread DoRiaN
Finally, I can't bind with $this-embedForm(), it's not OK. On 1 fév, 15:16, DoRiaN doria...@gmail.com wrote: With $this-embedForm() it's OK. Is there an alternative? On 1 fév, 12:33, DoRiaN doria...@gmail.com wrote: Hello (i'm french excuse me for my englis), I try to use an array in

[symfony-users] Re: array of array

2010-02-01 Thread DoRiaN
I'm sorry, bind it's ok with $oForm-getEmbeddedForm(..)-bind(...) Is there an alternative? On 1 fév, 17:23, DoRiaN doria...@gmail.com wrote: Finally, I can't bind with $this-embedForm(), it's not OK. On 1 fév, 15:16, DoRiaN doria...@gmail.com wrote: With $this-embedForm() it's OK. Is

[symfony-users] How to set trim default option on all widgets in a Form

2010-02-01 Thread DoRiaN
Hello (i'm french, excuse me for my english), How to set trim default option on all widgets in a Form ? Thanks, Dorian -- 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

[symfony-users] Cross-Server Communication from Controllers

2010-02-01 Thread Paul Frazee
Heyo. This is a repost from the forums; I'm in need of some sage advice here. Read on: The company keeps two databases - the master, which holds sensitive data, and the slave, which replicates only the insensitive data. This is actually pretty easy in MySQL, you should check it out. Anywho,

[symfony-users] Re: Apostrophe, our CMS framework, is now Symfony 1.4 ready

2010-02-01 Thread Hal
Tom Another comment I have literally just heard from a user was, It looks interesting, albeit in a secretive way! i.e you have to sign-up before you can actually see anything. This was the response from someone who is a decision-maker in a company; involved in IT in an overview sense, but not

[symfony-users] generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-01 Thread l3ia-etu
hi everyone, i would like to customize an edit action: i would like to disallow the modification of a field from user that has not a credential: i can disallow the edition of a field for all users: config: form: display: NONE: [article_id] Editable: [author, content,

[symfony-users] Re: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ashton
I think that you are looking for something like this: detect_relations: true Profile: columns: sf_guard_user_id: integer(4) first_name: string(255) middle_name: string(255) last_name: string(255) email_address: string(255) relations: User: class: sfGuardUser

Re: [symfony-users] Re: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ReynierPM
On 2/1/2010 12:41 PM, ashton wrote: I think that you are looking for something like this: detect_relations: true Profile: columns: sf_guard_user_id: integer(4) first_name: string(255) middle_name: string(255) last_name: string(255) email_address: string(255)

[symfony-users] sfWidgetFormChoice and Foreign keys problems!

2010-02-01 Thread wueb
Hi. I'm having 2 problems and i though someone here could help me. 1st PROBLEM: I have a widget called id_empresa which is a sfWidgetFormChoice with multiple choices, like this: $this-widgetSchema['id_empresa'] = new sfWidgetFormChoice( array( 'choices' = $empresas,

[symfony-users] Re: MVC - where to put complex application code in symfony

2010-02-01 Thread ashton
I think that in symfony, the DAO classes that you are referring to are right by the models: ahonne...@dev1:~/repos/sv_ng$ ll lib/model/doctrine/ FeaturedSearch* -rw-r--r-- 1 ahonnecke ahonnecke 302 Jan 9 18:42 lib/model/doctrine/ FeaturedSearch.class.php -rw-r--r-- 1 ahonnecke ahonnecke 60 Jan

[symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread pghoratiu
If you have problems with data transmission I suggest you try out one of the following functions: http://php.net/manual/en/function.convert-uuencode.php http://www.php.net/manual/en/function.base64-encode.php to convert the binary string into something that can be safely transfered over the

Re: [symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread David Wang
i would recommend your first option which is going over ssl. if this is all within the same network, then SSL will be enough to keep prying eyes out. if its over public networks, then would probably suggest trying to figure out what is going wrong with the encrypt/decrypt function you are

[symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread Paul Frazee
Thanks, that did solve my transmission problem. I decided to use base64 -- it's 2% smaller! ;) On Feb 1, 12:59 pm, pghoratiu pghora...@gmail.com wrote: If you have problems with data transmission I suggest you try out one of the following

Re: [symfony-users] UNABLE TO SUMMIT JAMB REGISTRATION PAGE OF THIS URL;http://www.jambutme.com/jambreg/saveReg

2010-02-01 Thread Alexandru-Emil Lupu
Try to switch to dev env an see the problem in that page. sent via htc magic On Feb 1, 2010 5:40 PM, segun oluwase...@gmail.com wrote: The server returned a 500 Internal Server Error. WHEN I TRY TO SUMMIT A FILLED FROM THE ADDRESS BELOW. HOPE YOU will fix it as soon as possible. -- You

Re: [symfony-users] Simple routing not woking well

2010-02-01 Thread Alexandru-Emil Lupu
No echo of the url directive sent via htc magic On Feb 1, 2010 5:40 PM, HiDDeN davidmoralesmoj...@gmail.com wrote: Hello. I have defined this homepage route in my routing.yml : homepage: url: / param: { module: home, action: index } I have defined the logo in my site to be pointing to

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-01 Thread Richtermeister
Hey there, I know that sounds like a good idea, but it really isn't. The right place to control access to form fields is in the form class itself, because think about it, the same form that your admin generator uses can be used / embedded elsewhere too, so your credentials restriction wouldn't

[symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread Paul Frazee
This is over public networks. I did get the encryption to work, but I'm curious why you recommend not using SSL in this case? On Feb 1, 1:09 pm, David Wang dw...@udfi.biz wrote: i would recommend your first option which is going over ssl. if this is all within the same network, then SSL will

Re: [symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread David Wang
Sorry, I meant to infer that you should use both SSL and Encryption. -d On Feb 1, 2010, at 2:53 PM, Paul Frazee wrote: This is over public networks. I did get the encryption to work, but I'm curious why you recommend not using SSL in this case? On Feb 1, 1:09 pm, David Wang dw...@udfi.biz

Re: [symfony-users] Symfony migrations

2010-02-01 Thread Eno
On Mon, 1 Feb 2010, Romain Pouclet wrote: Hi all, I am currently working on a Symfony application which is now in production. I still have to work on it so I have to set up some migrations but I must admit I'm completely lost here. I found a publication about setting up Doctrine

[symfony-users] admin redirect

2010-02-01 Thread DC
Hello, I've been spending about 2 hours trying to figure out how to implement something like this. I have the following tables: Make: id, name Model: id, name, make_id In the admin backend, on the makes list, I want for each Make entry, a list to all Models for that make this: public function

[symfony-users] Re: Simple routing not woking well

2010-02-01 Thread HiDDeN
Ouch! Thanks... On 1 feb, 19:33, Alexandru-Emil Lupu cont...@alecslupu.ro wrote: No echo of the url directive sent via htc magic On Feb 1, 2010 5:40 PM, HiDDeN davidmoralesmoj...@gmail.com wrote: Hello. I have defined this homepage route in my routing.yml : homepage:  url:   /  param:

[symfony-users] Logging not working.

2010-02-01 Thread Darren884
I am having a hard time finding why I can access an admin module through the development controller but not the normal controller. I set all logging to On but there is still no logging! What am I doing wrong? Here is my logging.yml file: all: enabled: on level:err rotate: off

Re: [symfony-users] Problems while trying to create a new project and using --installer option

2010-02-01 Thread ReynierPM
On 1/25/2010 12:59 PM, Eno wrote: Have you tried using an absolute path? Hi Eno: I move my development enviroment to a dedicated Linux server. So I try this 3 commands: 1) r...@ep-reynier:/var/www/sfwebacula# symfony generate:project --installer=./installer.php sfwebacula ReynierPM The

[symfony-users] Redirecting to filtered admin page

2010-02-01 Thread DC
Can anyone tell me how to redirect from an admin list item to another admin list, filtering the second one by secondList.firstListItem_id = firstListItem.id ? I can't, for the life of me, get over the CSRF attack detected message! Please help me, Thanks. -- You received this message because

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Rebecca Bielecki
Hi Thanks for your response ... but I have already done that with no success. Any other ideas? maxxyb - Original Message - From: Andrei Dziahel To: symfony-users@googlegroups.com Sent: Tuesday, February 02, 2010 12:21 AM Subject: Re: [symfony-users] No Propel in Available

[symfony-users] Phing and Symfony 1.2

2010-02-01 Thread maxxyb
Does Symfony 1.2 come bundled with Phing? -- 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] It's possible to use two differents DB in the same application

2010-02-01 Thread ReynierPM
Hi: I have a application running in some server with a DB (db1 from now) created and I don't have permissions to add tables or change something else. I have other DB (db2 from now) server in wich I want to put sfDoctrineGuard tables for user management. My question is: it's possible to deal

Re: [symfony-users] It's possible to use two differents DB in the same application

2010-02-01 Thread Alvaro Videla
I think this is in the docs, in the definitive guide somewhere, anyway... create a file db1.schema.yml with the tables for that db and then db2.schema.yml with the other tables. Build the model and that's it, each BasePeer, in the case of Propel will have a constant with the database to

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Rebecca Bielecki
This is the list of Available Tasks that I receive: Usage: symfony [options] task_name [arguments] Options: --help -H Display this help message. --quiet -q Do not log messages to standard output. --trace -t Turn on invoke/execute

Re: [symfony-users] It's possible to use two differents DB in the same application

2010-02-01 Thread ReynierPM
Hi Alvaro and thx for your reply: On 2/1/2010 8:54 PM, Alvaro Videla wrote: I think this is in the docs, in the definitive guide somewhere, anyway... You're right I check and it's there (Chapter 8: Database Connections) but I not understand some parts. For example the guide says this: For

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Rebecca Bielecki
And the only plugins that appear in my project_autoload.cache file are: \PEAR\symfony\plugins\sfCompat10Plugin/lib;i:1;s:69:C:\wamp\bin\php\php5.2.5\PEAR\symfony\plugins\sfProtoculousPlugin/lib;}i:2;a:0:{}} - Original Message - From: Andrei Dziahel To:

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Alexandru-Emil Lupu
in your ProjectConfiguration.class.php add this: $this-enablePlugins(array('sfPropelPlugin')); and after that clear your cache. try again and see if the propel is there... if not, paste here your ProjectConfiguration.class.php On Tue, Feb 2, 2010 at 4:41 AM, Rebecca Bielecki max...@gmail.com

Re: [symfony-users] Problems while trying to create a new project and using --installer option

2010-02-01 Thread Alexandru-Emil Lupu
Make sure you provide the full path (/var/www/), and after that, make sure that installer is readable by the php cli On Tue, Feb 2, 2010 at 2:34 AM, ReynierPM rper...@uci.cu wrote: On 1/25/2010 12:59 PM, Eno wrote: Have you tried using an absolute path? Hi Eno: I move my development

[symfony-users] I18n: database configuration

2010-02-01 Thread EddieG
Hi everybody, I'm struggling to get my I18n database to work. On my local machine everything works fine using the following setting: [quote title=Quote:][url]mysql://MYUSER:my...@localhost/MY_DB[/url][/ quote] But my production server needs something like this: [quote

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Rebecca Bielecki
Hi I have added that call as you suggest and cleared the cache but still no joy. My ProjectConfiguration.class.php ?php require_once 'C:\wamp\bin\php\php5.2.5\PEAR\symfony\autoload\sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Rebecca Bielecki
I am thinking that my best option at this stage is to start from scratch - ie install wamp and symfony from scratch and go straight to 1.4.1 of Symfony and just alter my project to account for deprecated methods. Is this overkill? - Original Message - From: Alexandru-Emil Lupu