[symfony-users] Re: SETUP SERVER
- permissions - check error log and share with us On Fri, May 22, 2009 at 7:20 AM, Nathan Rzepecki webmas...@lionslair.net.au wrote: And make sure your permissions are correct. - Nathan Rzepeckihttp://www.lionslair.net.au a Frank He wrote: Sounds like you have to update your configue file, such as database.yml, app.yml, settings.yml etc. You can use frontend_dev.php to see where is the error. On Thu, May 21, 2009 at 10:22 PM, janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can now run it but my problem is that when i clear cache it delete all in the cache and when im trying to access it does not work anymore i need to copy my cache from my old server and to my new one. Also my new server keeps ponting to my old database what do I need to configure so that I can point it to may new lo database server??? Thanks, -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] does sfPropelActAsTaggableBehaviorPlugin need any change to my schema.yml?
I'm looking at the install instructions for sfPropelActAsTaggableBehaviorPlugin: http://www.symfony-project.org/plugins/sfPropelActAsTaggableBehaviorPlugin Where do the tags go? Do I need to create a tag database table? Does the plugin do that itself? --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: forum plugin for propel sf 1.2
Hi, My contribution request is still pending. I hope it will be approved. If yes, i am sure, i can commit the migrated version within days (haven't done everything till now). - Frank Am 19.05.2009 um 00:40 schrieb Frank He: Yes, I like to have a try with this plugin also. Thanks. On Mon, May 18, 2009 at 5:28 PM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: do you have it developed? maybe you could upload it as pear package somwhere else... alecs On Tue, May 19, 2009 at 12:21 AM, Frank Stelzer d...@bleedingmoon.de wrote: I wanted to branch this plugin and make it compatible to 1.2. However my contribution request is open since days and i do not have commit permissions :/ Am 18.05.2009 um 22:51 schrieb Alexandru-Emil Lupu: HI there! do you know a simple forum application compatible with symfony 1.2 ? i know that sfSimpleForumPlugin is available just for symfony 1.1 Also sfZnForumPlugin it sems is unstable. Thanks in advance. Alecs -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Propel and 1:1 relationships
The manual hydration is the problem, I'm not really sure how to accomplish it On May 22, 8:11 am, Gareth McCumskey gmccums...@gmail.com wrote: You mentioned you manually created the join but the doSelect returns nothing. From my experience with Propel 1.2 you would need to use a doSelectRS to return the resultset. But in 1.3 you use doSelectStmt() to run your query with join and get aresaultset which you can then hydrate yourself manually. Would this help? On Thu, May 21, 2009 at 10:54 PM, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the interest in my problem, Richtermister. The code I have shown above accounts only for a small part of my model, but I thought it would be sufficient to convey the point. There really isn't anything special about the Option 0,1,2,3,... etc, but I will provide you with as much information as I can considering the nature of the project Consider the following: The Record model accounts for a particular governmental system. It has the name and address of the person who submitted the request, an unique number, and a few other miscellaneous fields. There is a second model, RecordCriteria, tied in a 1:1 relationship with the first model. It has only boolean fields representing different sets of requirements that the applicant must meet, and a single float field that calculates the weight of the application, based on the requirements. There are MANY queries run on those 2 tables, and often a lot of records have to be displayed at once. Of course, this results in an additional query being executed for every single record that I show. This should really be avoided. It results in over 800 queries on one particular page, where about 10 should suffice. Normally Propel provides doSelectJoin(related_table) methods, and when I was designing the database, I believed that it would do so for the 1:1 relation too, providing something like RecordPeer::doSelectJoinRecordCriteria(). I was wrong. No automatic method for joining the related table is available. So my question is simply, how to do a custom join for 1:1 in Propel 1.3, in a fashion similar to what David Ashwood purposed. As I mentioned, the resources he provided are unfortunately not applicable to Propel 1.3. On May 21, 8:57 pm, Richtermeister nex...@gmail.com wrote: Hey Crafty, I think one issue is that it's not really clear what you're trying to do.. I have no idea what this option0 / option1 setup is all about.. If you can give an example of what you're trying to do, maybe we can help better. Daniel On May 20, 3:20 pm, Crafty_Shadow vankat...@gmail.com wrote: Once again, a shameless bump! I tried several approaches to no avail. Halp! On May 19, 12:48 pm, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the links, but those are of no help to me. Each and every single of the resources you have pointed me to are about propel 1.2. As I mentioned in my original post, I have written such behavior for propel 1.2, but the problem is that I'm currently dealing with 1.3, which is quite different. On May 19, 12:09 pm, David Ashwood da...@inspiredthinking.co.uk wrote: Some links that talk about what you're after: http://forum.symfony-project.org/index.php/m/14692/http://groups.goog .. cb274ehttp:// trac.symfony-project.org/wiki/ApplyingCustomJoinsInDoSelect And a plugin written that appears to do what you're after: http://www.symfony-project.org/plugins/sfPropelImpersonatorPlugin Alternatively there's also the DbFinder plugin that gives you more control over what's happening and a very good way to have an app that allows you to switch ORM later should you wish to jump to Doctrine (far cleaner and more flexible than Propel imho): http://www.symfony-project.org/plugins/DbFinderPlugin -Original Message- From: symfony-users@googlegroups.com [mailto: symfony-us...@googlegroups.com] On Behalf Of Crafty_Shadow Sent: 19 May 2009 10:52 To: symfony users Subject: [symfony-users] Re: Propel and 1:1 relationships I am going to perform what is know as a shameless bump. I believe that this problem requires discussion, as having a 1:1 relationship should be fairly common, and it is only natural to seek way optimize it's workings. On May 17, 7:14 pm, Crafty_Shadow vankat...@gmail.com wrote: Hey guys, I have the following question - how do I makepropelhydrate1:1 relationships automatically ? When we have a normal 1:m relationship the peer class provides methods like doSelectJoinWhaever, but no such method is available when using a1:1 The relation itself works just as it's expected to, but every call to get the related object results in an extra query. from my schema.yml:
[symfony-users] Re: Propel and 1:1 relationships
Taken from the Propel upgrade info for moving from propel 1.2 to 1.3 ( http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Upgrading): ?php // example of how to manually hydrate objects $stmt = AuthorPeer::doSelectStmt(new Criteria()); while($row = $stmt-fetch(PDO::FETCH_NUM)) { $a = new Author(); $a-hydrate($row); } On Fri, May 22, 2009 at 1:19 PM, Crafty_Shadow vankat...@gmail.com wrote: The manual hydration is the problem, I'm not really sure how to accomplish it On May 22, 8:11 am, Gareth McCumskey gmccums...@gmail.com wrote: You mentioned you manually created the join but the doSelect returns nothing. From my experience with Propel 1.2 you would need to use a doSelectRS to return the resultset. But in 1.3 you use doSelectStmt() to run your query with join and get aresaultset which you can then hydrate yourself manually. Would this help? On Thu, May 21, 2009 at 10:54 PM, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the interest in my problem, Richtermister. The code I have shown above accounts only for a small part of my model, but I thought it would be sufficient to convey the point. There really isn't anything special about the Option 0,1,2,3,... etc, but I will provide you with as much information as I can considering the nature of the project Consider the following: The Record model accounts for a particular governmental system. It has the name and address of the person who submitted the request, an unique number, and a few other miscellaneous fields. There is a second model, RecordCriteria, tied in a 1:1 relationship with the first model. It has only boolean fields representing different sets of requirements that the applicant must meet, and a single float field that calculates the weight of the application, based on the requirements. There are MANY queries run on those 2 tables, and often a lot of records have to be displayed at once. Of course, this results in an additional query being executed for every single record that I show. This should really be avoided. It results in over 800 queries on one particular page, where about 10 should suffice. Normally Propel provides doSelectJoin(related_table) methods, and when I was designing the database, I believed that it would do so for the 1:1 relation too, providing something like RecordPeer::doSelectJoinRecordCriteria(). I was wrong. No automatic method for joining the related table is available. So my question is simply, how to do a custom join for 1:1 in Propel 1.3, in a fashion similar to what David Ashwood purposed. As I mentioned, the resources he provided are unfortunately not applicable to Propel 1.3. On May 21, 8:57 pm, Richtermeister nex...@gmail.com wrote: Hey Crafty, I think one issue is that it's not really clear what you're trying to do.. I have no idea what this option0 / option1 setup is all about.. If you can give an example of what you're trying to do, maybe we can help better. Daniel On May 20, 3:20 pm, Crafty_Shadow vankat...@gmail.com wrote: Once again, a shameless bump! I tried several approaches to no avail. Halp! On May 19, 12:48 pm, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the links, but those are of no help to me. Each and every single of the resources you have pointed me to are about propel 1.2. As I mentioned in my original post, I have written such behavior for propel 1.2, but the problem is that I'm currently dealing with 1.3, which is quite different. On May 19, 12:09 pm, David Ashwood da...@inspiredthinking.co.uk wrote: Some links that talk about what you're after: http://forum.symfony-project.org/index.php/m/14692/http://groups.goog.. .. .. cb274ehttp:// trac.symfony-project.org/wiki/ApplyingCustomJoinsInDoSelect And a plugin written that appears to do what you're after: http://www.symfony-project.org/plugins/sfPropelImpersonatorPlugin Alternatively there's also the DbFinder plugin that gives you more control over what's happening and a very good way to have an app that allows you to switch ORM later should you wish to jump to Doctrine (far cleaner and more flexible than Propel imho): http://www.symfony-project.org/plugins/DbFinderPlugin -Original Message- From: symfony-users@googlegroups.com [mailto: symfony-us...@googlegroups.com] On Behalf Of Crafty_Shadow Sent: 19 May 2009 10:52 To: symfony users Subject: [symfony-users] Re: Propel and 1:1 relationships I am going to perform what is know as a shameless bump. I believe that this problem requires discussion, as having a 1:1 relationship should be fairly common, and it is only natural to seek way optimize
[symfony-users] Re: id in url by default
Ok but if a member don't allow cookies ... he can't connect??? THX On 21 mai, 17:57, Frank Stelzer d...@bleedingmoon.de wrote: This is your session id. Define php/apache that your session handling is only cookie based and your done. Am 21.05.2009 um 17:14 schrieb saturn1...@hotmail.com: Hello, sometimes i have this king of link in my urls : www.site.com/page?symfony=d21599d476b727cfb571f10668bcf1b5 How can i disable this?? Thank's you ! --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: id in url by default
This is the only way to have secure sessions. 99% of sites use cookie based sessions. Is there some business requirement that users not use cookies? otherwise i dont think you need to worry On Fri, May 22, 2009 at 2:19 PM, saturn1...@hotmail.com saturn1...@hotmail.com wrote: Ok but if a member don't allow cookies ... he can't connect??? THX On 21 mai, 17:57, Frank Stelzer d...@bleedingmoon.de wrote: This is your session id. Define php/apache that your session handling is only cookie based and your done. Am 21.05.2009 um 17:14 schrieb saturn1...@hotmail.com: Hello, sometimes i have this king of link in my urls : www.site.com/page?symfony=d21599d476b727cfb571f10668bcf1b5 How can i disable this?? Thank's you ! -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Propel and 1:1 relationships
Ok, I managed to write a class that does exactly what I needed, thanks for the help. I'm going to post it here: public static function doSelectJoinRecordCriteria(Criteria $criteria, PropelPDO $con = null) { $criteria = clone $criteria; RecordPeer::addSelectColumns($criteria); // add columns of the Record object to the criteria $startcol = (RecordPeer::NUM_COLUMNS - RecordPeer::NUM_LAZY_LOAD_COLUMNS); // this will be used as offset to the RecordCriteria table columns later RecordCriteriaPeer::addSelectColumns($criteria); // add columns of the RecordCriteria $criteria-addJoin(RecordPeer::ID, RecordCriteriaPeer::ID); // join on ID $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt-fetch(PDO::FETCH_NUM)) { $primary_key = RecordPeer::getPrimaryKeyHashFromRow($row, 0); if (!$record_object = RecordPeer::getInstanceFromPool ($primary_key)) // check Propel's object pool for our Record object, and create it if it's not found { $record_object = new Record(); $record_object-hydrate($row); RecordPeer::addInstanceToPool($record_object, $primary_key); } $primary_key = RecordCriteriaPeer::getPrimaryKeyHashFromRow ($row, $startcol); // same as the record primary key, but I put it for clarification if (!$record_criteria_object = RecordCriteriaPeer::getInstanceFromPool($primary_key)) // this time check the pool for the RecordCriteria object and create if not found { $record_criteria_object = new RecordCriteria(); $record_criteria_object-hydrate($row, $startcol); RecordCriteriaPeer::addInstanceToPool($record_criteria_object, $primary_key); } $record_criteria_object-setRecord($record_object); // set the object relation $results[] = $record_object; } $stmt-closeCursor(); return $results; } On May 22, 2:25 pm, Gareth McCumskey gmccums...@gmail.com wrote: Taken from the Propel upgrade info for moving from propel 1.2 to 1.3 (http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Upgrading): ?php // example of how to manually hydrate objects $stmt = AuthorPeer::doSelectStmt(new Criteria()); while($row = $stmt-fetch(PDO::FETCH_NUM)) { $a = new Author(); $a-hydrate($row); } On Fri, May 22, 2009 at 1:19 PM, Crafty_Shadow vankat...@gmail.com wrote: The manual hydration is the problem, I'm not really sure how to accomplish it On May 22, 8:11 am, Gareth McCumskey gmccums...@gmail.com wrote: You mentioned you manually created the join but the doSelect returns nothing. From my experience with Propel 1.2 you would need to use a doSelectRS to return the resultset. But in 1.3 you use doSelectStmt() to run your query with join and get aresaultset which you can then hydrate yourself manually. Would this help? On Thu, May 21, 2009 at 10:54 PM, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the interest in my problem, Richtermister. The code I have shown above accounts only for a small part of my model, but I thought it would be sufficient to convey the point. There really isn't anything special about the Option 0,1,2,3,... etc, but I will provide you with as much information as I can considering the nature of the project Consider the following: The Record model accounts for a particular governmental system. It has the name and address of the person who submitted the request, an unique number, and a few other miscellaneous fields. There is a second model, RecordCriteria, tied in a 1:1 relationship with the first model. It has only boolean fields representing different sets of requirements that the applicant must meet, and a single float field that calculates the weight of the application, based on the requirements. There are MANY queries run on those 2 tables, and often a lot of records have to be displayed at once. Of course, this results in an additional query being executed for every single record that I show. This should really be avoided. It results in over 800 queries on one particular page, where about 10 should suffice. Normally Propel provides doSelectJoin(related_table) methods, and when I was designing the database, I believed that it would do so for the 1:1 relation too, providing something like RecordPeer::doSelectJoinRecordCriteria(). I was wrong. No automatic method for joining the related table is available. So my question is simply, how to do a custom join for 1:1 in Propel 1.3, in a fashion similar to what David Ashwood purposed. As I mentioned, the resources he provided are unfortunately not applicable to Propel 1.3. On May 21, 8:57 pm, Richtermeister nex...@gmail.com wrote: Hey Crafty, I think one issue is that it's not really clear what you're trying to do.. I have no idea what this option0 / option1 setup is
[symfony-users] Help with link cross applications
Hi every: I read this great article[1] wrote by Fabien and try to create a link between frontend and backend applications. For that I modified some parts of the original code from Fabien and now looks like this: class frontendConfiguration extends sfApplicationConfiguration { protected $backendRouting = null; public function configure() { $this-getActive()-loadHelpers(array('Form','I18N','Javascript','Date','Url','Tag','Asset','Partial')); } public function generateBackendURL($name, $parameters = array()) { return sfConfig::get('app_aplication_url').$this-getBackendRouting()-generate($name, $parameters); } public function getBackendRouting() { if (!$this-backendRouting) { $this-backendRouting = new sfPatternRouting(new sfEventDispatcher()); $config = new sfRoutingConfigHandler(); $routes = $config-evaluate(array(sfConfig::get('sf_apps_dir').'/backend/config/routing.yml')); $this-backendRouting-setRoutes($routes); } return $this-backendRouting; } } Also I create a Helper called LinkCrossApplicationHelper.php and put it inside /frontend/module/lib directory. The helper contains this piece of code: function link_to_backend($name, $parameters) { return sfProjectConfiguration::getActive()-generateBackendURL($name, $parameters); } Then in my template I call the helper method: ?php link_to_backend('hello', array('name' = 'Bar')) ? But I get this error: 500 | Internal Server Error | InvalidArgumentException Unable to load LinkCrossApplicationHelper.php helper in: D:\Server\www\residencia\apps\frontend\modules/reservacion/lib/helper, D:\Server\www\residencia\apps\frontend\lib/helper, D:\Server\www\residencia\lib/helper, D:/Server/SF/lib/plugins/sfProtoculousPlugin/lib/helper, D:/Server/www/residencia/plugins/sfPagerNavigationPlugin/lib/helper, D:\Server\SF\lib/helper, D:\Server\SF\lib\plugins\sfPropelPlugin\lib\vendor, D:\Server\www\residencia, D:\Server\SF\lib, ., C:\php5\pear. Can any help me at this point? Cheers and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with link cross applications
Bring it up a folder to the /frontend/lib directory -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Reynier Perez Mira Sent: 22 May 2009 17:56 To: symfony-users@googlegroups.com Subject: [symfony-users] Help with link cross applications Hi every: I read this great article[1] wrote by Fabien and try to create a link between frontend and backend applications. For that I modified some parts of the original code from Fabien and now looks like this: class frontendConfiguration extends sfApplicationConfiguration { protected $backendRouting = null; public function configure() { $this-getActive()-loadHelpers(array('Form','I18N','Javascript','Date','Url ','Tag','Asset','Partial')); } public function generateBackendURL($name, $parameters = array()) { return sfConfig::get('app_aplication_url').$this-getBackendRouting()-generate($na me, $parameters); } public function getBackendRouting() { if (!$this-backendRouting) { $this-backendRouting = new sfPatternRouting(new sfEventDispatcher()); $config = new sfRoutingConfigHandler(); $routes = $config-evaluate(array(sfConfig::get('sf_apps_dir').'/backend/config/routin g.yml')); $this-backendRouting-setRoutes($routes); } return $this-backendRouting; } } Also I create a Helper called LinkCrossApplicationHelper.php and put it inside /frontend/module/lib directory. The helper contains this piece of code: function link_to_backend($name, $parameters) { return sfProjectConfiguration::getActive()-generateBackendURL($name, $parameters); } Then in my template I call the helper method: ?php link_to_backend('hello', array('name' = 'Bar')) ? But I get this error: 500 | Internal Server Error | InvalidArgumentException Unable to load LinkCrossApplicationHelper.php helper in: D:\Server\www\residencia\apps\frontend\modules/reservacion/lib/helper, D:\Server\www\residencia\apps\frontend\lib/helper, D:\Server\www\residencia\lib/helper, D:/Server/SF/lib/plugins/sfProtoculousPlugin/lib/helper, D:/Server/www/residencia/plugins/sfPagerNavigationPlugin/lib/helper, D:\Server\SF\lib/helper, D:\Server\SF\lib\plugins\sfPropelPlugin\lib\vendor, D:\Server\www\residencia, D:\Server\SF\lib, ., C:\php5\pear. Can any help me at this point? Cheers and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] How to make validator of two fields
I am trying to make my own validator to verified twice fields at once time. But the execute method (sfValidator) only permit one field of the form... What can I do this? Sorry for my english, this isn't my native language. --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to make validator of two fields
Use the sfvalidatorand - info: http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfval idatorand -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of E2 Sent: 22 May 2009 17:46 To: symfony users Subject: [symfony-users] How to make validator of two fields I am trying to make my own validator to verified twice fields at once time. But the execute method (sfValidator) only permit one field of the form... What can I do this? Sorry for my english, this isn't my native language. --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to make validator of two fields
Look at setPostValidator() Example: $this-validatorSchema-setPostValidator( new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password1', array(), array('invalid' = 'Passwords much match') ) ); 2009/5/22 E2 edwi...@gmail.com: I am trying to make my own validator to verified twice fields at once time. But the execute method (sfValidator) only permit one field of the form... What can I do this? Sorry for my english, this isn't my native language. -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to make validator of two fields
Heh - I was just gonna add that you use it with the post validator :) -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Ian P. Christian Sent: 22 May 2009 18:28 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: How to make validator of two fields Look at setPostValidator() Example: $this-validatorSchema-setPostValidator( new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password1', array(), array('invalid' = 'Passwords much match') ) ); 2009/5/22 E2 edwi...@gmail.com: I am trying to make my own validator to verified twice fields at once time. But the execute method (sfValidator) only permit one field of the form... What can I do this? Sorry for my english, this isn't my native language. -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with link cross applications
Bring it up a folder to the /frontend/lib directory Nothing it doesn't work Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with link cross applications
Ok - I thought it would pick it up from there - otherwise put it into apps/myapp/lib/helper/ -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Reynier Perez Mira Sent: 22 May 2009 18:41 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: Help with link cross applications Bring it up a folder to the /frontend/lib directory Nothing it doesn't work Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SETUP SERVER
On Thu, 21 May 2009, janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can now run it but my problem is that when i clear cache it delete all in the cache That's normal. and when im trying to access it does not work anymore i need to copy my cache from my old server and to my new one. Bizarre - you should never copy cache from one server to another since its generated by symfony itself. You should check permissions - yes there's a command for that too: http://www.symfony-project.org/book/1_2/16-Application-Management-Tools#chapter_16_sub_managing_a_production_application Also my new server keeps ponting to my old database what do I need to configure so that I can point it to may new lo database server??? Edit your databases.yml - did you write this application? Might be useful for you to read the 'Application Management Tools' chapter in the book. http://www.symfony-project.org/book/1_2/16-Application-Management-Tools --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfDoctrineGuard with doctrine1.1
Does anyone have sfDoctrineGuard working with doctrine 1.1 (in symfony 1.2)? The many to many relations are not saving anywhere. There is a ticket, relating to the same issue http://trac.symfony-project.org/ticket/5667 with saving many to many relations in Doctrine however the posted fix does not work, because the classes for sfdoctrineguard appear to have been generated for doctrine 1.1. What is the best way to generate the sfGuardDoctrine classes to work with doctrine 1.1? --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help with link cross applications
Ok - I thought it would pick it up from there - otherwise put it into apps/myapp/lib/helper/ Thx, now it works but show me another error: 500 | Internal Server Error | sfConfigurationException The route reservacion/new does not exist. This route exists in /apps/backend/config/routing.yml so what is the problem? Cheers Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SETUP SERVER
I also suspect the new server configuration does not support symfony's minimum requirement, such as PDO, php 5 or whatever. On Fri, May 22, 2009 at 1:21 PM, Eno symb...@gmail.com wrote: On Thu, 21 May 2009, janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can now run it but my problem is that when i clear cache it delete all in the cache That's normal. and when im trying to access it does not work anymore i need to copy my cache from my old server and to my new one. Bizarre - you should never copy cache from one server to another since its generated by symfony itself. You should check permissions - yes there's a command for that too: http://www.symfony-project.org/book/1_2/16-Application-Management-Tools#chapter_16_sub_managing_a_production_application Also my new server keeps ponting to my old database what do I need to configure so that I can point it to may new lo database server??? Edit your databases.yml - did you write this application? Might be useful for you to read the 'Application Management Tools' chapter in the book. http://www.symfony-project.org/book/1_2/16-Application-Management-Tools --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SETUP SERVER
Is symfony actually installed on this new server or is your project frozen? - Nathan Rzepecki http://www.lionslair.net.au Frank He wrote: I also suspect the new server configuration does not support symfony's minimum requirement, such as PDO, php 5 or whatever. On Fri, May 22, 2009 at 1:21 PM, Eno symb...@gmail.com mailto:symb...@gmail.com wrote: On Thu, 21 May 2009, janlar...@gmail.com mailto:janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can now run it but my problem is that when i clear cache it delete all in the cache That's normal. and when im trying to access it does not work anymore i need to copy my cache from my old server and to my new one. Bizarre - you should never copy cache from one server to another since its generated by symfony itself. You should check permissions - yes there's a command for that too: http://www.symfony-project.org/book/1_2/16-Application-Management-Tools#chapter_16_sub_managing_a_production_application Also my new server keeps ponting to my old database what do I need to configure so that I can point it to may new lo database server??? Edit your databases.yml - did you write this application? Might be useful for you to read the 'Application Management Tools' chapter in the book. http://www.symfony-project.org/book/1_2/16-Application-Management-Tools --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SETUP SERVER
It's usually best to start checking that symfony is ok (assuming you're following the standard lib\vendor approach) with: php lib/vendor/symfony/data/bin/check_configuration.php php lib/vendor/symfony/data/bin/symfony -V then from the root of the project: php symfony -V php symfony At least then you'll know that there aren't any issues with the base setup. Then run: symfony project:permissions It won't hurt to also run: symfony plugin:publish-assets which should reset the appropriate permissions and setup plugins for you. If you get any errors then you'll know that something is up. --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Virtual Machine
As we hit the 100th download of the image in 3 days that it's been available - I just wanted to remind people that the best place to give feedback is via: http://project.inspiredthinking.co.uk/projects/show/symfony-vm rather than emails - it's easier to track manage. Thanks, David --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Virtual Machine
Hey There, Great work. What I've done in my team is we setup a clean VM build for our Symfony development environment (eg EclipsePDT, Symfony 1.x, MySQL etc..) This means we speed up the the ramp-up for new developers and ensure that we have standard development environments. What you've done is great! Sherif On May 23, 10:53 am, David Ashwood da...@inspiredthinking.co.uk wrote: As we hit the 100th download of the image in 3 days that it's been available - I just wanted to remind people that the best place to give feedback is via:http://project.inspiredthinking.co.uk/projects/show/symfony-vmrather than emails - it's easier to track manage. Thanks, David --~--~-~--~~~---~--~~ 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 email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] backend
hi, i've generated admin using propel:generte-admin command, then show me a list with actions edit an delete for each record and i need a action that show the information by defaultit's 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---