[symfony-users] Re: change connection with sfPropelPager
Matthias Nothhaft wrote: Hi, how can I use/set another connection for sfPropelPager, e.g. to fetch data from a slave instead of a master server? Seems that it is not supported!? :-( Ok.. as this is really important for me I would like to add support for changing the database connection with the sfPager family. How do you want it to be implemented? - Third (optional) parameter in the constructor: public function __construct($class, $defaultMaxPerPage = 10, $con = null) - new method setConnection($con) - new optional parameter with init($con = null) Regards, Matthias --~--~-~--~~~---~--~~ 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] sfDoctrine create_tables: on
hi sfDoctrine dev's and gurus i've setted up my config (./config/doctrine.yml) to do automatic table generation: .. all: #doctrine attributes attributes: #automatic table creation (none, tables, constraints, all) create_tables: on .. and i tried as well the following: ... #automatic table creation (none, tables, constraints, all) export: all ... but a $object-save(); gives me the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ikeaostschweiz.anmeldung' doesn't exist any ideas? thx --~--~-~--~~~---~--~~ 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: New Plugin: sfCSRFPlugin - Automatically protect your code from CSRF attacks
This is a very nice plugin, thanks a lot! On Jun 26, 12:24 am, Fabien POTENCIER [EMAIL PROTECTED] wrote: Hi all, A quick note to introduce my newest plugin. The sfCSRFPlugin provides protection against Cross Site Request Forgeries. As always, the source code is available in the symfony repository, and you can check its wiki page athttp://trac.symfony-project.com/trac/wiki/sfCSRFPlugin For more information on CSRF attacks:http://en.wikipedia.org/wiki/Csrf Fabien --~--~-~--~~~---~--~~ 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: sfDoctrine create_tables: on
[EMAIL PROTECTED] wrote: hi sfDoctrine dev's and gurus i've setted up my config (./config/doctrine.yml) to do automatic table generation: .. all: #doctrine attributes attributes: #automatic table creation (none, tables, constraints, all) create_tables: on .. and i tried as well the following: ... #automatic table creation (none, tables, constraints, all) export: all ... but a $object-save(); gives me the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ikeaostschweiz.anmeldung' doesn't exist Automatic table creation (in the meaning of on the fly) was removed from Doctrine. You have to call Doctrine::export($dir); where $dir is your model directory. I think there will be a task for that soon provided by the sfDoctrinePlugin, but is is not implemented yet. Regards, Matthias --~--~-~--~~~---~--~~ 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: sfDoctrine create_tables: on
why fabian don't give access to wiki and development trunk... so i could change the old and out-of-date sfDoctrine wiki... :) thanks Matthias On 26 Jun., 10:14, Matthias Nothhaft [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: hi sfDoctrine dev's and gurus i've setted up my config (./config/doctrine.yml) to do automatic table generation: .. all: #doctrine attributes attributes: #automatic table creation (none, tables, constraints, all) create_tables: on .. and i tried as well the following: ... #automatic table creation (none, tables, constraints, all) export: all ... but a $object-save(); gives me the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ikeaostschweiz.anmeldung' doesn't exist Automatic table creation (in the meaning of on the fly) was removed from Doctrine. You have to call Doctrine::export($dir); where $dir is your model directory. I think there will be a task for that soon provided by the sfDoctrinePlugin, but is is not implemented yet. Regards, Matthias --~--~-~--~~~---~--~~ 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] yaml/ i18n bug? : some text in validation yml files is not replaced by dictionary texts
i investigated some more on this issue and found that only some sentences don't get replaced, on some others it works. it seems that if a sentence in a validation yaml file, that should later be substituted by one from the dictionary, has umlauts (öäü, etc), the subsitution fails. the same happens in the sentence contains single quotes. so can anyone prove this behavior and has some hints how to solve? i consider this to be a bug in synfony or at least some restriction of yaml. thanks in advance christoph btw: thanks for the great sfI18nExtract plugin released yesterday!!! --~--~-~--~~~---~--~~ 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.0.5 released (security fix)
Hi, I took latest version from trunk (svn co http://svn.symfony-project.com/trunk/ .) but it says version as 1.1.0-DEV revision was 4401. Is this ok? Thanks, Amit. On Jun 25, 10:10 pm, Fabien POTENCIER [EMAIL PROTECTED] project.com wrote: I've just released symfony 1.0.5. If you use the symfony built-in phpmailer (and you do if you use the -sendMail() method in your actions), you must upgrade to this release or apply the following patch:http://trac.symfony-project.com/trac/changeset/4380?format=diffnew=4380. PHPMailer has a remote command execution vulnerability if you have configured it to use sendmail. You can find more information about this issue here:http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/ Here are all bugs fixed in this release: * r4387: fixed input_date_range_tag - Illegal attributes in input tags (#1883) * r4385: fixed issue relating to lock files (#1874) * r4380: fixed vulnerability in phpmailer with sender (#1871) * r4323: fixed DOMDocument E_STRICT warning and trans-unit max id in XLIFF support * r4320: fixed sfToolkit::isUTF8() broken for strings larger than some number * r4305: added i18n schema for MySQL and SQLite in API documentation As for every 1.0.X release, after upgrading to 1.0.5, don't forget to clear the cache of your projects. Fabien --~--~-~--~~~---~--~~ 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] Style of custom actions in admin gen
I was wondering where there is a strange style of the customs buttons in the admin generator: input style=background: #ffc url(/sf/sf_admin/images/default_icon.png) no-repeat 3px 2px value=Save all type=button onclick=document.location.href='/backend_dev.php/module3/ListAllDefault'; //li How to override it to have a standart button ? COil ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com --~--~-~--~~~---~--~~ 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: yaml/ i18n bug? : some text in validation yml files is not replaced by dictionary texts
virtualize wrote: just a wild guess .. but i assume this is because the text gets html escaped before getting translated maybe? hm. yes. setting the escaping_strategy to off or bc works. is this a desired behavior? is there a way to have both, output escaping turned on and umlaut strings from yaml files substituted by the dictonary? i would categorize this as a bug. regards, Lukas --~--~-~--~~~---~--~~ 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] Workig with admin generator templates
How can I make it regenerate the cache on each call without having to clear the cache? TIA --~--~-~--~~~---~--~~ 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: Workig with admin generator templates
On 26 Jun 2007, at 16:22, Haris Zukanovic' wrote: How can I make it regenerate the cache on each call without having to clear the cache? I may be totally misreading you, but what you are asking seems to be how things work when caching is turned off... Alexander --~--~-~--~~~---~--~~ 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: Workig with admin generator templates
No, I do wish to generate cache, this is what admin generator does. But I wish to regenerate it each time the action is called because I make changes to admin generator theme. When I make a chenge I must do a clear cache before changes are reflected in the cached code Alexander Deruwe wrote: On 26 Jun 2007, at 16:22, Haris Zukanovic' wrote: How can I make it regenerate the cache on each call without having to clear the cache? I may be totally misreading you, but what you are asking seems to be how things work when caching is turned off... Alexander --~--~-~--~~~---~--~~ 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-users] Re: Workig with admin generator templates
Would be interested too... May be we could have an additional parameter in the generator.yml file or in the plugin of the admin theme ? See you. COil - Message d'origine De : Haris Zukanovic' [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Mardi, 26 Juin 2007, 16h54mn 53s Objet : [symfony-users] Re: Workig with admin generator templates No, I do wish to generate cache, this is what admin generator does. But I wish to regenerate it each time the action is called because I make changes to admin generator theme. When I make a chenge I must do a clear cache before changes are reflected in the cached code Alexander Deruwe wrote: On 26 Jun 2007, at 16:22, Haris Zukanovic' wrote: How can I make it regenerate the cache on each call without having to clear the cache? I may be totally misreading you, but what you are asking seems to be how things work when caching is turned off... Alexander _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail --~--~-~--~~~---~--~~ 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: New Plugin: sfCSRFPlugin - Automatically protect your code from CSRF attacks
Hi, Years ago I implemented something like this into my framework. Well there are some similarities at any rate. The idea was to get rid of using hard redirects to prevent people from submitting the same form twice. The solution basically consisted of adding a hidden field with a secret just like this plugin. But it was not a static secret parameter, it was generated on the fly as a random md5 and stored in the session. A token could only be used once and was then removed from the session and inside the action I would check if the request submitted a valid token. This is obviously more ressource intensive than what I understand the current plugin does, but it also solves the CSRF problem and it also potentially reduces the need for hard redirects in many situations, which case needless requests. Maybe something like this would be useful as an optional behavior of this plugin? regards, Lukas --~--~-~--~~~---~--~~ 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] Modifying model, keeping live data
Hi something I've never been able to get working properly but am determined this time, namely how to handle making modifications to a system when you live data can't be wiped. The process I'm trying to apply is: 1) Dump out live database 2) import locally 3) build schema 4) build model 5) use dumpData to generate fixture data I fall over on 5. It generates a few .yml files (but not all) then falls over on one table: schema.yml file looks OK and the file it says it can't find (below) DOES exist. Any help appreciated, I've spent far too long on this now. Error mesage and relevant bit of schema follows: SCHEMA: university_course_level: _attributes: idMethod: native id: type: INTEGER required: true autoIncrement: true primaryKey: true university_id: type: INTEGER course_level_id: type: INTEGER _indexes: university_course_level_FI_1: - university_id university_course_level_FI_2: - course_level_id SQL: CREATE TABLE `university_course_level` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `university_id` INTEGER, `course_level_id` INTEGER, PRIMARY KEY (`id`), INDEX `university_course_level_FI_1` (`university_id`), CONSTRAINT `university_course_level_FK_1` FOREIGN KEY (`university_id`) REFERENCES `university` (`id`), INDEX `university_course_level_FI_2` (`course_level_id`), CONSTRAINT `university_course_level_FK_2` FOREIGN KEY (`course_level_id`) REFERENCES `course_level` (`id`) )Type=MyISAM; ERROR: file- /home/bealers/www/U/unionview/c...ase/config/generated-schema.xml PHP Fatal error: Uncaught exception 'sfException' with message 'Unable to find path for class ._UniversityCourseLevelMapBuilder.' in /usr/share/php/symfony/addon/propel/sfPropelData.class.php:214 Stack trace: #0 [internal function]: sfPropelData- loadMapBuilder('._UniversityCou...', 13) #1 /usr/share/php/symfony/addon/propel/sfPropelData.class.php(263): array_walk(Array, Array) #2 /home/bealers/www/U/unionview/codebase/batch/dump.php(19): sfPropelData-dumpData('/home/bealers/w...') #3 {main} thrown in /usr/share/php/symfony/addon/propel/sfPropelData.class.php on line 214 --~--~-~--~~~---~--~~ 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: Modifying model, keeping live data
Hi. something I've never been able to get working properly but am determined this time, namely how to handle making modifications to a system when you live data can't be wiped. I'd recommend something like the process described in http://trac.symfony-project.com/trac/wiki/Migrations It works quite well for me. Martin --~--~-~--~~~---~--~~ 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: admin generator in a plugin
Hi, Thanks for the response. It wasn't the enabling of the module I had a problem with. It's fixed now. I was able to do it several days ago and can't remember now 'exactly' what i did. It was mainly a naming issue between classes and modules. Davinder On Jun 25, 2007, at 4:32 AM, Luciano A. Andrade wrote: Not shure if this is your case, but i think you missing the enable_module (o similar) in your aplication, you shuld follow the sfGuard plugin wich is the example you probably need. --~--~-~--~~~---~--~~ 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: sfMediaLibrary plugin errors
A quick update. I've realized, this only happens in the dev environment. Including the new initiated project. The Dev env. fails. Is this a bug then? On Jun 26, 2007, at 1:59 PM, Davinder Mahal wrote: Hi, I had this problem several weeks back but had no response. I've now come back to the problem and still can't figure it out. Situation: I have a symfony project ( from v1.0 but upgraded to 1.0.5) and I installed the sfMediaLibraryPlugin. However, when I go to the page, the page loads but is covered with i18N errors. I am not using i18N and it's off. I'm attaching a screenshot. I installed it in the sandbox provided with the sfSimpleBlog (1.1 dev). I had the same error. I also installed it ini a blank project i have in my svn respiratory that was created from symfony 1.0.3, same problem. I then initiated a brand new project under symfony 1.0.5 and immediately installed the sfMediaLibraryPlugin. When I went to the module, it worked. I want the plugin to work in my current project, but I don't know what could possibly be causing this problem. Does anyone, please, have any ideas? I tried replacing the settings.yml file from the new working project to my current project, but it did not fix the problem. I really don't know where else to look. Please help. Thank you so much. sfMediaLibrary.png Davinder S. Mahal Principal / Lead Developer DSM Cyber Media http://www.dsmcybermedia.com {---} internet media development Union City, CA +011 510-489-4827 [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: askeet question
hi , no actually, the problem is i am unable to print the post variables atleast ie., the question title and the description in the action file public function executeAdd() { if ($this-getRequest()-getMethod() == sfRequest::POST) { print $this-getRequestParameter('title');// This part isn't working print $this-getRequestParameter('body'); // This part isn't working exit(); // This part isn't working i am getting an empty page if i give like this with a text size of more then 20kb if it is less i get the values so the inserting in database is far from here ... // create question $user = $this-getUser()-getSubscriber(); $question = new Question(); $question-setTitle($this-getRequestParameter('title')); $question-setBody($this-getRequestParameter('body')); $question-setUser($user); $question-save(); $user-isInterestedIn($question); $question-addTagsForUser($this-getRequestParameter('tag'), $user-getId()); return $this-redirect('@question?stripped_title='.$question-getStrippedTitle().'id='.$question-getId()); } } the versions i am using are apache: 2.2.3 php:5.2.0 so plz tell me if there is any problem with these versions or else any other solution for this regards, rahul On 6/26/07, Luciano A. Andrade [EMAIL PROTECTED] wrote: Did the question get to the database? what is the PHP/APACHE (Mysql/...etc) you are using? Did you try with a diferente version convination (PHP/APACHE specially)? ¿Did you try activate the logs for the producction or did you look to the dev logs? ¿Are dev and prod working exactly the same? On 6/25/07, rajpunjal [EMAIL PROTECTED] wrote: hi all, i have a peculiar problem i dont know if any one had this problem or not but.. while posting the question in my askeet my question description takes only 20k of text not more than tht if i give some extra text as 30k or more it gives me a blank page with the same url. first i thought it might be the problem with the wuestion search table as it takes all the words and puts it int the table (time comsuming) so i comented the code for this but problem still pertains and i dont get any error to rectify also. and one more thing askeet.com i am able to post question upto 63k text . i would really appreciate if any one could tell me the solution or else the problem .. thank you, raj --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---