[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Crafty_Shadow
I have been using NuSphere's PhpED for the past six months. It is not free (though a trail version is available), however it is better than Eclipse/Netbeans by leaps and bounds. If feels much more coherent, there is no excessive overfunctionality. Writing macros for symfony is a piece of cake,

[symfony-users] Re: plugin:install not working for 1.3/1.4?

2009-12-20 Thread Crafty_Shadow
is to download manually sourcecode, because PEAR doesn't do much more stuff (in my opinion). 2009/12/20 Crafty_Shadow vankat...@gmail.com Alexandre Salomé wrote: You should use SVN to manage your development and define your plugins as svn externals. While I agree with you

[symfony-users] Failing tests in symfony:test

2009-12-07 Thread Crafty_Shadow
This was run in windows, php 5.2.9-2 with symfony checked out from SVN (rev 25046) Result: Failed Test Stat Total Fail List of Failed -- functional/ActionRedirectTest 255 1 1 0 trine]

[symfony-users] Re: Failing tests in symfony:test

2009-12-07 Thread Crafty_Shadow
. Mac OS X 10.6.2, PHP 5.2.6 with symfony 1.4 stable tag All tests successful; 225 files; 8187 tests. Daniel On 2009-12-07, at 7/December, 11:51 PM, Crafty_Shadow wrote: This was run in windows, php 5.2.9-2 with symfony checked out from SVN (rev 25046) Result: Failed Test

[symfony-users] Re: How to select thumbnail of sfAssetLibraryPlugin from tinyMCE ?

2009-11-08 Thread Crafty_Shadow
There is no straightforward way to do that, the only thing I can think of is modify sfAssetPlugin's image browser for tiny to include an extra button for every image that would return the path to the thumbnail. It shouldn't be more than a few lines of html/js On Nov 7, 11:32 am, Sid Bachtiar

[symfony-users] Re: Out of memory everywhere /slow page response

2009-10-01 Thread Crafty_Shadow
I'm sorry, but I just couldn't let this go: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 83 bytes) in /var/www/1.2/lib/config/ sfAutoloadConfigHandler.class.php on line 115 ...quadcore x3360, x64bit linux, 8gb ram, 1333fsb, 1 rpm disks, 512 mb for php

[symfony-users] Self-referencing objects (a variantion of M:M)

2009-09-09 Thread Crafty_Shadow
In a project I have recently started I need to show a connection between objects. For the sake of example let's say I have a database structure similar to: child_record: id: ~ name: { type: varchar(255), required: true } slibling_relation:

[symfony-users] Re: Primary Key Forgery Attack?

2009-09-03 Thread Crafty_Shadow
Would you share your solution? I would suspect one way to go about doing it is keeping the current ID in the session (as a flash variable) and comparing it upon post. On Sep 2, 7:03 pm, Jeremy Thomerson jeremythomer...@gmail.com wrote: Yeah - but it's better to have both kinds of security.  The

[symfony-users] How could I switch to Lime 2.0 (I understand it's not complete)

2009-08-30 Thread Crafty_Shadow
Should I choose to use lime 2.0, would I be able to do so by simply creating a lime directory in my lib folder, and rely on Symfony's autoloading to take care of the inclusion order? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: How could I switch to Lime 2.0 (I understand it's not complete)

2009-08-30 Thread Crafty_Shadow
2009/8/30 Crafty_Shadow vankat...@gmail.com: Should I choose to use lime 2.0, would I be able to do so by simply creating a lime directory in my lib folder, and rely on Symfony's autoloading to take care of the inclusion order? --~--~-~--~~~---~--~~ You

