[symfony-users] sending email+cli
hi, i have written a batch script and executing it from command line,and executing it from command line.i am sending email in this script code is $raw_email = $this-sendEmail('mail', 'sendTalkToUs');Line --264 $this-logMessage($raw_email, 'debug'); i am getting this error,rest of code is working properly. Using $this when not in object context in /home/ k usum/workspace/zam_fe/ batch/crm_sync.php on line 264 what should i use instead of this. Thanks, Kusum --~--~-~--~~~---~--~~ 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 + Prototype JavaScript Image Cropper UI
Cedric, As I mentioned to Tom, you might want to have a look at IMagick (PHP wrapper for ImageMagick). It's far superior to GD, IMO. http://www.php.net/imagick jonathan On Aug 22, 1:36 am, Cédric Sadai [EMAIL PROTECTED] wrote: Hi, I did some similar work recently, I noticed a certain number of limitations with sfThumbnailPlugin, for GD at least: - doesn't handle well the difference between portrait and landscape format. If my thumb size is 400*300 and the pic is a portrait, I want it to be automatically set to 300*400. - doesn't handle well the scale option. It scales anyway, even when set to false. - doesn't handle well the squarize option, of course because it's impossible to squarize well if you scale (other words, you HAVE to crop to make a good square). All these things are more complicated than it seems, it's some good math actually. I've rewritten everything, and will certainly propose a plugin/patch out of it, for the GD part. What's your problem exactly? cedric On Aug 21, 2:38 pm, Tom Haskins-Vaughan [EMAIL PROTECTED] wrote: Hi, I've just come across this [Prototype JavaScript Image Cropper UI][1]. It's quite cool and by all accounts *seems* to be pretty good across multiple browsers. My questions is: has anyone written any backend stuff to process the image crop? I've made some (messy) extensions to the sfThumbnail plugin and got it working fine, but I was wondering if anyone had done a better job. If not, I'll try and package it all into a separate plugin. I'm happy to do the GD part but I have absolutely no experience of ImageMagik. Tom [1]http://www.defusion.org.uk/demos/060519/cropper.php -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] |www.templestreetmedia.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: sfGuard - how to implement registration
thank you for your message, I'm user of Symfony 1.1 , and I don't want to have many plugins , I prefer my own code ... so I decided to create my registration using user/create (crud), but I want to ask you how should I edit my code to provide that ..here's the user/update action public function executeUpdate($request) { $this-forward404Unless($request-isMethod('post')); $this-form = new SfGuardUserProfileForm(SfGuardUserProfilePeer::retrieveByPk($request- getParameter('id'))); $this-form-bind($request- getParameter('sf_guard_user_profile')); if ($this-form-isValid()) { $sf_guard_user_profile = $this-form-save(); $this-redirect('user/edit?id='.$sf_guard_user_profile- getId()); } $this-setTemplate('edit'); } thank you On Aug 22, 4:01 pm, Nicolas Perriault [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 4:31 PM, javo [EMAIL PROTECTED] wrote: I'm new to symfony and I'd like to ask what is the best way to create a registration, (create some simple form, use crud user model? , ...) Is there any howto? I couldn't find anything Smile If you use symfony 1.0, you can take a look at what has been done for Symfonians using sfGuard:http://symfonians.org/browser/branches/1.0/apps/main/modules/sfGuardAuth ++ -- Nicolas Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ 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] retrieve slot name in component when called from include_component_slot
Hello, I am developing a component which could be reused several times on my layout. The content to display depend on the slot where it is put. So, when I call it using include_component_slot, I need to know which slot is the caller, in order to render the right content. The only solution I found is to pass the name of the slot in a variable as third argument of the include_component_slot function. I am wondering if it is possible to do that in a cleaner way, in order to keep the layout.php as much generic as possible. Did someone found solution? --~--~-~--~~~---~--~~ 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] Chain tasks together?
Hi all, Is there a way to execute multiple tasks from within one task without needing to use exec()? I have a series of one-off tasks that must be performed in sequence and it'd be great if I could somehow cause a master task to run all of the children. Charley --~--~-~--~~~---~--~~ 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] AW: [symfony-users] Prototype/Script.ac.ul.ous/Javascript in Symfony 1.1.1
Hi, Prototype has not been removed. It will be moved to a plugin for symfony 1.2. In 1.1 it is there as it has been in 1.0: Via symlink /sf/prototype/js It was never installed by symfony itself into web/js/prototype, but actually many users did so to upgrade manually Best regards .: Fabian -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von elliesdad Gesendet: Freitag, 22. August 2008 17:55 An: symfony users Betreff: [symfony-users] Prototype/Script.ac.ul.ous/Javascript in Symfony 1.1.1 Hi all. I notice that the web/js/prototype directory is no longer present in Symfony 1.1. I have read that this has been removed so Symfony is not tied in to using Prototype and that the helpers associted with Javascript are deprecated too. These helpers seemed very useful and gave me as a novice the ability to create some very nice effects. How would I go about using these helpers and Prototype in Symfony 1.1. Is there a plugin or a better way? Thanks for your time. --~--~-~--~~~---~--~~ 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: Chain tasks together?
Exactly what I needed, to get me started. Thanks, good sir. Charley On Aug 24, 2008, at 2:04 PM, Jonathan Wage wrote: Isn't that what this does? http://svn.symfony-project.com/branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php - Jon On Sun, Aug 24, 2008 at 1:57 PM, Charley Tiggs [EMAIL PROTECTED] wrote: Hi all, Is there a way to execute multiple tasks from within one task without needing to use exec()? I have a series of one-off tasks that must be performed in sequence and it'd be great if I could somehow cause a master task to run all of the children. Charley -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.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: sfGuard - how to implement registration
I had the same problem, but I think Fabien (or someone) added the processing to the sfGuardUserForm to update the sfGuardUserProfile as well as sfGuardUser recently. If you update your sfGuard plugin, you should see the clode in the sfGuardUserForm. With this new code, it's as easy as building the model, building your forms, and generating the crud. Worked like a charm for me. :) On Aug 23, 1:51 am, javo [EMAIL PROTECTED] wrote: Ok thank you for your post, I choose tha way of editing CRUD (user/ edit) can somebody show me the example of editing user/edit action, to edit both sf_guard_user and sf_guard_user_profile tables and connect them? thank you On Aug 22, 4:01 pm, Nicolas Perriault [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 4:31 PM, javo [EMAIL PROTECTED] wrote: I'm new to symfony and I'd like to ask what is the best way to create a registration, (create some simple form, use crud user model? , ...) Is there any howto? I couldn't find anything Smile If you use symfony 1.0, you can take a look at what has been done for Symfonians using sfGuard:http://symfonians.org/browser/branches/1.0/apps/main/modules/sfGuardAuth ++ -- Nicolas Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ 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] Can i use JSON for my Chat
Hello. I have a chat application. Let's assume there are 10 chat conversation on my table like this, Mary : -Hi Jhon: Hello Mary : How are you John: Fine and you Mary: Fine too. Mary: Today ic nica day Every time i do not want to get all conversation. I want to save last 9 conversation somehow on clients box. And with request i want the last line. If there is one. Let's say after Mary John wrote: John:Yes it is On Mary's box, i want just request last line (Yes it is) and i want to save all other conversation on her box. How can i do this ? Is is possbile wirh JSON? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Assistance / Coach Needed
Hi Frank, Contact me off list - [EMAIL PROTECTED] I think I can help :) On Aug 24, 1:56 am, xfh [EMAIL PROTECTED] wrote: will pay ... I’m quite good with html + excel. Need to upgrade to php / mysql for my current dynamic web-site projects. Have read + understand a php / mysql book and want to use Symfony as a php framework which is new to me. I need experienced assisting / coaching, either remote or on site, to get through the learning curve. Regards, Frank --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---