[symfony-users] Re: Partial helper in symfony 1.1 task
sfLoader::loadHelpers('Partial'); -- Jamie On 3 Nov, 12:53, James Cauwelier [EMAIL PROTECTED] wrote: Hi, I want to send emails from a task, but need the partialhelper to be available in this class. The cookbook on the symfony site is rather vague about this. Can somebody show me some working code for emailing from a task? Here is some of my task code: protected function execute($arguments = array(), $options = array()) { // Database initialization $databaseManager = new sfDatabaseManager($this-configuration); $connection = Propel::getConnection($options['connection'] ? $options['connection'] : ''); // add code here // retrieve all accounts that need activation $c = new Criteria; $c-add (ClientActivationQueuePeer::SENT, false); $activation_count = ClientActivationQueuePeer::doCount ($c, $connection); // including the partial helper // DOES NOT WORK use_helper ('Partial'); while ($activation_count 0) { // get_component() as advised in the cookbook section of the documentation // DOES NOT WORK $mailbody = get_component ('mailer', 'activateClient'); $activation_count = ClientActivationQueuePeer::doCount ($c); } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: extjs plugin working with symfony 1.1 or 1.2 ??
It might be working with symfony 1.1 as it still uses the old admin generator but will definitely need quite some work to make it compatible with Symfony 1.2 Kiril On Tue, Oct 28, 2008 at 11:00 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: is there any version of extjs plugin working with symfony 1.1 or 1.2 ?? SVN or customized by anybody? what do you think about this approach to javascript frameworks presented in sfExtjs2Plugin is it more programmer/designer friendly? more MVC oriented or not ?? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Partial helper in symfony 1.1 task
I think I 've got it. I added the following to the task execute method: $context = sfContext::createInstance($this-configuration); On 3 nov, 15:47, James Cauwelier [EMAIL PROTECTED] wrote: Thanks Jamie, that helps... Could you also help me with the following? using get_partial() or get_module() now gives an error: the 'default' context does not exist Thanks, James On 3 nov, 14:34, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sfLoader::loadHelpers('Partial'); -- Jamie On 3 Nov, 12:53, James Cauwelier [EMAIL PROTECTED] wrote: Hi, I want to send emails from a task, but need the partialhelper to be available in this class. The cookbook on the symfony site is rather vague about this. Can somebody show me some working code for emailing from a task? Here is some of my task code: protected function execute($arguments = array(), $options = array()) { // Database initialization $databaseManager = new sfDatabaseManager($this-configuration); $connection = Propel::getConnection($options['connection'] ? $options['connection'] : ''); // add code here // retrieve all accounts that need activation $c = new Criteria; $c-add (ClientActivationQueuePeer::SENT, false); $activation_count = ClientActivationQueuePeer::doCount ($c, $connection); // including the partial helper // DOES NOT WORK use_helper ('Partial'); while ($activation_count 0) { // get_component() as advised in the cookbook section of the documentation // DOES NOT WORK $mailbody = get_component ('mailer', 'activateClient'); $activation_count = ClientActivationQueuePeer::doCount ($c); } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to correctly set primary key ?
Hello, by reading the source code I think you should try try saving the object and then issuing $object-setPrimaryKey(6); and then save again. I did not dig more to see if that would work but give it a try. Also, I woul try setting defaultIdMethod=none in your schema file (at the very top, it is not most probably set to native). Hope that helps. Kiril On Sat, Nov 1, 2008 at 11:33 PM, Vincent Lemaire [EMAIL PROTECTED] wrote: Hi, I have a problem with Symfony 1.1 and Propel 1.2. In fact, I make an data load from an old application not made by Symfony and I want to keep old data's primary keys but it doesn't works! I use setId() and setPrimaryKey() but Propel automatically recalculates the primary key when primary key have been deleted. For exemple, if I make $user-setId(6) or $user-setPrimaryKey(6) and the id 5 does not exist, the line is registered under the id 5. It's a big problem for me because it break my foreign keys! I made a var_dump($user) before saving and [id:protected] has the value int(6) but, after saving, $user-getId() returns 5! All is up-to-date in the trunk of sf 1.1. Have you an idea? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Partial helper in symfony 1.1 task
Thanks Jamie, that helps... Could you also help me with the following? using get_partial() or get_module() now gives an error: the 'default' context does not exist Thanks, James On 3 nov, 14:34, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sfLoader::loadHelpers('Partial'); -- Jamie On 3 Nov, 12:53, James Cauwelier [EMAIL PROTECTED] wrote: Hi, I want to send emails from a task, but need the partialhelper to be available in this class. The cookbook on the symfony site is rather vague about this. Can somebody show me some working code for emailing from a task? Here is some of my task code: protected function execute($arguments = array(), $options = array()) { // Database initialization $databaseManager = new sfDatabaseManager($this-configuration); $connection = Propel::getConnection($options['connection'] ? $options['connection'] : ''); // add code here // retrieve all accounts that need activation $c = new Criteria; $c-add (ClientActivationQueuePeer::SENT, false); $activation_count = ClientActivationQueuePeer::doCount ($c, $connection); // including the partial helper // DOES NOT WORK use_helper ('Partial'); while ($activation_count 0) { // get_component() as advised in the cookbook section of the documentation // DOES NOT WORK $mailbody = get_component ('mailer', 'activateClient'); $activation_count = ClientActivationQueuePeer::doCount ($c); } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: extjs plugin working with symfony 1.1 or 1.2 ??
2008/11/3 Kiril Angov [EMAIL PROTECTED] It might be working with symfony 1.1 as it still uses the old admin generator but will definitely need quite some work to make it compatible with Symfony 1.2 It would be nice if the plugin could render forms built with sfForm with the extJS components too :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Where to append the route programmatically?
According to documentation I have to do it before dispatch() is sent to controller. I tried it in my subclass of sfApplicationConfiguration, but it doesn ´t work, because there is no running context. Maybe I can listen an event to catch the point before dispatch() is sent and after the context is created. Where is the point? Thank 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Partial helper in symfony 1.1 task
Hi, I want to send emails from a task, but need the partialhelper to be available in this class. The cookbook on the symfony site is rather vague about this. Can somebody show me some working code for emailing from a task? Here is some of my task code: protected function execute($arguments = array(), $options = array()) { // Database initialization $databaseManager = new sfDatabaseManager($this-configuration); $connection = Propel::getConnection($options['connection'] ? $options['connection'] : ''); // add code here // retrieve all accounts that need activation $c = new Criteria; $c-add (ClientActivationQueuePeer::SENT, false); $activation_count = ClientActivationQueuePeer::doCount ($c, $connection); // including the partial helper // DOES NOT WORK use_helper ('Partial'); while ($activation_count 0) { // get_component() as advised in the cookbook section of the documentation // DOES NOT WORK $mailbody = get_component ('mailer', 'activateClient'); $activation_count = ClientActivationQueuePeer::doCount ($c); } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to add multiple forms to a page?
Did you get anywhere with this one? I think this is a very common requirement for forms to handle the hasMany relationship with the ability to create new rows on the related table from within the master form. Ive been searching all over but as of yet cant find a way to do it and so looking at a way to implement it myself in the symfony framework. Any developers have ideas on how this would be best implemented? Im currently looking at developing a subform widget. Kind Regards, David On Oct 2, 9:12 pm, Ardesco [EMAIL PROTECTED] wrote: I'm a fairly new symfony user, and I've managed to populate a form with various widgets. However, one question that I've had is how one can add additional forms when needed. For example, I have an input field called links, which allows the user to add an arbitrary number of links. I know in Django, their admin interface allows a user to specify a field as being inline with a certain number of extra forms...Is there such an option in Symfony to manipulate widgets in such a fashion without anything fancy like javascript? I just want to be able to give users the option to add in multiple items for a particular entry, multiple forms doesn't have to be the answer I rely on, but it sounds like the most logical. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.2 and propel behaviors
There was a ticket for this problem so if you update your symfony-1.2 lib you will be able to issue those tasks without specifying the application name. Kiril On Sun, Nov 2, 2008 at 11:25 AM, mitjad [EMAIL PROTECTED] wrote: Hi, I managed to get my Propel behavior plugins working, but am not able to use the propel:build-all command anymore if I run commands seperatly they work, but not all togerher I think the proplem is: ... symfony propel:forms --application=admin ... this way it works symfony propel:build-all --application=admin but not like this On 23 okt., 08:17, Yohan 'rouKs' G. [EMAIL PROTECTED] wrote: No I don't... I don't understand the problem... yohan_rouks_g.vcf 1KViewDownload --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] How to work with sfGuard Plugin and sfDoctrine
Hi every: I'm trying to migrate one of my developments to sfDoctrine Plugin but I have a problem: I can not use sfGuard Plugin with sfDoctrine. I get this error when I try to access to the system: [PropelException] No connection params set for propel stack trace * at () in SF_SYMFONY_LIB_DIR\plugins\sfPropelPlugin\lib\vendor\propel\Propel.php line 476 ... 473. 474. $dsn = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null; 475. if ($dsn === null) { 476. throw new PropelException(No connection params set for . $name); 477. } 478. 479. include_once 'creole/Creole.php'; * at Propel::getConnection('propel') in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om\BasesfGuardUserPeer.php line 289 ... Can any help me or teach me here? I find in the Symfony Project Plugins site but I didn't found anything. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
You need to be using the doctrine version of the plugin, sfDoctrineGuardPlugin. Currently you can only get it from SVN. - Jon On Mon, Nov 3, 2008 at 10:54 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote: Hi every: I'm trying to migrate one of my developments to sfDoctrine Plugin but I have a problem: I can not use sfGuard Plugin with sfDoctrine. I get this error when I try to access to the system: [PropelException] No connection params set for propel stack trace * at () in SF_SYMFONY_LIB_DIR\plugins\sfPropelPlugin\lib\vendor\propel\Propel.php line 476 ... 473. 474. $dsn = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null; 475. if ($dsn === null) { 476. throw new PropelException(No connection params set for . $name); 477. } 478. 479. include_once 'creole/Creole.php'; * at Propel::getConnection('propel') in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om\BasesfGuardUserPeer.php line 289 ... Can any help me or teach me here? I find in the Symfony Project Plugins site but I didn't found anything. Cheers and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
You need to be using the doctrine version of the plugin, sfDoctrineGuardPlugin. Currently you can only get it from SVN. From this addres: http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/trunk/? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
Yes, if you are using symfony 1.2 A branch exists for 1.0 and 1.1 as well. - Jon On Mon, Nov 3, 2008 at 10:58 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote: You need to be using the doctrine version of the plugin, sfDoctrineGuardPlugin. Currently you can only get it from SVN. From this addres: http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/trunk/? Ing. Reynier Pérez Mira Dirección Técnica IP -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Where to append the route programmatically?
My problem is solved by myself :-) I overlook the event called routing.load_configuration, which I looked for! On Nov 3, 5:07 pm, Fabian Spillner [EMAIL PROTECTED] wrote: According to documentation I have to do it before dispatch() is sent to controller. I tried it in my subclass of sfApplicationConfiguration, but it doesn ´t work, because there is no running context. Maybe I can listen an event to catch the point before dispatch() is sent and after the context is created. Where is the point? Thank 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
Ok, I made a 1.1 branch checkout, copy the plugin in the plugins folder and when I try to run the task symfony cache:clear I get this error: symfony cache:clear PHP Fatal error: Cannot redeclare class sfGuardPromoteSuperAdminTask in D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAdminTask.class.php on line 69 Why? Cheers and thanks again Ing. Reynier Pérez Mira Dirección Técnica IP -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Wage Sent: Monday, November 03, 2008 11:57 AM To: symfony-users@googlegroups.com Subject: [symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine Yes, if you are using symfony 1.2 A branch exists for 1.0 and 1.1 as well. - Jon On Mon, Nov 3, 2008 at 10:58 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote: You need to be using the doctrine version of the plugin, sfDoctrineGuardPlugin. Currently you can only get it from SVN. From this addres: http://svn.symfony- project.com/plugins/sfDoctrineGuardPlugin/trunk/? Ing. Reynier Pérez Mira Dirección Técnica IP -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
PHP Fatal error: Cannot redeclare class sfGuardPromoteSuperAdminTask in D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAd minTask.class.php on line 69 Ok, I find a solution for my last problem. I delete the old sfGuardPlugin folder and everything is fine now. Now following the README instructions I get this other error: Fatal error: Cannot redeclare class BaseComponente in D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php on line 16 D:\Development\WWW\gestion.localPHP Fatal error: Cannot redeclare class BaseComponente in D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php on line 16 Why this? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
Hmm. Because you have 2 classes with the same name defined :) Search your code and find out where and why. - Jon On Mon, Nov 3, 2008 at 1:24 PM, Reynier Perez Mira [EMAIL PROTECTED] wrote: PHP Fatal error: Cannot redeclare class sfGuardPromoteSuperAdminTask in D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAd minTask.class.php on line 69 Ok, I find a solution for my last problem. I delete the old sfGuardPlugin folder and everything is fine now. Now following the README instructions I get this other error: Fatal error: Cannot redeclare class BaseComponente in D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php on line 16 D:\Development\WWW\gestion.localPHP Fatal error: Cannot redeclare class BaseComponente in D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php on line 16 Why this? Cheers Ing. Reynier Pérez Mira Dirección Técnica IP -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: propel : dynamic linking
Ok, I undestand your solution, that make sense in the case of this example Thank you for your help. On 1 nov, 23:59, Richtermeister [EMAIL PROTECTED] wrote: Hey there, no, the way I mean is this: bill: id: shop_items: id: name: *other common attributes* attributes: id: name: type: (this can be things like text, select many, select one etc..) attribute_content: attribute_id: shop_item_id: value: shop_items_to_attribute_content: shop_item_id: attribute_content_id: Do you see how you can now build all sorts of shop items with all sorts of attributes? Like books, that have author, ISBN, title, etc.., and tools, that have weight, dimensions, etc.. This is a very flexible system that allows you to grow into any direction. It is just a little unusual when you're used to thinking on a database level. Does that make sense to you? Daniel On Oct 31, 1:13 am, ThibaultJouannic[EMAIL PROTECTED] wrote: Hi Richtermeister, thank you for your reply. I'm not sure to understand, how you would build that in Symfony. As far as I understand it, that would be something like : bill: id: shop_items: id: book_id: tool_id: ... bill_id: book: id tool: id: Am I right ? Regards, Thibault On Oct 30, 10:15 pm, Richtermeister [EMAIL PROTECTED] wrote: Hi there, I think a good solution for your problem needs to be more flexible. For example, you have separate tables for tools and books. What is often done is have a table for generic items ShopItems that stores the type of item (tool, book, etc.. now it's dynamic) and link those to an attribute table that holds the attributes that you originally stored in the table fields. This way you're building your items dynamically, and you can link them directly to the bill table. And you can add totally different items in the future. At least his is how many online store systems work. Daniel On Oct 30, 6:11 am, ThibaultJouannic[EMAIL PROTECTED] wrote: Hello there, I need to link two tables together, however the linked table type is not fixed. Exemple : I've got a bill table, with fields like price, paid_date, customer_id, etc. From that table, I want a foreign key to link to the charged object, so I can use something like : $bill-getChargedObject() However, different kind of objects can be charged. It could be a tool, or a book, or anything else. Each of these have very specific fields. (note : this is just an example, the real problem is more complex) So I've created corresponding tables (tool, book), and I'v managed the link like that : propel: bill: paiment_date: date charged_object_class: varchar(255) charged_object_id: integer The solution works pretty well, however, I've lost the power of foreign keys, and the ability to use names in fixtures. Has anyone already experienced this kind of solution ? I would be glad to here some differents opinions here. Best regards, Thibault --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
Hmm. Because you have 2 classes with the same name defined :) Search your code and find out where and why. OK, I find but without success and for that I start from zero and delete every generated class. I try again using this task: D:\Development\WWW\gestion.localsymfony doctrine-build-all-reload backend doctrine Are you sure you wish to drop your databases? (y/n) doctrine Successfully dropped database f...n propel named uci_recursos doctrine Successfully created database f...n propel named uci_recursos doctrine Generated models successfully And I get another error but with sfGuardDoctrine (I think) Fatal error: Cannot redeclare class BasesfGuardGroup in D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php on line 35 PHP Fatal error: Cannot redeclare class BasesfGuardGroup in D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php on line 35 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] I18n and database (symfony 1.1.4)
I have problem with extracting strings from php files. I have added to factories.yml following configuration i18n: class: sfI18N param: source: MySQL database: mysql://[EMAIL PROTECTED]/sfshop debug:off untranslated_prefix: [T] untranslated_suffix: [/T] cache: class: sfFileCache param: automatic_cleaning_factor: 0 cache_dir: %SF_I18N_CACHE_DIR% lifetime: 86400 prefix:%SF_APP_DIR% and added tables catalogue and trans_unit to my schema After it I trying to execute command from command line ./symfony i18n:extract frontend en But an error occurred Error in connecting to Array. Also displayed warnings PHP Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Is it bug in the symfony? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony on ubuntu...
So how did you fix this problem your post isn't very elaborative :) I'm also missing the sfCore.Class.php file On Sep 22, 5:42 pm, Peter Van den Wildenbergh [EMAIL PROTECTED] wrote: Never mind... figured it out. fixtures directory in ./data and symfony propel-load-data ... An up-to-date how-to would still be nice. Will this method change in the upcoming new version of the framework? Peter On Mon, Sep 22, 2008 at 1:13 PM, PeterLinux [EMAIL PROTECTED]wrote: Hi List, NewBie question, if I install symfony using PEAR I get version 1.1.2 (Preferred) But I run into trouble. example I cannot locate sfCore.class.php (Needed in a load_data.php script) If I follow the apt-get install php5-symfony path I get the older version 1.0.17 Now there is a /usr/share/php5/symfony/lib/util/sfCore.class.php Am I missing something? (Like another method to pre-load data?) So far it is all pretty confusing with the different ENV and APPS (and diff dir depending on what install method/version one used...) Should there be a sfCore.class.php in version 1.1.2 ? Can somebody post an example of a load_data.php script that works with 1.1.2? Thanks Peter --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: I18n and database (symfony 1.1.4)
Oh, I see it now. You have to put database: mysql://[EMAIL PROTECTED]/sfshop Notice the quotes! On Tue, Nov 4, 2008 at 8:56 AM, Kiril Angov [EMAIL PROTECTED] wrote: Seems like. I would double check if the yaml is valid and does not have any tabs, etc. Also try putting the source with lowecase mysql. Everything else seems correct. If it still does not work, please report it to http://trac.symfony-project.com Kiril On Mon, Nov 3, 2008 at 11:37 PM, Dmitry Nesteruk [EMAIL PROTECTED] wrote: I have problem with extracting strings from php files. I have added to factories.yml following configuration i18n: class: sfI18N param: source: MySQL database: mysql://[EMAIL PROTECTED]/sfshop debug:off untranslated_prefix: [T] untranslated_suffix: [/T] cache: class: sfFileCache param: automatic_cleaning_factor: 0 cache_dir: %SF_I18N_CACHE_DIR% lifetime: 86400 prefix:%SF_APP_DIR% and added tables catalogue and trans_unit to my schema After it I trying to execute command from command line ./symfony i18n:extract frontend en But an error occurred Error in connecting to Array. Also displayed warnings PHP Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Is it bug in the symfony? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: I18n and database (symfony 1.1.4)
Seems like. I would double check if the yaml is valid and does not have any tabs, etc. Also try putting the source with lowecase mysql. Everything else seems correct. If it still does not work, please report it to http://trac.symfony-project.com Kiril On Mon, Nov 3, 2008 at 11:37 PM, Dmitry Nesteruk [EMAIL PROTECTED] wrote: I have problem with extracting strings from php files. I have added to factories.yml following configuration i18n: class: sfI18N param: source: MySQL database: mysql://[EMAIL PROTECTED]/sfshop debug:off untranslated_prefix: [T] untranslated_suffix: [/T] cache: class: sfFileCache param: automatic_cleaning_factor: 0 cache_dir: %SF_I18N_CACHE_DIR% lifetime: 86400 prefix:%SF_APP_DIR% and added tables catalogue and trans_unit to my schema After it I trying to execute command from command line ./symfony i18n:extract frontend en But an error occurred Error in connecting to Array. Also displayed warnings PHP Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Warning: array_map(): An error occurred while invoking the map callback in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136 Is it bug in the symfony? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---