[symfony-users] Re: How could I switch to Lime 2.0 (I understand it's not complete)

2009-08-30 Thread Crafty_Shadow
I have noticed that lime 2.0 is no longer marked as Experimental in the SVN branch, does that mean it is closing completion? I intend to use mainly for testing purposes (no pun intended), but still, it would be good to know when does the current revision stand. On Aug 30, 10:53 pm, Bernhard

[symfony-users] Re: Timeout loading yaml files 1MB

2009-07-29 Thread Crafty_Shadow
I have loaded a 6mb yaml fixtures file without the slightest problem. One option would be to use set_time_limit(0), thus giving the script an infinite time to run. (or you could set it to any other value in seconds that you feel comfortable with. Or, you could post a snippet of your code. I

[symfony-users] Re: Reading mail from smtp with symfony.

2009-07-25 Thread Crafty_Shadow
In the end, I went with a task that is called through a corn job. The task uses php's IMAP set of functions, some of my code is based on http://davidwalsh.name/gmail-php-imap and various other sources that come up when you do a simple google search. Depending on your host, finding way to access

[symfony-users] Reading mail from smtp with symfony.

2009-07-24 Thread Crafty_Shadow
Everybody knows how to send e-mails from symfony, or php in general. It's a trivial task. However, I am now faced with the need to do the reverse - use imap to read e-mails. From what I gather, one way to do so would be a task that is called through a cron job If anyone has any experience with

[symfony-users] Re: i18n in model::Peer method

2009-07-16 Thread Crafty_Shadow
What you've written, setting an static property of an object as an associative array with translation calls does not work. I have had the same problem before, what I usually do is call the widget with something along the lines of: 'choices'=array_map(array('TextTools ', '__'), JobeetJobPeer::

[symfony-users] Re: i18n in model::Peer method

2009-07-16 Thread Crafty_Shadow
might be loaded a little bit earlier than I18N Alecs On Thu, Jul 16, 2009 at 11:37 AM, Crafty_Shadow vankat...@gmail.com wrote: What you've written, setting an static property of an object as an associative array with translation calls does not work. I have had the same problem before

[symfony-users] Re: i18n in model::Peer method

2009-07-16 Thread Crafty_Shadow
strtr($text, $args);        }      } On Thu, Jul 16, 2009 at 3:49 PM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: I will paste in this topic my usage tonight .. when i will get home. Alecs On Thu, Jul 16, 2009 at 3:39 PM, Crafty_Shadow vankat...@gmail.comwrote: The problem

[symfony-users] Re: Propel and 1:1 relationships

2009-05-23 Thread Crafty_Shadow
night everybody, Daniel On May 22, 5:38 am, Crafty_Shadow vankat...@gmail.com wrote: Ok, I managed to write a static method for the Peer class that does exactly what I need, thanks for the help. I'm going to post it here:   public static function doSelectJoinRecordCriteria(Criteria

[symfony-users] Re: Propel and 1:1 relationships

2009-05-22 Thread Crafty_Shadow
to return the resultset. But in 1.3 you use doSelectStmt() to run your query with join and get aresaultset which you can then hydrate yourself manually. Would this help? On Thu, May 21, 2009 at 10:54 PM, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the interest in my problem

[symfony-users] Re: Propel and 1:1 relationships

2009-05-22 Thread Crafty_Shadow
/1.3/Upgrading): ?php // example of how to manually hydrate objects $stmt = AuthorPeer::doSelectStmt(new Criteria()); while($row = $stmt-fetch(PDO::FETCH_NUM)) {   $a = new Author();   $a-hydrate($row); } On Fri, May 22, 2009 at 1:19 PM, Crafty_Shadow vankat...@gmail.com wrote

[symfony-users] Re: Propel and 1:1 relationships

2009-05-21 Thread Crafty_Shadow
is that it's not really clear what you're trying to do.. I have no idea what this option0 / option1 setup is all about.. If you can give an example of what you're trying to do, maybe we can help better. Daniel On May 20, 3:20 pm, Crafty_Shadow vankat...@gmail.com wrote: Once again, a shameless

[symfony-users] Re: Propel and 1:1 relationships

2009-05-20 Thread Crafty_Shadow
Once again, a shameless bump! I tried several approaches to no avail. Halp! On May 19, 12:48 pm, Crafty_Shadow vankat...@gmail.com wrote: Thanks for the links, but those are of no help to me. Each and every single of the resources you have pointed me to are about propel 1.2. As I mentioned

[symfony-users] Re: Propel and 1:1 relationships

2009-05-19 Thread Crafty_Shadow
I am going to perform what is know as a shameless bump. I believe that this problem requires discussion, as having a 1:1 relationship should be fairly common, and it is only natural to seek way optimize it's workings. On May 17, 7:14 pm, Crafty_Shadow vankat...@gmail.com wrote: Hey guys, I

[symfony-users] Re: Propel and 1:1 relationships

2009-05-19 Thread Crafty_Shadow
Of Crafty_Shadow Sent: 19 May 2009 10:52 To: symfony users Subject: [symfony-users] Re: Propel and 1:1 relationships I am going to perform what is know as a shameless bump. I believe that this problem requires discussion, as having a 1:1 relationship should be fairly common, and it is only natural to seek

[symfony-users] Propel and 1:1 relationships

2009-05-17 Thread Crafty_Shadow
Hey guys, I have the following question - how do I make propel hydrate 1:1 relationships automatically ? When we have a normal 1:m relationship the peer class provides methods like doSelectJoinWhaever, but no such method is available when using a 1:1 The relation itself works just as it's

[symfony-users] Re: changing the default signin form's layout in sfGuardAuth

2009-04-18 Thread Crafty_Shadow
I too am interested in a more detailed explanation of form formatters and their usage when one simply does ?php echo $form; ? Google wasn't of much help regarding this matter, so does anybody know of a reliable information source (aside from reading the code itself) on how to use decorators? On

[symfony-users] Re: Symfony Production Performance improvements

