[symfony-users] Re: sf_sandbox
Did you do a `php symfony cc` after installing DbFinder? On Wed, May 6, 2009 at 14:11, maithili.k shalu0...@gmail.com wrote: I am getting the error when i run http://localhost/sf_sandbox/web Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The plugin DbFinderPlugin does not exist.' in /var/www/ sf_sandbox/lib/symfony/config/sfProjectConfiguration.class.php:439 Stack trace: #0 /var/www/sf_sandbox/lib/symfony/config/ sfProjectConfiguration.class.php(76): sfProjectConfiguration- getPluginPaths() #1 /var/www/sf_sandbox/lib/symfony/config/ sfProjectConfiguration.class.php(59): sfProjectConfiguration- loadPlugins() #2 /var/www/sf_sandbox/lib/symfony/config/ sfApplicationConfiguration.class.php(46): sfProjectConfiguration- __construct('/var/www/sf_san...', NULL) #3 /var/www/sf_sandbox/lib/ symfony/config/sfProjectConfiguration.class.php(575): sfApplicationConfiguration-__construct('prod', false, '/var/www/ sf_san...', NULL) #4 /var/www/sf_sandbox/web/index.php(6): sfProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false) #5 {main} thrown in /var/www/sf_sandbox/lib/symfony/ config/sfProjectConfiguration.class.php on line 439 --~--~-~--~~~---~--~~ 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: Good Propel HOWTO with examples?
You should check out the propel criteria builder[1], where you can enter the sql and it generates the criteria for you. [1] http://propel.jondh.me.uk/criteria/analyse On Wed, May 6, 2009 at 19:57, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: I'm wondering if anyone's familiar with a good resource for working with the Criteria() object to perform database interactions within the object model? Something that showed SQL query syntax followed by the instantiations and functions needed to perform the same task with Propel would be ideal. I've been browsing the Symfony code snippets, but what I'm looking for is more of a quick general reference rather than specific problem resolutions. -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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 sfGuard and LDAP external method
Compare: check_password_callable: [LDAP, checkLDAPPassword] class LDAPclass extends sfGuardSecurityUser { in the config you say LDAP, but later you call it LDAPclass, this is why you get the following error: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'LDAP::checkLDAPPassword' was given in D:\Server\www\residencia\plugins\sfGuardPlugin\lib\model\plugin\PluginsfGuardUser.php on line 79 --~--~-~--~~~---~--~~ 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: sfFinder pattern with case-insensitive modifier
It is a regexp. The slashes mark the start and the end of the pattern, the i is the case-insensitive flag, so it also matches .JPG, .jPG, etc. Recommended reading: http://hu.php.net/manual/en/regexp.reference.php /\.jpg$/i that it would look at that as not being a regex expression because it's last character is not a / Anyone have a good way of doing this? Thanks -- Stephen Ostrow sost...@sowebdesigns.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 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 dublicate table
Show us your schema.yml, the error is there. On Tue, Apr 28, 2009 at 12:53, Waseem whme...@gmail.com wrote: Dear All, i am facing following problem. please help. D:\Apache2\htdocs\atssymfony propel:build-model schema converting D:/Apache2/htdocs/a...ig/generated-schema.yml to XML schema putting D:/Apache2/htdocs/ats/c.../generated-generated-schema.xml schema converting D:/Apache2/htdocs/ats/config/schema.yml to XML schema putting D:/Apache2/htdocs/ats/config/generated-schema.xml propel Running om phing task Execution of target om-template failed for the following reason: D: \php5\PEAR\ pear\symfony\plugins\sfPropelPlugin\lib\vendor\propel-generator\build- propel.xml :479:1: Duplicate table found: propel. [phingcall] D:\php5\PEAR\pear\symfony\plugins\sfPropelPlugin\lib\vendor \propel-g enerator\build-propel.xml:479:1: Duplicate table found: propel. Execution of target om failed for the following reason: D:\php5\PEAR \pear\symf ony\plugins\sfPropelPlugin\lib\vendor\propel-generator\build- propel.xml:465:22: Execution of the target buildfile failed. Aborting. [phing] D:\php5\PEAR\pear\symfony\plugins\sfPropelPlugin\lib\vendor \propel-g enerator\build-propel.xml:465:22: Execution of the target buildfile failed. Abor ting. Some problems occurred when executing the task: build-propel.xml:479:1: Duplicate table found: propel. build-propel.xml:465:22: Execution of the target buildfile failed. Aborting. If the exception message is not clear enough, read the output of the task fo r more information file- D:/Apache2/htdocs/ats/config/generated-schema.xml file- D:/Apache2/htdocs/ats/config/generated-schema-transformed.xml file- D:/Apache2/htdocs/ats/config/generated-generated-schema.xml file- D:/Apache2/htdocs/ats/config/ge...enerated-schema-transformed.xml D:\Apache2\htdocs\ats --~--~-~--~~~---~--~~ 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: user-getFlash() when the flash contain html tag
The problem is caused by the automatic escaping of any data passed from the controller to the view (including the flash), that you have enabled while generating the application. One way to work around it is to disable escaping entirely, but then you'll have to do this manually, or to get the data somehow unescaped. I do not know a way to do this, but hopefully someone smarter will tell us :) On Wed, Apr 22, 2009 at 10:23, Ahmed ghaliano2...@gmail.com wrote: Also the generated html of the message seems to be correct (but the browser display him as a string) Best glance;) On 21 avr, 19:25, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com wrote: Hi Ahmed, At my side this is working i have used in actions class $msg = a href=\some-url\display msg/a; and then set the flash message by $this-getUser()-setFlash('msg', $msg); then i am retrieving it in templates as $sf_user-getFlash('msg'); and it is working fine. On Tue, Apr 21, 2009 at 9:31 PM, Ahmed ghaliano2...@gmail.com wrote: Hi all ; i have a simple message Where i store a html message with br and a tag . When i try to display it (in the layout ) with echo $sf_user-getFlash ('msg') ,she not recognize any html tag an display them as a string . How can i correct this ? . Cordialy Ahmed . -- Regards, Dheeraj --~--~-~--~~~---~--~~ 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: Using ajax for input text update
You can use a normal template to be rendered after an ajax call, just set hasLayout to false either in view.yml, or in your action. I think symfony can do this automatically when the IsXMLHTTPRequest http header is set (automatically done by prototype and jquery). On Thu, Apr 16, 2009 at 16:09, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Thank you, now I know how exactly return data :) with renderText or renderPartial :) Main problem was that remote_function could update only elements like DIVs, not values of input. I thought that this is how it working. But no one wrote enywhere that you can ommit update and use success with data. There I put jQuery function that updates value of an input. 2009/4/16 Steve the Canuck steve.san...@gmail.com There are a few ways to do ajax based rendering. One way is to have the Ajax based action you are calling return you the chunk of HTML and then you just render that HTML. Another way is for the Ajax based action to return you a response (more appropriate if there are multiple pieces of data and you may want to render the data in various structures in the HTML document. Which method you go with depends on which jquery method you call. Take a look here: http://www.symfony-project.org/jobeet/1_2/Propel/en/18 On Apr 16, 6:37 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: So maybe any guess how to get data from action via ajax and put it into input? --~--~-~--~~~---~--~~ 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: Schema Problem
The cli often has a different php.ini, maybe you don't have pdo enabled there. Run a phpinfo() from the command line and it will tell you which php.ini it uses. On Fri, Apr 17, 2009 at 12:40, Waseem whme...@gmail.com wrote: i have installed symfony 1.2.5 on windows xp. and using mysql 5 and apache 2.0 and php 5.8 when i run this command get follwoing result. command: pear channel-discover pear.symfony-project.com result: D:\Apache2\htdocs\proj1symfony propel:build-schema PHP Fatal error: Class 'PDO' not found in D:\php5\PEAR\pear\symfony \plugins\sfP ropelPlugin\lib\vendor\propel\util\PropelPDO.php on line 42 Fatal error: Class 'PDO' not found in D:\php5\PEAR\pear\symfony\plugins \sfPropel Plugin\lib\vendor\propel\util\PropelPDO.php on line 42 D:\Apache2\htdocs\proj1 When i rung phpinfo(); it shows PDO extensions enabled. when i run php -m it does not shoe PDO extensions enabled for mysql. please if any one has any idea about the problem help me. Thanks Waseem --~--~-~--~~~---~--~~ 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: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.
Will that log startup errors? At the initial deploy you cannot be sure that even your app starts successfully, let alone it can connect to the database. On Thu, Apr 16, 2009 at 11:13, Lee Bolding l...@leesbian.net wrote: Or use my sfErrorHandlerPlugin ;) http://www.symfony-project.org/plugins/sfErrorHandlerPlugin On 16 Apr 2009, at 09:58, FÁSI Gábor wrote: I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse cruses...@gmail.com wrote: Hi symfony coders I making a rest application which does not show php syntax errors. Just a blank screen, quite a pain. I wondering if this has happened to anyone else? The rest app lives in an existing symfony application, has been set up as a plugin, has its own routing.yml, has its own frontcontroller with apache rewrite redirecting by searching for a starting prefix in all urls. Since its a php syntax error symfony logs are not much help...or have not been for me. I have scratched my head too long on it and am at a loss at why it is doing it. I am including .htaccess in case the problem is there I do not know where else to look. Here is .htaccess IfModule mod_rewrite.c RewriteEngine On # anything /web* gets redirected to the front controller RewriteRule ^web(.*)$ restserver.php$1 [QSA,L] # Symfony rules # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] ... Any tips, clues or ideas would be greatly appreciated. Thanks! --~--~-~--~~~---~--~~ 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: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.
I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse cruses...@gmail.com wrote: Hi symfony coders I making a rest application which does not show php syntax errors. Just a blank screen, quite a pain. I wondering if this has happened to anyone else? The rest app lives in an existing symfony application, has been set up as a plugin, has its own routing.yml, has its own frontcontroller with apache rewrite redirecting by searching for a starting prefix in all urls. Since its a php syntax error symfony logs are not much help...or have not been for me. I have scratched my head too long on it and am at a loss at why it is doing it. I am including .htaccess in case the problem is there I do not know where else to look. Here is .htaccess IfModule mod_rewrite.c RewriteEngine On # anything /web* gets redirected to the front controller RewriteRule ^web(.*)$ restserver.php$1 [QSA,L] # Symfony rules # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] ... Any tips, clues or ideas would be greatly appreciated. Thanks! --~--~-~--~~~---~--~~ 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: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.
I meant your appname_dev.php front controller, auto-generated in the web folder by generate:app. It calls a die when you're accessing it from somewhere other than localhost. Gábor On Thu, Apr 16, 2009 at 13:30, Roland Cruse cruses...@gmail.com wrote: Hi FÁSI I looked into the symfony/lib/controllers and none of them seem to call die at least grep did not think so. I do not understand, could you give me some more details. Thanks On Thu, Apr 16, 2009 at 10:58 AM, FÁSI Gábor maerl...@gmail.com wrote: I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse cruses...@gmail.com wrote: Hi symfony coders I making a rest application which does not show php syntax errors. Just a blank screen, quite a pain. I wondering if this has happened to anyone else? The rest app lives in an existing symfony application, has been set up as a plugin, has its own routing.yml, has its own frontcontroller with apache rewrite redirecting by searching for a starting prefix in all urls. Since its a php syntax error symfony logs are not much help...or have not been for me. I have scratched my head too long on it and am at a loss at why it is doing it. I am including .htaccess in case the problem is there I do not know where else to look. Here is .htaccess IfModule mod_rewrite.c RewriteEngine On # anything /web* gets redirected to the front controller RewriteRule ^web(.*)$ restserver.php$1 [QSA,L] # Symfony rules # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] ... Any tips, clues or ideas would be greatly appreciated. Thanks! --~--~-~--~~~---~--~~ 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: csrf protection on and link_to() + method: put, post, delete - what is going on ?
It's not like you 'should' or 'must', it's just a convention to use delete for deletion, put for creation or update. Check this: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_example:_the_World_Wide_Web On Wed, Apr 15, 2009 at 14:12, dziobacz aaabbbcccda...@gmail.com wrote: I have read some articles about method put, post and delete in symfony but I still don't understand that. If I have: link_to( 'click me', '/profile/users/action/57', array ('method' = '...') ) 1. I want to delete something with id=57 from database. Should I use method delete ? 2. I want to update something with id=57 in database. Should I use method put or post ? 3. I want to insert something with id=57 in database. Should I use method put or post ? --~--~-~--~~~---~--~~ 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: Issue with Swift
Put an `error_reporting(E_ALL);` before the code, and you'll get the error message on the output, not just the error log. On Wed, Apr 15, 2009 at 17:37, Adrien Mogenet adrien.moge...@gmail.com wrote: I performed a test using `class_exists()` and Swift class seems to be correctly loaded... -- Adrien On 15 avr, 17:34, Pablo Godel pgo...@gmail.com wrote: did you try another connection method? It is possible that PHP is not finding the class. On Wed, Apr 15, 2009 at 11:31 AM, Adrien Mogenet adrien.moge...@gmail.com wrote: I tried to move the `echo`, and the error occurs just after the new Swift() line... I'll checked my error log, it's still empty :-X I also tried to use ENC_TLS instead of using ENC_SSL -- Adrien On 15 avr, 17:24, Pablo Godel pgo...@gmail.com wrote: did you check your PHP error log ? It seems to me you are getting a PHP fatal error before echo. If for some reason you can't see the error log, try to move the echo line up until you find it, then you will know on what line the error is. Pablo On Wed, Apr 15, 2009 at 11:20 AM, Adrien Mogenet adrien.moge...@gmail.com wrote: Hi all, I'm trying to use Symfony 1.2 with Swift and I got a strange issue.. $methodObject = new Swift_Connection_SMTP('smtp.gmail.com', 465, Swift_Connection_SMTP::ENC_SSL); $methodObject-setUsername('un...@gmail.com'); $methodObject-setPassword('PWD'); $mailer = new Swift($methodObject); echo foo; and `foo` doesn't appear, and I'm not able to send emails... I don't know why :-( Does someone got a similar problem ? -- Adrien --~--~-~--~~~---~--~~ 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: Tricky date format requirements...
One of the basic symfony principles is don't reinvent the wheel, do it's highly unlikely they do something that can be done with a single php function. On Wed, Apr 15, 2009 at 19:29, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: There's no way to do this within the Symfony framework's available functionality? I really don't like stepping out of the framework unless it's absolutely necessary, once I'm working within it. Lee Bolding wrote: Why not use the built in PHP date_format function? http://uk3.php.net/manual/en/function.date-format.php On 15 Apr 2009, at 09:03, Kevin Barsotti wrote: I'm working on an application that deals with a large amount of data, including DATETIME format dates. These dates have different formatting requirements from column to column and even within the same module view, i.e. a DATETIME might need to appear as 01-20-2009 in one place and again as 1/20/09 in another, on the same page. The date format information I've managed to find for Symfony doesn't seem to encompass situations like this, and I was wondering if anyone might be able to advise me on the matter or direct me to information that could help me with my implementation. -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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: the simpliest search on the word doesn't work
I believe you need a validator, even if you don't need the validation. Check sfValidatorPass: http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorpass On Mon, Apr 13, 2009 at 09:48, dziobacz aaabbbcccda...@gmail.com wrote: I have made my own search - I don't want zend luciene or something because it is very simply search - and it doesn't work :( I think something is wrong with validation but I don't need validation. Search Form without validation (if I extends from sfFormDoctrine - search also doesn't work): class SearchForm extends sfForm { public function configure() { $this-widgetSchema['subject'] = new sfWidgetFormInput(); //I don't want validation so I disable it: $this-validatorSchema-setOption('allow_extra_fields', true); $this-validatorSchema-setOption('filter_extra_fields', false); $this-widgetSchema-setNameFormat('data[%s]'); } } !!!$lol and $lol2 - communicates Template: form action=?php echo url_for('users/search') ? method=POST table tr td?php echo $form['subject']-render(); ?/td tdinput type=submit value=Szukaj//td /tr /table /form ?php echo $lol; ? br/ ?php echo $lol2; ? !!!$lol and $lol2 - communicates Actions: public function executeSearch(sfWebRequest $request) { $this-lol = start; $this-lol2 = start2; $this-form = new SearchForm(); if ($request-isMethod('post')) { $this-form-bind($request-getParameter('data')); if ($this-form-isValid()) { $this-lol = ok.$this-form-getValue('subject'); $this-lol2 = ok2.$request-getParameter('subject'); $parameter = $this-form-getValue('subject'); $query = Doctrine::getTable('sfGuardUserProfile')-search ($parameter); } else { $this-lol = error.$this-form-getValue('subject'); $this-lol2 = error2.$request-getParameter('subject'); } } } After come in on site I see search and communicate 'start' and 'start2', after click search button I see only communicate 'error' and 'error2' (but I don't see after these communicates words which have been written in search)- I think it means that form isn't valid but I disable validation - what is going on ? What is more - if I make form IN NORMAL PHP AND USE IT IN SYMFONY IT WORKS !! Maybe in symfony I can't make forms with no validations, maybe minimum 1 field must have a validation Help ? :( --~--~-~--~~~---~--~~ 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 insert cyrillic words?
If you meant if utf8 supported cyrillic, the answer is a definite yes. 2009/4/12 Alexandru-Emil Lupu gang.al...@gmail.com: HI! you might want to try UTF-8 encoding ? dunno for sure if it supports cyrilic characters.. but it might be a chance alecs 2009/4/12 belbek zbit...@gmail.com dtabases.yml all: propel: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:host=localhost;dbname=info' username: root password: null encoding: cp1251 persistent: true pooling: true categories: sut: {name: ываывыаыыа} bad: {name: and some othe cyrillic words} symfony propel:data:load geting unable to execute insert: incorrect string value for column name: \XFB . how to insert cyrillic words? --~--~-~--~~~---~--~~ 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 give a parameter to a form ?
The second parameter of the default constructor[1] is an array called $options. You can use that to pass config settings to the form, and get them via sfForm's getOption()[2]. [1] http://www.symfony-project.org/api/1_2/sfForm#method___construct [2] http://www.symfony-project.org/api/1_2/sfForm#method_getoption On Sat, Apr 11, 2009 at 15:24, dziobacz aaabbbcccda...@gmail.com wrote: I action.class.php I have: $this-form = new Change_dataForm(Michael); And in Form: private $something; public function __construct($name) { $something = $name; } But I have an error: Fatal error: Call to a member function getDefaults() on a non-object WHY ?? --~--~-~--~~~---~--~~ 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 give a parameter to a form ?
I don't know what $object is, I tend to use array() there (the default value for that parameter), but besides this your code seems fine. On Sat, Apr 11, 2009 at 17:00, dziobacz aaabbbcccda...@gmail.com wrote: so in action.class.php: $this-form = new ChangeForm($object, array('parameter1' = 'Michael')); in Form: class ChangeForm extends sfForm { public function configure() { $a = $this-getOption('parameter1'); . is it ok ? On 11 Kwi, 15:53, FÁSI Gábor maerl...@gmail.com wrote: The second parameter of the default constructor[1] is an array called $options. You can use that to pass config settings to the form, and get them via sfForm's getOption()[2]. [1]http://www.symfony-project.org/api/1_2/sfForm#method___construct [2]http://www.symfony-project.org/api/1_2/sfForm#method_getoption On Sat, Apr 11, 2009 at 15:24, dziobacz aaabbbcccda...@gmail.com wrote: I action.class.php I have: $this-form = new Change_dataForm(Michael); And in Form: private $something; public function __construct($name) { $something = $name; } But I have an error: Fatal error: Call to a member function getDefaults() on a non-object WHY ?? --~--~-~--~~~---~--~~ 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 give a parameter to a form ?
Even if you can pass null there, I'd still recommend array() to avoid E_NOTICE messages thrown because of sfForm's line 703 [1] Fási is a hungarian name, and that's actually my last name - we write names in a different order than most of the world, that's why it's in all-caps :P [1] http://trac.symfony-project.org/browser/branches/1.2/lib/form/sfForm.class.php#L703 On Sat, Apr 11, 2009 at 17:40, dziobacz aaabbbcccda...@gmail.com wrote: so I think it is more correct now: $this-form = new ChangeForm(NULL, array('parametr1' = 'Michael')); Thx FASI (?? - what a name hehe), Michael and sid for help :) On 11 Kwi, 17:23, FÁSI Gábor maerl...@gmail.com wrote: I don't know what $object is, I tend to use array() there (the default value for that parameter), but besides this your code seems fine. On Sat, Apr 11, 2009 at 17:00, dziobacz aaabbbcccda...@gmail.com wrote: so in action.class.php: $this-form = new ChangeForm($object, array('parameter1' = 'Michael')); in Form: class ChangeForm extends sfForm { public function configure() { $a = $this-getOption('parameter1'); . is it ok ? On 11 Kwi, 15:53, FÁSI Gábor maerl...@gmail.com wrote: The second parameter of the default constructor[1] is an array called $options. You can use that to pass config settings to the form, and get them via sfForm's getOption()[2]. [1]http://www.symfony-project.org/api/1_2/sfForm#method___construct [2]http://www.symfony-project.org/api/1_2/sfForm#method_getoption On Sat, Apr 11, 2009 at 15:24, dziobacz aaabbbcccda...@gmail.com wrote: I action.class.php I have: $this-form = new Change_dataForm(Michael); And in Form: private $something; public function __construct($name) { $something = $name; } But I have an error: Fatal error: Call to a member function getDefaults() on a non-object WHY ?? --~--~-~--~~~---~--~~ 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: Dynamic security.yml
I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like sfBasicSecurityFilter. You can check its source here: http://trac.symfony-project.org/browser/branches/1.2/lib/filter/sfBasicSecurityFilter.class.php Focus on the forwardToSecureAction() and forwardToLoginAction() functions. On Thu, Apr 9, 2009 at 13:08, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: * reminder * I really need this, can anyone help me please? :) Thx in advance! On 8 apr, 19:48, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a way to dynamically generate the security.yml file? In that file you can configure which credentials are required for the execution of an action. But I want top users to be able to configure the credentials themselfs in web forms, they need to be able to choose which credentials are required for the different modules. That's why I want to set the credentials in the security.yml dynamically with PHP. --~--~-~--~~~---~--~~ 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: Dynamic security.yml
I haven't used filters yet, but askeet's day 18 [1] and the Book's chapter 6 [2] deal with filters, and the latter one seems to be good enough for a kickstart. [1] http://www.symfony-project.org/askeet/1_0/en/18#chapter_18_create-a-filter [2] http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_filters On Thu, Apr 9, 2009 at 14:45, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Maybe you can explain me how to use sfBasicSecurityFilter? How do I create a filter? There is not good documentation about this. On 9 apr, 14:10, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Ok, I will look into it. Thank you! More suggestions are welcome :) On 9 apr, 13:54, FÁSI Gábor maerl...@gmail.com wrote: I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like sfBasicSecurityFilter. You can check its source here:http://trac.symfony-project.org/browser/branches/1.2/lib/filter/sfBas... Focus on the forwardToSecureAction() and forwardToLoginAction() functions. On Thu, Apr 9, 2009 at 13:08, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: * reminder * I really need this, can anyone help me please? :) Thx in advance! On 8 apr, 19:48, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a way to dynamically generate the security.yml file? In that file you can configure which credentials are required for the execution of an action. But I want top users to be able to configure the credentials themselfs in web forms, they need to be able to choose which credentials are required for the different modules. That's why I want to set the credentials in the security.yml dynamically with PHP. --~--~-~--~~~---~--~~ 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: 404 http status
My customized 404 page does send a 404 http code, your example makes me think the default one doesn't. Add a custom error page (settings.yml, error_404_module and error_404_action) and try again. On Thu, Apr 9, 2009 at 15:47, Pierre Bastoul pie...@o10c.fr wrote: would you like to try : http://www.jonathancharles.fr/a_page_that_does_not_exist there I get a very well formated 200 OK status code. It makes me think something is wrong in my config. But what ? 2009/4/9 FlyLM [ML] flylm...@gmail.com 2009/4/9 Pierre Bastoul pie...@o10c.fr: Hi, I don't understand why the default symfony 404 error page return a 200 OK http status and not the good 404 status. I am running symfony 1.2.5 on apache2. I get a 404 code with the default symfony 404 page on the same version of sf. [09/Apr/2009:15:26:17 +0200] GET /toto/ HTTP/1.1 404 2104 Is there something I can do ? thanks for help -- Pierre -- Pierre Bastoul odyssee - 2bis, allée Robinville 33138 Lanton T +33 (5) 56 607 407 - F +33 (5) 56 607 408 welc...@lawebagence.com - www.lawebagence.com SARL o10c au capital de 14 € - IC FR2641310712900038 - RCS Albi 413107129 --~--~-~--~~~---~--~~ 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: Mime_types Mp3 upload file
mime_types should be an array. On Wed, Apr 8, 2009 at 10:26, saturn1...@hotmail.com saturn1...@hotmail.com wrote: Hello in the case of an upload of mp3 file, i write this validator : $this-validatorSchema['son'] = new sfValidatorFile(array( 'required' = true, 'path' = sfConfig::get('sf_upload_dir').'/mp3', 'mime_types' = 'audio/mpeg', 'max_size' = sfConfig::get('app_max_size_mp3'), )); But when i upload an mp3 the error is : Invalid mime type category audio/mpeg Thank's for the help! Good bye!! --~--~-~--~~~---~--~~ 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: sfDoctrineRouteCollection and non integer primary keys
Try .../staff/edit/someid On Tue, Apr 7, 2009 at 15:46, Nacho Bergmann nachoc...@gmail.com wrote: I add some info: This are my routes: textos: class: sfDoctrineRouteCollection options: model:Textos module: textos prefix_path: textos column: pagina with_wildcard_routes: true # default rules homepage: url: / param: { module: textos, action: index } And my model: Textos: columns: pagina: type: string(10) primary: true mostrar: type: string(10) notnull: true orden: type: integer notnull: true titulo: type: string(60) notnull: true cuerpo: type: string(5000) notnull: true When I go to http://localhost/backend_dev.php/staff/someid/edit, I get a 404 Error with the Empty module and/or action after parsing the URL /staff/someid/edit (/). message. What could be causing the problem? (See previous message for more details) Nacho.- 2009/4/6 NachoCual nachoc...@gmail.com Hello. This is my first message in the list, as I'm taking my first steps with symfony. I searched for an answer both in google and in this list, but I couldn't find anything. Anyway, sorry if it has been already asked, or if a too silly question. I'm trying to make a doctrine admin module for a class, and there's some error in the automatic generated routing (the homepage route works fine, the sfDoctrineRouteCollection is what's giving me trouble). My guess is it's because the class doesn't have an integer key, but a string one, because it worked fine when I was doing the Jobeet tutorial and I can't find any differences besides this. Am I correct? Or should I look somewhere else? Thanks! --~--~-~--~~~---~--~~ 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 use cli task command in linux cron?
cd /path/to/symfony; php symfony clearActiveUsers On Wed, Apr 8, 2009 at 04:49, xhe hexuf...@gmail.com wrote: Don't know if you have ever met this issue. I want to run sym1.2 task from cron cli environemnt, in windows, I will use php symfony clearActiveUsers But in linux cron, how can we write it? I used this: php /path/to/symfony clearActiveUsers, but whenever I run it out of symfony directory, I got error: Task clearActiveUsers is not defined. This can be run under symfony directory, but in cron, how can I set it up? Thanks --~--~-~--~~~---~--~~ 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: Format of plain text email
It might be connected to the way fixtures are loaded. You can put php code in there (like a for loop to make a lot of data), but if a line ends with php code, you must manually echo a \n otherwise there will be no linebreak there. The workaround you found is part of how SMTP works :) if you'd echo a line with only a dot in it, that would send the mail and the rest would be ignored. On Thu, Apr 2, 2009 at 21:31, Steve the Canuck steve.san...@gmail.com wrote: After playing around, it seems like I can do something like add a period . to the end of the line, and then the linebreak is properly recognized. However, simply adding a space character doesn't do the trick. It seems that if the line ends with a ? tag, the line break is ignored. I'm not sure why this is the case. I don't really want to put a period at the end of each line though, so if anyone knows how to solve this, I'd greatly appreciate it! Cheers, Steve On Apr 2, 3:23 pm, Steve the Canuck steve.san...@gmail.com wrote: No, it seems not, other than the first linebreak. The email comes out as: A goalie has applied to play in your booking: From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor: Ice Hockey, Shinny, Level Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1 It looks like I have to put in two line breaks for each line break I want to see?! On Apr 2, 1:13 pm, FÁSI Gábor maerl...@gmail.com wrote: Do you get the linebreaks in the source? You can check it with the 'show original' menuitem under the downarrow. On Thu, Apr 2, 2009 at 18:46, Steve the Canuck steve.san...@gmail.com wrote: Hi, I am sending plain text emails from my app using Swift Mailer. The email bodies are all stored in partials. What I am noticing is that the line breaks are not in the email when the email is received. For example: A goalie has applied to play in your booking: From: ?php echo $reservation-getStartTime() ? To: ?php echo $reservation-getEndTime() ? At: ?php echo $reservation-getFacility()-getName() ? For: ?php echo $reservation-getRefEventCategory() ?, ?php echo $reservation-getRefEventType() ?, ?php echo $reservation- getRefLevel() ? ?php echo url_for('@reservationApply?resId='.$reservation-getId(), true) ? In the above email, all the lines are sandwiched together when I receive it, and the line breaks I put in are not being applied. Is there anything I need to do? I am both sending the emails and viewing them using Gmail. Steve --~--~-~--~~~---~--~~ 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: Column type VARCHAR BINARY
You can use sqlType in your schema, but you may lose portability this way. On Fri, Apr 3, 2009 at 11:31, andreas inputrequi...@googlemail.com wrote: Hi all, unfortunately, MySQL VARCHAR columns are not case-sensitive by default. To make them case-sensitive, columns need to be defined like this: 'mycolumns' VARCHAR(16) BINARY I couldn't find a way to define this in my schema. Is there any way at all to define VARCHAR columns like this in Propel, or do I need to edit my generated SQL and insert it manually? Is there an option to do this in Doctrine? Thanks, Andreas --~--~-~--~~~---~--~~ 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: are there anyway to reduce the memory size
This problem has nothing to do with max_execution_time, and by the way: that's a php config value, not an apache one. On Fri, Apr 3, 2009 at 05:48, sherwin corpuz sherwincor...@gmail.com wrote: Your Apache execution is only 30 second in default, make it large, max_execution time of your php.ini file and restart your apache. On Fri, Apr 3, 2009 at 10:03 AM, xhe hexuf...@gmail.com wrote: I am using shared hosting, but my backend can not be used due to memory inefficiency: Fatal error: Out of memory (allocated 51380224) (tried to allocate 7680 bytes) in /home1/transla1/public_html/symfony-clb/lib/model/om/ BaseUserColorEyePeer.php on line 80 are there anyway to reduce the memory usage? --~--~-~--~~~---~--~~ 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: Format of plain text email
Do you get the linebreaks in the source? You can check it with the 'show original' menuitem under the downarrow. On Thu, Apr 2, 2009 at 18:46, Steve the Canuck steve.san...@gmail.com wrote: Hi, I am sending plain text emails from my app using Swift Mailer. The email bodies are all stored in partials. What I am noticing is that the line breaks are not in the email when the email is received. For example: A goalie has applied to play in your booking: From: ?php echo $reservation-getStartTime() ? To: ?php echo $reservation-getEndTime() ? At: ?php echo $reservation-getFacility()-getName() ? For: ?php echo $reservation-getRefEventCategory() ?, ?php echo $reservation-getRefEventType() ?, ?php echo $reservation- getRefLevel() ? ?php echo url_for('@reservationApply?resId='.$reservation-getId(), true) ? In the above email, all the lines are sandwiched together when I receive it, and the line breaks I put in are not being applied. Is there anything I need to do? I am both sending the emails and viewing them using Gmail. Steve --~--~-~--~~~---~--~~ 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: Jobeet: Doctrine: Day 3
You linked screenshots for two different screens: one for the job list, one for an edit job page. Just checked jobeet day 03, seems like the url is incorrect, it should be like /job/edit/1 or something like that. On Tue, Mar 31, 2009 at 22:27, Emily Berk em...@armadillosoft.com wrote: I've gone through Day 3 of the tutorial. When I call up the thing at the end of the day, I see something that looks like this: http://www.flickr.com/photos/armadillosoft/3402686504/ Is this correct? But it's SUPPOSED to look like this: http://www.symfony-project.org/images/jobeet/1_2/03/job.png right? So what do you think I'm doing wrong? Looks like maybe I'm not generating forms ??? TIA, -- Emily -- Forwarded message -- From: t...@soe taylor@gmail.com Date: Dec 16 20e08, 12:48 am Subject: Jobeet: Doctrine: Day 3 To: symfony users I am following thetutorialforJobeet/Doctrine onDay 3. After I created the schema.yml and run build-sql, the prompt is doctrine generating sql for models doctrine Generated SQL successfully for models But I cannot find mentioned sql file under data/sql. There is only one emply schema.sql residing. I am using Windows XAMPP distribution. Emily Berk http://www.armadillosoft.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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Upload file name
It's pretty useful when you have two files with the same name uploaded. You can get the original filename via sfValidatedFile-getOriginalName() An instance of sfValidatedFile is returned by sfValidatorFile by default. On Mon, Mar 30, 2009 at 11:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I upload a file using sfWidgetFormInputFile() and sfValidatorFile (), it gets some sort of MD5 / SHA1 filename. For example, cf95672e445d03249959d832441ff5095b6b6d12.docx. Is it possible to keep the original file name, eventually slugified? Example: Upload: our marketing plan.docx File: our-marketing-plan.docx --~--~-~--~~~---~--~~ 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: Upload file name
While saving the form data in your action, you can get the sfValidatedFile instance by calling $form[file]-getValue(), and that has the getOriginalName() method I was referring to. On Mon, Mar 30, 2009 at 12:46, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Fási, thank you too! But I do not understand about sfValidatedFile- getOriginalName(). I'm working in my form class, in sfValidatorFile. I cannot use those functions there. On 30 mrt, 12:43, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Thx for your reply Joan! I do understand your explaination op the sfValidatedFile class. But, how do I overwrite / extend the sfValidatedFile? Should I create a class in my lib directory? And how do I overwrite the file name? I searched the Symfony website, but I cannot find any information about that. On 30 mrt, 12:04, Joan Teixidó eliog...@gmail.com wrote: Hi, when the sfValidatorFile clean the file, it's convert to instance of sfValidatedFile. This class makes the save and md5 of the file. You can create a new class to manage a validated file, and pass the name of this class to the sfValidatorFile (it's the option: validated_file_class.) What i do is to create a class that extends sfValidatedFile and make my own save method. The sfValidatedFile class is into the same file of sfValidatorFile. good luck! Joan From Catalunya 2009/3/30 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com When I upload a file using sfWidgetFormInputFile() and sfValidatorFile (), it gets some sort of MD5 / SHA1 filename. For example, cf95672e445d03249959d832441ff5095b6b6d12.docx. Is it possible to keep the original file name, eventually slugified? Example: Upload: our marketing plan.docx File: our-marketing-plan.docx --~--~-~--~~~---~--~~ 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: Why should I write queries like this?
On Thu, Mar 26, 2009 at 09:31, Benjamin agtle...@gmail.com wrote: Lets say I change a field called name to first_name. Then I rebuild the models. fooPeer::NAME will no longer exist. Do I then manually define that constant in a peer class? Nope, you can use the phpName attribute for fields, not only for tables. --~--~-~--~~~---~--~~ 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: mysql extension not loaded
Well, the problem is: your mysql extension is not loaded. :P Check your php.ini, make sure there's no semicolon before the pdo_mysql extension. Note: the cli and the cgi versions often have a different php.ini. On Thu, Mar 26, 2009 at 11:01, sachin jain jainsachi...@gmail.com wrote: [propel-creole-transform] There was an error building XML from metadata: mysql extension not loaded [User Info: Array] [propel-creole-transform] Propel - CreoleToXMLSchema finished what could be the issue when i run build schema command and how to solev it ..I am having symfony 1.0 --~--~-~--~~~---~--~~ 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: Special characters in SF
Now you send utf8 in your meta as well, you used to send latin1 there. Are you absolutely sure the file is in utf8? Also, delete the old accented char, and enter it agan, now in utf8, should be fine. I still have to manually switch to iso-8859-1 to make it right. On Thu, Mar 26, 2009 at 09:30, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I changed it, but still got the same problem... On 25 mrt, 14:15, Fási Gábor maerl...@gmail.com wrote: Check the encoding of your file, if I view it with iso-8859-1 instead of utf8, it's fine. On Wed, Mar 25, 2009 at 10:56, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: See here: http://www.starterswijzerutrecht.nl/zoeken/jkals It is in dutch :P but in the main part you see two special characters, which are replaced bij a questionmark sign. Now, this is my sentence: Specificeer uw zoekterm door middel van één of meerdere gerichte zoekwoorden. It must be possible to simply show those characters? Normal HTML also shows them. --~--~-~--~~~---~--~~ 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: Atom Template
You have the short open tags php option enabled, so ? already starts the php interpreter, and you get a syntax error. On Thu, Mar 26, 2009 at 14:48, Nei Rauni Santos nra...@gmail.com wrote: Hi, I did the day 15 of Jobeet today, and I got an error when it render the atom template: Parse error: syntax error, unexpected T_STRING in /var/www/sfprojects/jobeet/apps/frontend/modules/job/templates/indexSuccess.atom.php on line 2 It's because the template start like a php tag: ?xml version=1.0 encoding=utf-8? for it work i changed the code for: ?= '?xml version=1.0 encoding=utf-8?'; ? and it work.. Is it correct?? thanks Nei --~--~-~--~~~---~--~~ 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: Special characters in SF
Check the encoding of your file, if I view it with iso-8859-1 instead of utf8, it's fine. On Wed, Mar 25, 2009 at 10:56, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: See here: http://www.starterswijzerutrecht.nl/zoeken/jkals It is in dutch :P but in the main part you see two special characters, which are replaced bij a questionmark sign. Now, this is my sentence: Specificeer uw zoekterm door middel van één of meerdere gerichte zoekwoorden. It must be possible to simply show those characters? Normal HTML also shows them. --~--~-~--~~~---~--~~ 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: constructor in symfony
You can use __construct(), just like anywhere else in php. Remember to call parent::__construct(). On Tue, Mar 24, 2009 at 16:11, dziobacz aaabbbcccda...@gmail.com wrote: How can I make constructor in symfony ? I have tried: class see_userActions extends sfActions { private $id; public function initialize() { $id=2; } . } Error: Strict Standards: Declaration of zobacz_uzytkownikaActions::initialize () should be compatible with that of sfAction::initialize() Call to a member function notify() on a non-object Why ?? --~--~-~--~~~---~--~~ 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: Download files - broken pdf
What's 'broken'? You mean you can't open it with adobe reader/other pdf viewer? If you check the contents of the file, does it look like a valid pdf? On Tue, Mar 24, 2009 at 12:51, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi, I use this code for downloading files. If I download image, it works, but if I download pdf, after downloading when I try to open it, it is broken. if (is_file($sciezka)) { // Enforce full download and prevent caching session_cache_limiter('none'); // No layout needed for file downloads $this-setLayout(false); sfConfig::set('sf_web_debug', false); // Prepare http headers $fileType = $file-getFormat()-getNazwa(); $response = $this-getResponse(); $response-clearHttpHeaders(); $response-setHttpheader('Pragma: public', true); $response-addCacheControlHttpHeader('Cache-Control', 'must- revalidate'); $response-setHttpHeader('Expires', 'Sat, 26 Jul 1997 05:00:00 GMT'); $response-setHttpHeader(Last-Modified, gmdate(D, d M Y H:i:s) . GMT); $response-setContentType($fileType,true); $response-setHttpHeader('Content-Description', 'File Transfer'); $response-setHttpHeader('Content-Transfer-Encoding', 'binary', true); $response-setHttpHeader('Content-Length', filesize('' . (string) utf8_decode($sciezka . ''))); $response-setHttpHeader('Content-Disposition', 'attachment; filename=' . str_replace( , _, utf8_decode($file- getFileNazwaOrginalna())) ); // Unlock session in order to prevent php session warnings $this-getUser()-shutdown(); // Send http headers to user client $response-sendHttpHeaders(); // Send file to user client //$response-setContent(readfile(utf8_decode($sciezka))); $response-setContent(readfile($sciezka)); //$response-setContent(file_get_contents(utf8_decode($file- getPath(; $response-sendContent(); // Exit without a template return sfView::NONE; This line gives a proper mime type $response-setContentType($fileType, true); fileType is taken from DB. These are: application/pdf and image/jpeg It is strange because locally on apache on windows it works, but not on production server. Locally when I upload file its pdf mime type is application/x-download. On production server it is application/pdf Any ideas what is the problem? --~--~-~--~~~---~--~~ 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: constructor in symfony
Most probably because the sfComponent's constructor needs 3 parameters. On Tue, Mar 24, 2009 at 17:25, dziobacz aaabbbcccda...@gmail.com wrote: Heh - ok so: private $ident; public function __construct() { parent::__construct(); $this-ident=2; } but I have still errors: Missing argument 1 for sfComponent::__construct() Missing argument 2 for sfComponent::__construct() Missing argument 3 for sfComponent::__construct() Undefined variable: context Undefined variable: moduleName Undefined variable: actionName Call to a member function getEventDispatcher() on a non-object I don't have this errors without constructor. On 24 Mar, 17:16, Pierre p...@pierre-minnieur.de wrote: $this-ident ... ever heard of $this? ;) On 24 Mrz., 17:06, dziobacz aaabbbcccda...@gmail.com wrote: It doesn't work for me: class see_userActions extends sfActions { private $ident; public function __construct() { parent::__construct(); $ident=2; } . } What can be the reason ? On 24 Mar, 16:41, Fási Gábor maerl...@gmail.com wrote: You can use __construct(), just like anywhere else in php. Remember to call parent::__construct(). On Tue, Mar 24, 2009 at 16:11, dziobacz aaabbbcccda...@gmail.com wrote: How can I make constructor in symfony ? I have tried: class see_userActions extends sfActions { private $id; public function initialize() { $id=2; } . } Error: Strict Standards: Declaration of zobacz_uzytkownikaActions::initialize () should be compatible with that of sfAction::initialize() Call to a member function notify() on a non-object Why ?? --~--~-~--~~~---~--~~ 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 textmate bundle
strg? is that command? Ctrl --~--~-~--~~~---~--~~ 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: Form validation in symfony1.2
You can use the validators described in the Forms book, appendix B http://www.symfony-project.org/book/forms/1_2/en/B-Validators they can be used w/o the form framework. On Mon, Mar 23, 2009 at 07:10, Prashanth pmahank...@gmail.com wrote: Hi All, iam working with symfony 1.2. i have created the forms without using the widgets. So please can any one help me How Can i validate the Form in Symfony1.2. Thanks in Advance. --~--~-~--~~~---~--~~ 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 do I update 23 records with one query? That is, all the players on a particular team?
What you need is BasePeer::doUpdate($selectCriteria, $updateCriteria, $con) See http://snippets.symfony-project.org/snippet/50 On Sat, Mar 21, 2009 at 09:16, Lawrence Krubner lkrub...@geocities.com wrote: When I look in Chapter 8 of the book, I realize that Criteria seems to be mostly about building SELECT statements: http://www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer When I look to see how I should update a record, I find a lot of information about updating a particular record, which I already know how to do. But how do I update many records? I want this SQL: UPDATE player SET mufson_award_winner='' WHERE new_team_id='712' How do I get that? Right now, this is the code I have. I can not figure out how to replace the magic part. // 03-20-09 - normally, one player per team wins the Mufson award. Sometimes, when there // are syblings on a team, they will give the award to both syblings. Here we are getting // an array of ids of the players who've won the Mufson Award. We must update the // mufson_award_winner field in the player database table $arrayWhoWonTheMufsonAward = $request-getParameter ('whoWonTheMufsonAward'); if (isset($arrayWhoWonTheMufsonAward)) { if (is_array($arrayWhoWonTheMufsonAward)) { // First, we must ensure that none of the players are marked as winners of the // the Mufson award. We will blank anyone currently chosen as a winner. Then // we will assign the winner. $c = new Criteria(); $c-add(NewPlayerPeer::NEW_TEAM_ID, $request-getParameter ('id')); [now something magic happens and all the players on the team have their mufson_award_winner field blanked] for ($i=0; $i count($arrayWhoWonTheMufsonAward); $i++) { $playerId = $arrayWhoWonTheMufsonAward[$i]; $playerModelClass = new NewPlayer(); $playerModelClass-setNew(false); $playerModelClass-setId($playerId); $playerModelClass-setMufsonAwardWinner(1); $playerModelClass-save(); } } } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Re : [symfony-users] sfGuardExtraPlugin
Did you clear your cache after installing the plugin? On Sat, Mar 21, 2009 at 00:57, ckemmler ckemm...@gmail.com wrote: This might be more interesting: I just tried to trigger the register action by going to: http://localhost/web/frontend_dev.php/sfGuardRegister/register This got me: Fatal error: Class 'sfGuardFormRegister' not found in /eclipse/ workspace/twittbook/plugins/sfGuardExtraPlugin/modules/sfGuardRegister/ lib/BasesfGuardRegisterActions.class.php on line 26 which seems to indicate that the action is indeed recognized and executed, but it can't find a class that's defined in the modules lib directory: sfGuardFormRegister It seems that my application doens't know about the plugin and hence doesn't know of the classes/libraries there declared. Am I totally wrong here? And if not, how do I correct this situation. Also, I forgot to mention that when I tried to install the plugin the normal way, I had the following error in the console: No release available for plugin sfGuardExtraPlugin What does it *really* mean? On Mar 20, 4:18 pm, ckemmler ckemm...@gmail.com wrote: Thanks! Did that. I have two problems now 1. the README there tells me: * Add method `retrieveByUsernameOrEmailAddress` to get a user by email or username in lib/model/sfGuardPlugin/sfGuardUserPeer.class e.q. [PHP] static public function retrieveByUsernameOrEmailAddress ($usernameOrEmail, $isActive = true ) { $c = new Criteria(); $c-add(self::USERNAME, $usernameOrEmail); $c-add(self::EMAIL, $usernameOrEmail); $c-add(self::IS_ACTIVE, $isActive); return self::doSelectOne($c); } but I don't have a lib/model/sfGuardPlugin/sfGuardUserPeer.class What am I supposed to do then? 2. Suddenly I get the following ugly warnings on every page: Warning: call_user_func (sfGuardExtraRouting::listenToRoutingLoadConfigurationEvent) [function.call-user-func]: First argument is expected to be a valid callback in /eclipse/workspace/twittbook/lib/symfony/event/ sfEventDispatcher.class.php on line 77 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /eclipse/ workspace/twittbook/lib/symfony/event/sfEventDispatcher.class.php:77) in /eclipse/workspace/twittbook/lib/symfony/storage/ sfSessionStorage.class.php on line 93 Warning: Cannot modify header information - headers already sent by (output started at /eclipse/workspace/twittbook/lib/symfony/event/ sfEventDispatcher.class.php:77) in /eclipse/workspace/twittbook/lib/ symfony/response/sfWebResponse.class.php on line 335 Warning: Cannot modify header information - headers already sent by (output started at /eclipse/workspace/twittbook/lib/symfony/event/ sfEventDispatcher.class.php:77) in /eclipse/workspace/twittbook/lib/ symfony/response/sfWebResponse.class.php on line 349 How do I interpret these? On Mar 20, 4:04 pm, Loïc Vernet qrf_c...@yahoo.fr wrote: Try by SVN or download the pear package. ++ De : ckemmler ckemm...@gmail.com À : symfony users symfony-users@googlegroups.com Envoyé le : Vendredi, 20 Mars 2009, 23h58mn 04s Objet : [symfony-users] sfGuardExtraPlugin This plugin seems to buy me everything I need. However, I can't install it using plugin:install... What about other ways of installing it? How do I know that it's going to work? --~--~-~--~~~---~--~~ 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: i18n for auto generated forms in admin generator
I'm not sure about the messages, but the labels can be translated, the form framework does this automatically. Unfortunately, the i18:extract task doesn't check the generated forms for strings to be translated, but if you include them in your xliff file, it'll echo the translated version. On Thu, Mar 19, 2009 at 02:29, Guido sanchez.gu...@gmail.com wrote: Hi, I tried searching but found nothing that cleared my mind on this thing. At the time the only way I found to set another language for the labels and messages of the auto generated forms in the admin interface is modifying generator.yml file. This lets me use only one language. What if I want these labels and messages to be displayed in 2 languages. Is there a way to make a translation of the auto generated forms as with i18n:extract method? Any help or tip will be very much appreciated. --~--~-~--~~~---~--~~ 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: translation data table
Check this, taken from jobeet part 19: # config/schema.yml jobeet_category: _attributes: { isI18N: true, i18nTable: jobeet_category_i18n } id: ~ jobeet_category_i18n: id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference: id } culture: { isCulture: true, type: varchar, size: 7, required: true, primaryKey: true } name: { type: varchar(255), required: true } slug: { type: varchar(255), required: true } You'll need those `isI18N` and `i18nTable` attributes. On Wed, Mar 18, 2009 at 12:59, Ghizlane Zinbi ghizlane.zi...@gmail.com wrote: Hi, I create 2 tables for translation: nationalite: _attributes: { phpName: Nationalite } id: code: varchar(255) intitule: varchar(255) blacklist: boolean created_at: nationalite_i18n: _attributes: { phpName: NationaliteI18n } name: varchar(50) The problem is that i cant retreive Nationalite Object translations. The solution i found is: je suis obligée de passer par l'objet NationaliteI18n : $n = NationaliteI18nPeer::retrieveByPk(1,'fr'); But this is not what i need, the objective is retreive Nationalite Object through the user culture. How can i do it? Thanks for help. Ghizlane, --~--~-~--~~~---~--~~ 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: connection to oracle9i
What's the error message you get? Did you modify all your php.inis? The cli and the cgi versions often use a different one. On Tue, Mar 17, 2009 at 00:14, Ghizlane Zinbi ghizlane.zi...@gmail.com wrote: Hi, I failed to connect my database oracle9i to symfony1.0 I m developping in windows xp. i tried to enable php_pdo_oci8 extension in the php.ini files and added instant client oracle to the path variable, but still dont working. any help? Ghizlane, --~--~-~--~~~---~--~~ 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: has anyone met this problem before - backend admin?
It seems like the site is trying to use the user's culture info, but it doesn't have any. Add one language, and try again. On Tue, Mar 17, 2009 at 02:57, xhe hexuf...@gmail.com wrote: I just followed the jobeet to create a backend admin for my site, but I met this error when trying to visit. Based on the error info, it is cauased by the missing of langauges. But How can I fix it? 500 | Internal Server Error | InvalidArgumentException The following languages do not exist: . stack trace * at () in SF_ROOT_DIR\lib\vendor\symfony\lib\i18n \sfCultureInfo.class.php line 794 ... 791. { 792. if ($problems = array_diff($languages, array_keys($allLanguages))) 793. { 794. throw new InvalidArgumentException(sprintf ('The following languages do not exist: %s.', implode(', ', $problems))); 795. } 796. 797. $allLanguages = array_intersect_key ($allLanguages, array_flip($languages)); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---