2009-03-10 Thread Crafty_Shadow
looking through more advise recieved from this post and I have to thank everyone for their input. I honestly didn't expect this response and it has been fantastic and very helpful. On Mon, Mar 9, 2009 at 12:49 AM, Crafty_Shadow vankat...@gmail.com wrote: Symfony 1.1 came

[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Crafty_Shadow
Gareth, you didn't mention what version of symfony you were using, also what ORM (if any). The best course of optimization will depend on those. Also, as already mentioned, caching is your best friend. On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote: Well, consider a single

[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Crafty_Shadow
. Gareth On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow vankat...@gmail.com   wrote: Gareth, you didn't mention what version of symfony you were using, also what ORM (if any). The best course of optimization will depend on those. Also, as already mentioned, caching is your best

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Crafty_Shadow
A discussion about just this and other problems with sfWidgetFormTextareaTinyMCE took place a few days ago here, next time first search the mailing list please: http://groups.google.com/group/symfony-users/browse_thread/thread/b4950dd116b8aa3e?hl=en On Mar 4, 3:41 pm, Lawrence Krubner

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
This is gonna be a pretty long, but here's my custom sfWidgetFormTextareaTinyMCE.class.php It works with TinyMCE 3 and up, and also produces fully XHTML compatible output. It also allows for gzip compression; Sample usage: $this-widgetSchema['content'] = new

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
and to provide a patch if there is a bug in it. Could you have a look or have you done a custom widget because you weren't able to make the original widget works ? On Fri, Feb 27, 2009 at 11:58 AM, Crafty_Shadow vankat...@gmail.com wrote: This is gonna be a pretty long, but here's my custom

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 --~--~-~--~~~---~--~~ 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] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
on it. Thank you On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow vankat...@gmail.comwrote: Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 -- Denis Fingonnet -- Denis Fingonnet --~--~-~--~~~---~--~~ You

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
I will assume that this question was directed to me. And no, the library itself is not included, the insanely-big portion of the code is dedicated to producing XHTML compliant output. On Feb 26, 9:00 pm, Jan Schlosser j...@steffiundjan.de wrote: Hey, just out of curiosity: Did you include the

[symfony-users] Re: Using hyphens instead of forward slashes in routing?

2009-02-18 Thread Crafty_Shadow
Anyone ? --~--~-~--~~~---~--~~ 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] Using hyphens instead of forward slashes in routing?

2009-02-15 Thread Crafty_Shadow
I am wondering whether it is possible to use hyphens instead of or in combination with forward slashes in symfony's routing. My question is for both symfony 1.0 and 1.2 (I want to implement the feature in some older web sites I'm managing as well as possibly use it for one of my more recent

[symfony-users] jQuery 1.3 and Symfony

2009-01-20 Thread Crafty_Shadow
A new version of the popular javascript library was recently released (14th of January) that introduces a particular change to the $ (document).ready function, namely it now MUST be used ONLY after all css files have been loaded. The default sfCommonFilter class, responsible for the inclusion of

[symfony-users] Re: Any good file handling plugin

2009-01-14 Thread Crafty_Shadow
Both of these plugins actually don't work with Symfony 1.2 Making them compatible isn't very hard, and even if one is new to the system one should be able to manage, but it still would take some time On Jan 14, 7:45 am, Ant Cunningham prodigital...@vectrbas-d.com wrote: Did you look at

[symfony-users] Re: I18N of sfWidgetFormChoice

2009-01-13 Thread Crafty_Shadow
I'm sorry, but you're a bit wrong here; it is not text to translate that goes as the second argument, but instead the translation function name if a custom function is defined in the form class, it should be: $this-widgetSchema-getFormFormatter()-setTranslationCallable

[symfony-users] Re: Setting the label for fields inside a i18n embedded form

2009-01-07 Thread Crafty_Shadow
You generally would want to do something like: in the main form class: $this-embendI18n(array('en','fr')); $this-widgetSchema-setLabel('en', 'English'); $this-widgetSchema-setLabel('fr', 'French'); then in the i18n form class: $this-widgetSchema-setLabels(array(

[symfony-users] Re: Admin generator and ordered list

2009-01-06 Thread Crafty_Shadow
It should be possible to create custom actions for moving up/down (and even batch move up/down ?) similar to the Classic method described in the tutorial, while forcing the list to be sorted by the rank field. Unfortunately I cannot point you to a specific tutorial for this, but figuring it out

[symfony-users] Re: Admin generator filters in sf 1.2

2009-01-06 Thread Crafty_Shadow
This is what I managed to come up with, any comments and suggestions are welcomed. It allows you to search multiple fields with the 'search'=array('first_name','last_name',), at the end, where the names of the fields are easily defined. Keep in mind that I am relatively new to the