Re: [symfony-users] Re: sfDynamicFormPlugin

2010-09-21 Thread Lee Bolding
That was a plugin I intended to create for a project I was working on 18 months 
or so ago.

Essentially, I planned to create a plugin that would use the forms framework, 
and allow developers to easily create a Wufoo like (Symfony)form from a wizard.

I'm no longer on that project anymore, so the plugin got shelved. I believe 
that the sfSpyBuilderInterface plugin may well be worth looking at, as it 
provides much of this functionality.

If anybody wants to take over the sfDynamicFormsPlugin plugin, give me a shout, 
and I'll make you the admin...

On 20 Sep 2010, at 13:27, Phil Moorhouse wrote:

 I have a need for this, I've got something similar but in an sf1.0 app
 that obviously doesn't use the form framework, but it'd be great to
 have a plugin to make this simple.
 
 
 
 On 19 Sep, 11:04, juro fo...@juro.at wrote:
 Hi,
 
 I am thinking of developing a plugin that enables an admin to create
 a form (without having to manipulate widget files) and to display the
 form on the frontend. Two questions:
 
 - Is there a plugin that does this already?
 - Does anyone need something like this?
 
 Warm regards
 juro
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: shopping cart?

2010-06-05 Thread Lee Bolding

On 31 May 2010, at 10:27, Richard D Shank wrote:

 I'm getting ready to start building a store for a music site.  It will only 
 be virtual products for now (mp3 downloads), but it will have some of the 
 elements you are needing. 

Save yourself a whole heap of trouble and use Magento.

I used Magento and built exactly that for 2 very large record labels :)

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: sfErrorHandlerPlugin doesn't catch call to a member function on a non-object errors

2010-05-16 Thread Lee Bolding
There are actually _recoverable_ fatal errors (really), which sfErrorHandler 
DOES catch

If you see an error like that with sfErrorHandler installed, it HAS caught it - 
and flushed the error from the output buffer. It's not possible to do much more 
than that in the case of a non-recoverable fatal error 

On 11 May 2010, at 06:29, Richtermeister wrote:

 This is because the php engine shuts down completely when a fatal
 error is encountered.
 Symfony doesn't get to do anything after that point. What the error
 handler really handles are Exceptions, not fatal errors.
 
 Daniel
 
 
 On May 10, 10:14 am, nurikabe eaow...@gmail.com wrote:
 e.g.:  sfErrorHandlerPlugin can't seem to trap errors like:  Fatal
 error: Call to a member function xyz() on a non-object in file.php on
 line ##
 
 Is that to be expected, or is this possibly a limitation of the older
 version of Symfony we are using (1.0.3)?
 
 Thanks
 
 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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 
 athttp://groups.google.com/group/symfony-users?hl=en
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: Best way to implement a multi step form

2010-04-13 Thread Lee Bolding
There's several workflow plugins in the plugin repo that may be worth 
investigating (pageflow, especially)

I know there's a pretty complex one based around the eZ Workflow component - I 
looked at that a while back with a view to creating a plugin along the lines of 
Spring WebFlow...

On 13 Apr 2010, at 15:59, AJStoneham wrote:

 Is the standard way to go through a mult-step work-flow?  I would like
 to know too.
 
 I don't think you will have a problem with your approach. I think back
 in the day I had problems serializing forms because some widgets had
 an unrealizable database/pdo handle bound to them, but I think its a
 non issue now. You can try persisting a form in the parameter holder,
 but if it does not work, just persist a plain old php object acting as
 a data-structure. The common pattern I see:
  i- Have one state-full class and carry that through the lifetime of
 the work-flow. Held in the Parameter holder of course. Perhaps you may
 want a collection of little state-full classes, then in that case,
 namespace them to the name of the workflow and flush out the namespace
 when your done/last step.
 
  ii- Author multiple small form objects for
 a) easy construction of the workflow UI,
 b) the form API advantages, (data-structures on form
 submission, validation, )
 You don't necessarily need forms built of your entity objects or need
 to 'mutate' (as opposed to evolve ;-) ) the autogenerated forms to
 your needs. try making standalone forms with widget and validation
 schemas and work with those. It helps when the same entity's fields
 are on different pages of the workflow, or your representing key
 fields only from a package/family of entities.
 
  iii-Author 'thin' Action/Controller code that will
  a) inject forms and pull from (call validate and re-inject if
 needed) the form if submitted
  b) mediate between the form data-structures and the statefull
 class in (i)
  c) interface with the business model tier as your workflow
 requires.
 I say thin as thin controllers are good practice, from my research and
 experience, pushing queries into the model tier, (unless its a simple
 find) and pushing complex tasks into an appropriate/new if needed
 model class means you get more code re-use/DRY factor, as we can reuse
 decoupled OO business model objects, but not so in controllers.
 
 With best regards,
 Alex Stoneham
 
 On Apr 13, 5:03 am, Juampy72 juamp...@gmail.com wrote:
 Hi all,
 
 I need to split a form it in various steps.
 
 So far, I have created a single Form class with all the fields but,
 how could I implement in in consecutive pages? I was thinking about
 saving form data from step 1 to step 2 in the session, but I may have
 problems with form serialisation.
 
 Any ideas? Is there a standard way of doing it?
 
 Thanks
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


Re: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration ???

2010-03-27 Thread Lee Bolding
Also, sfGuard can use an external authentication class, or store password as 
MD5 hashes (for compatibility), so that many other external apps that need to 
authenticate could use the same table and field.

If you're using the Doctrine version, you can also create a behaviour that 
would synchronise passwords (and other user details) with another external DB 
(or datasource) when they're changed within sfGuard

On 27 Mar 2010, at 12:14, Tom Haskins-Vaughan wrote:

 I'd recommend sfGuard. It's very well supported among many plugins
 
 On Fri, Mar 26, 2010 at 12:03 PM, Bill P. maxar...@yahoo.com wrote:
 I'm not married to anything yet.
 Mainly trying to understand what or how I would do such a thing.
 I want a central user namagement that will allow CMS roles and a product
 listing/catalog based roles. From within the admin generation of symfony,
 the catalog/product listing seems pretty straight forward, but when looking
 at some of the CMS plugins, they use their own security it seems, but also
 based on sfGuard and such as well.
 
 Did that help?
 thanks.
 
 
 From: Tom Ptacnik to...@tomor.cz
 To: symfony users symfony-users@googlegroups.com
 Sent: Fri, March 26, 2010 10:52:54 AM
 Subject: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration
 ???
 
 Which plugins do you want to use? Does they use sfGuardPlugin for
 users management?
 
 
 On 25 bře, 19:02, Bill P. maxar...@yahoo.com wrote:
 Hello,
 
 I am setting up a site and want to know if this is possible:
 
 I have to build a web site for a company that has some pages of static
 content they want to manage and also a product catalog they also want to
 update and allow people to add items to a cart.
 Looking through some of the CMS plugins, it seems as though they have
 seperate User management interfaces.
 
 I want to have a central location to manage users where I can create
 groups for different functions, such as one group for CMS users, one for
 Catalog managers and one for a superuser type.
 Is this going to be possible?
 
 I'm currently going through the Jobeet in 24 hours tutorials but not
 gotten to the users section yet. That day seems like it begins how to setup
 resources, but no info on createing users and using a GUI based interface to
 administer users.
 GUI interface would be nice for the end client user.
 
 thank you.
 
 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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
 
 To unsubscribe from this group, send email to
 symfony-users+unsubscribegooglegroups.com or reply to this email with the
 words REMOVE ME as the subject.
 
 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.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
 
 To unsubscribe from this group, send email to
 symfony-users+unsubscribegooglegroups.com or reply to this email with the
 words REMOVE ME as the subject.
 
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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
 
 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Re: XML template for API call

2010-03-27 Thread Lee Bolding
Or, use XMLWriter / simplexml (XMLWriter is usually easier)

Using templated XML often leads to tears ;)

On 27 Mar 2010, at 18:15, Richtermeister wrote:

 Also, there's many ways to skin that cat.
 
 I've got one app where I'm indeed using a template for the xml, and in
 the ups class I instantiate an instance of sfPartialView to render it.
 Later I've tried another approach where the xml was embedded inside
 the class via EOL;
 Both work.
 
 Lastly, there's this: 
 http://www.symfony-project.org/plugins/sfUPSShippingPlugin
 
 Daniel
 
 
 
 On Mar 27, 6:41 am, Tom Haskins-Vaughan t...@templestreetmedia.com
 wrote:
 Thanks, Alecs. I'll take a look
 
 On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu
 
 gang.al...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 we've moved somewhere else :
 
 http://code.google.com/p/sfshop/
 
 Alecs
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10)
 
 iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s
 deMAnja+e4smQhqbFlupiuHv+Moy1Yiq
 =YBH6
 -END PGP SIGNATURE-
 
 On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan
 t...@templestreetmedia.com wrote:
 Thanks Alecs, looks like there's nothing there any more:
 
 http://svn.symfony-project.com/plugins/sfShopPlugin/
 
 On Sat, Mar 27, 2010 at 8:51 AM, Alexandru-Emil Lupu
 gang.al...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 HI!
 There is a plugin inside sfShop project that can handle Delivery
 services. I haven't yet looked at it, but it would worth for you to do
 it.
 Alecs
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Use GnuPG with Firefox :http://getfiregpg.org(Version: 0.7.10)
 
 iEYEARECAAYFAkut/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33
 q6MAoJYsuitJ659vXHsV3oDXdXkre8D0
 =ypYy
 -END PGP SIGNATURE-
 
 On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan
 t...@templestreetmedia.com wrote:
 Hi,
 
 I need to access the UPS shipping API for an ecommerce site. I'm
 writing a class for this: sfShippingServiceUps. Now the calls I have
 to make require me to send an XML string. My question is, do I just
 created the xml as a variable in the class like they do over here:
 
 http://trac.symfony-project.org/browser/plugins/sfUPSShippingPlugin/l...
 
 or is it possible to use some kind of template/view file? In the
 action I'd just like to be able to do:
 
  $shippingService= new sfShippingServiceUps();
  $this-rateOptions = $shippingService-getRates();
 
 I'd prefer not to have to use the action for making the API call, but
 if this is the best way to do it, I'm ready to listen.
 
 Thanks,
 
 TOm
 
 --
 If you want to report a vulnerability issue on symfony, please send it 
 to security at symfony-project.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
 
 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with 
 the words REMOVE ME as the subject.
 
 --
 Have a nice day!
 
 Alecs
 Certified ScrumMaster
 
 There are no cannibals alive! I have ate the last one yesterday ...
 I am on web:  http://www.alecslupu.ro/
 I am on twitter:http://twitter.com/alecslupu
 I am on linkedIn:http://www.linkedin.com/in/alecslupu
 Tel: (+4)0722 621 280
 
 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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
 
 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.
 
 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.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
 
 To unsubscribe from this group, send email to 
 symfony-users+unsubscribegooglegroups.com or reply to this email with the 
 words REMOVE ME as the subject.
 
 --
 Have a nice day!
 
 Alecs
 Certified ScrumMaster
 
 There are no cannibals alive! I have ate the 

Re: [symfony-users] Re: Certification programme

2010-02-19 Thread Lee Bolding
Is this +1 malarky any way to determine the viability of something?

Surely, it would be better to put forward a reason WHY this would be good, and 
HOW it would benefit Symfony, yourself and your customers?

Just a thought... you can +1 all you like, but without sufficient reasoning 
behind it, I wouldn't expect those +1's to get you anywhere...

There is already a Symfony partnership program, so I'd expect a certification 
program would go hand-in-hand with this - perhaps requiring X amount of Symfony 
certified staff before certain levels of partnership can be achieved? or the 
same would provide X amount of points towards the point based system? (so you 
could have say 5 Symfony certified staff, and obtain Platinum status, instead 
of NO certified staff, but a turnover of $1M+) - which would enable highly 
competent, but newly created digital agencies to appear alongside those with 
deep pockets, and reputation, but no actual technical ability (most likely, 
outsourcing)

Just a thought...

+1 (for my suggestion, that is)

On 19 Feb 2010, at 07:59, Norbert Haigermoser wrote:

 +1
 me too
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] White screen only in production enviroment

2010-02-17 Thread Lee Bolding
http://www.symfony-project.org/plugins/sfErrorHandlerPlugin

On 17 Feb 2010, at 14:26, Eno wrote:

 On Wed, 17 Feb 2010, Trailfinder wrote:
 
 My dev enviroment works great. But when I deploy to my production
 enviroment, I get a white screen only. Strange thing is, my backend is
 working. My frontend only gives white screens.
 
 I can imagine there can be multiple places to look. But is there a way
 to test effectively where the problem is?
 
 
 Look at your web server error logs.
 
 
 
 -- 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] FREE ticket to sflive2010

2010-02-13 Thread Lee Bolding
Hi All...

No more mails about this please - I've given it away already :)

Presumably there will be PDFs online somewhere afterwards, so I can get some 
idea of what I missed?

On 12 Feb 2010, at 10:46, Lee Bolding wrote:

 Yes, that's right.
 
 Unfortunately, I'm snowed under at work, so can't go.
 
 If anybody would like my ticket instead give me a shout and you can have mine
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] FREE ticket to sflive2010

2010-02-12 Thread Lee Bolding
Yes, that's right.

Unfortunately, I'm snowed under at work, so can't go.

If anybody would like my ticket instead give me a shout and you can have mine

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Symfony for newspaper site

2010-01-11 Thread Lee Bolding
On 11 Jan 2010, at 17:20, Bob wrote:

 Hi all,
 
 Collecting information about important points why Symfony can be
 beneficial for newspapers web-sites (in comparison to Drupal6, where
 time for hacking is large, but end-code is not nice. I found some
 good points here already -
 http://lacot.org/public/symfony/symfony-day-2009-symfony-vs-integrating-products-xavier-lacot-clever-age.pdf
 , but I guess somebody has more to say).
 
 Maybe somebody could give working examples of large, popular
 newspapers sites built on Symfony?
 
 All relative information is highly appreciated.

Hi Anton,

I can speak from experience here - take a look at Cofax (http://www.cofax.org). 
It's a (Java based) content management system that was designed specifically 
for bringing newspapers and magazines online. 

You may also recognise some of the developers 
http://www.cofax.org/content/cofax/about/people.htm ;)-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Help with should be simple stuff...

2010-01-11 Thread Lee Bolding

On 12 Jan 2010, at 00:24, Darren884 wrote:

 I am trying to override my setPassword method for my employee model
 but everytime I try to overwrite it I get nothing from it. I was
 using:
 
   public function setPassword($password)
   {
   parent::setPassword(sh1($password));
   }

try...

return parent::setPassword(sh1($password));
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-09 Thread Lee Bolding

On 9 Jan 2010, at 03:32, Parijat Kalia wrote:

 I like the DIY for a bug in open source vs a dead end to a bug in closed 
 source as a really solid example.

Can you give a more concrete example? yes, theoretically that's correct - but 
in the PHP world, code isn't compiled.

If you've paid for custom development, you should also receive the source code 
for anything that is compiled.

How many of you would have the ability to fix a Linux kernel bug if you found 
one?

How many people saw the critical bugs with PHP 5.2.7, and rather than fix them 
themselves, waited for the next release?

Yes, these bug fixes can be made - but just because the source is available, 
that doesn't mean you have the ability to, or will pay for somebody else to fix 
them. 

Have we seen any bugfixes to PHP4 after PHP 4.4.9?

Your point is valid, but only under certain circumstances - only where the end 
result is a compiled product, and the source is not available. And it's only 
then ratified when you also have the ability to fix the bug - if you don't, it 
makes no difference as to the availability of the source.



-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-09 Thread Lee Bolding

On 9 Jan 2010, at 14:15, Sid Bachtiar wrote:

 Open source with premium support is the way to go, because you get the
 best of both worlds. You get open source product, and you get
 commercial support.

Absolutely, and I fully agree. 

I also agree with your other points - the point I'm trying to put across is; as 
a business, you shouldn't rely on the open source community for fixing bugs or 
providing support that may be critical to your company - the open source 
community largely won't care if your business depends on the software, or if it 
will go out of business because of a certain bug.

Your motivation to fix the bug is to stay in business, or to continue offering 
a quality service. The community's isn't.

Paying for premium support for open source is the best way forward, this is 
much easier for open source projects managed by companies - the likes of 
Symfony, Drupal, MySQL, RedHat EL, Magento, SugarCRM etc. Where there is no 
single entity managing an open source project, it's more difficult to be 
confident that any company offering support for a specific open source software 
package has the credentials for doing so - and in many cases, they don't - 
which further perpetuates the counter argument.


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-09 Thread Lee Bolding

On 9 Jan 2010, at 17:01, Eno wrote:

 On Sat, 9 Jan 2010, Lee Bolding wrote:
 
 How many people saw the critical bugs with PHP 5.2.7, and rather than fix 
 them themselves, waited for the next release?
 
 We build our own software from source, so yeah we would fix it ourselves.

You patched the Zend Engine yourself? 

Building from source isn't the same as fixing a bug in the source code. Unless 
you made modifications to the source code itself, regardless of whether you 
obtained a prebuilt binary from yum, apt etc or compiled the source yourself, 
it would still contain the same security errors (hence the reason 5.2.7 was 
removed from the Zend site within a week or so of it's release)

That is, ofcourse, unless you configure with --disable-bugs ;)-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding
I think these days, the line between open source and closed source  
is somewhat blurred - and this is a good thing.


You now have premium open source - with the likes of RHEL, SugarCRM,  
MySQL and Magento. Microsoft technologies are no longer exclusively  
closed - I'm currently working with a team of 9 .net/wpf/silverlight  
developers that are all using open source technology, along with big  
ticket items such as BizTalk. Pragmatism at it's best - using the  
correct tool for the job.


MySQL may be free, but my database on this project is going to have  
half a billion rows - I can't see relying on community support for  
solving scalability issues to be clever - intact, it's a massive risk  
on the project risk register. Luckily, as I mentioned already - there  
are MySQL professional services.


The whole IIS/windows server licensing issue is also beginning to  
disappear - if you want a well supported, enterprise grade, stable and  
scalable PHP environment, you'll likely want Zend Server - which costs  
around the same as a Windows Server license. Apache, lighttp, nginx  
etc are all free, but who actually supports them? If your server goes  
bump in the night, who you gonna call?


As always, you get what you pay for. This is true regardless of open  
source vs closed. If you do open source on the cheap you'll get bad  
coders that will produce crap, then disappear. Spend more and you'll  
get a better application, that requires less maintenance and because  
it's built well, easier to maintain and the developers won't disappear  
because they're terrified of supporting their own bad code.


Open source vs closed? IMHO, makes no difference unless you hire bad  
developers or are unable to maintain a good relationship with your  
developers.


Sent from my iWheel

On 8 Jan 2010, at 08:46, Parijat Kalia kaliapari...@gmail.com wrote:


Hey guys,

Just lighting up everyone's day, would like to get as many as  
possible arguments on this. Me and a friend of mine, had a debate  
last evening, about open source(PHP) vs closed source technologies 
(DOT NET).He raised the following points:


1. He feels that open source is not reliable whereas closed source  
is. The logic being that, once the application is developed and  
sold, if it runs into some kind of a bug or an error, there is  
support team for closed source technologies who are going to come  
and help you fix it, whereas this is not a guarantee in open source  
technologies.


2. Development for a successful open source technology is community  
dependent, implying the choice is still on a faithful group of  
users, whereas in closed source technologies it is more reliable  
because it is being backed by a company (microsoft for .NET and SAP  
for SAP). f


 3. The third point that was raised is, closed source technologies  
enforce quality control as opposed to open source technologies,  
where the onus on quality control in case of the latter, is more on  
the developer himself.


The reasoning I could offer was that big companies such as Yahoo  
( symfony), facebook (php), and Twitter (rails) rely on open source  
technologies, surely they are aware of the above points but still  
choose to go with open source rather than closed source  
technologies. Money is not the most important criteria for these  
companies, and there definitely is a better reason why they choose  
open rather than closed source technologies.


However, it is still not convincing me for I found myself agreeing  
to the points my friend raised in favor of closed source  
technologies. Can anyone shed a light on this?


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-us...@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 
.
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding

On 8 Jan 2010, at 13:43, Eno wrote:

 On Fri, 8 Jan 2010, Lee Bolding wrote:
 
 The whole IIS/windows server licensing issue is also beginning to  
 disappear - if you want a well supported, enterprise grade, stable and  
 scalable PHP environment, you'll likely want Zend Server - which costs  
 around the same as a Windows Server license. Apache, lighttp, nginx  
 etc are all free, but who actually supports them? If your server goes  
 bump in the night, who you gonna call?
 
 We have our own support team to call :-)

Yes, but a salaried employee is more expensive than raising a ticket on a 
case-by-case basis with the likes of Zend (or buying a support contract to 
begin with)-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding

On 8 Jan 2010, at 14:40, Sid Bachtiar wrote:

 If your server goes
 bump in the night, who you gonna call?
 
 We have our own support team to call :-)
 
 Yes, but a salaried employee is more expensive than raising a ticket on a 
 case-by-case basis with the likes of Zend (or buying a support contract to 
 begin with)
 
 Seriously, you'd call Zend/Microsoft in the middle of the night to fix
 your server that goes bump?

Obviously, try a reboot or whatever first - the response time of even an hour 
makes it worth trying basic stuff before calling them, but if it's looking like 
something more serious, then yes.

Besides, with a support contract that says I can (and not get charged extra for 
it) why the hell wouldn't I?

Spending 10's of thousands of dollars on a salaried employee to do that, when 
Zend will already do it is crazy. Zend have employees all over the world, so it 
doesn't matter what time of day it is. Can you guarantee your SysAdmin will 
even wake up and answer the phone? or won't be out drinking or something else?

As I said before - risk register. Reduce the risk whenever you can (this is why 
we also remove code whenever we can - less support risk, less risk of bugs 
etc), this approach usually doesn't cost any extra - it's just a shift in 
mentality.-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding

On 8 Jan 2010, at 15:09, Sid Bachtiar wrote:

 And are you talking about your real experience or you're just hypothesizing?

Real world, it's the structure we're setting up at the startup I'm currently 
working at. IMHO we've spent far less, and have far superior support and 
quality of product than we'd have had if we'd gone the route of taking on 
additional employees - that's less financial risk and less technical risk too. 

I kind of get the feeling that for a lot of people open source some has to be 
the solution to everything - it's not. Sometimes, being pragmatic means using 
commercial products or services. Sometimes it's worth letting somebody else do 
the expensive (both in terms of money and time) RD and reaping the rewards by 
paying comparatively little for that work. If you're blinkered by open source 
it can lead you into all kinds of difficulties. -- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Any good reason to execute symfony with sudo?

2010-01-07 Thread Lee Bolding
What Nathan said.

Unless your Symfony app is using backtick, passthru, exec or similar operators 
to execute shell commands (that MUST be run by root [is there any?]) then you 
shouldn't run Symfony as root or via sudo. It's simply bad practice, and 
introduces many more attack vectors to exploit. Everything that needs to be 
done regarding permissions to cache, log, tmp etc dirs can be configured by a 
competent sysadmin so that you don't need special or elevated permissions.

Regarding what Nathan says about the deployer - I usually go as far as having a 
read-only SVN user named checkout which is used in combination with a 
certificate, so that checkouts can be made as that user, passwordless, to the 
deployment target. If necessary regular users can perform checkouts and updates 
on the live platform simply by switching users to checkout user.


On 7 Jan 2010, at 22:05, Nathan wrote:

 I would only give write permissions by the user running php (most of the 
 times www-data) to cache, log and the upload directory. All else should be 
 read only and preferable have another user, like the deployer (nathan in my 
 case).
 
 Also it's considered very bad practice to give a file/directory 777 
 permissions, most of the time it's sufficient to chgrp the needed files and 
 do chmod g+rw. 
 
 Nathan
 
 --
 nathan @ nathan.gs
 
 
 On Thu, Jan 7, 2010 at 10:32 PM, Stéphane stephane.er...@gmail.com wrote:
 Apache and Php needs write right to cache dir, this is why it is chmod'ed 777 
 using project:permissions task.
 You probably want apache and php read rights to read .php and other stuff, 
 and need them write rights for cache and other dynamic-related folders 
 (upload, etc).
 
 
 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
 
 
 On Thu, Jan 7, 2010 at 9:47 PM, Jacob Coby jc...@portallabs.com wrote:
 I sometimes need to use sudo when clearing the cache or running fix-perms 
 since apache usually runs as a different user than the owner of the 
 directory.  For the normal generator related stuff, no.
 
 On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote:
 
  not quite.
 
  Chown the sf_root folder to match your user and pass.
 
  Alecs
 
  On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com 
  wrote:
  Hi,
 
  im wondering if is there any good reason to execute symfony with sudo.
 
  Javi
 
  --
  You received this message because you are subscribed to the Google Groups 
  symfony users group.
  To post to this group, send email to symfony-us...@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.
 
 
 
 
 
 
  --
  Have a nice day!
  Alecs
 
  As programmers create bigger  better idiot proof programs, so the universe 
  creates bigger  better idiots!
  I am on web:  http://www.alecslupu.ro/
  I am on twitter: http://twitter.com/alecslupu
  I am on linkedIn: http://www.linkedin.com/in/alecslupu
  Tel: (+4)0748.543.798
 
  --
  You received this message because you are subscribed to the Google Groups 
  symfony users group.
  To post to this group, send email to symfony-us...@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.
 
 --
 Jacob Coby
 
 
 
 
 
 
 
 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] get id from new row

2010-01-07 Thread Lee Bolding

On 8 Jan 2010, at 00:02, Gabo wrote:

 
 HELP!!!
 
 
 I TRY THIS:
 
 //lib/model/doctrine/document.class.php
 
 public function save(Doctrine_Connection $conn = null) {
 
 $author= new document();
 
 $author-setName($this-getName());
 $author-setDocumentDescription($this-getDocumentDescription());
 $author-save();
 
 $sfUser = sfContext::getInstance();
 
 $q = new document_trace();
 $q-set('id_document', $author);  
   //NOT WORK, ERROR

Should be
$q-set('id_document', $author-getId());

 $q-set('id_user', $sfUser-getUser()-getGuardUser());
 $q-set('state', '0');
 $q-save();
 
 return parent::save();
 }
 
 I want to save to another table for example (date, id_user, id_document) of 
 the creation of a document for an audit ...
 
 I then keeping of large app / document to store the audit log .. but I have 
 to take the new id_document
 
 HELP!!
 
 
 
 
 
 2010/1/6 Eno symb...@gmail.com
 On Wed, 6 Jan 2010, Gabo wrote:
 
  HELP!!
 
  I try to capture the id of a new record for storage in an external table
  (document_trace) but not what brings me
 
 The ID comes from the database but you haven't saved the object so it has
 no ID yet.
 
 
 
 --
 
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] get id from new row

2010-01-07 Thread Lee Bolding

On 8 Jan 2010, at 00:19, Lee Bolding wrote:

 
 On 8 Jan 2010, at 00:02, Gabo wrote:
 
$q = new document_trace();
$q-set('id_document', $author);  
   //NOT WORK, ERROR
 
 Should be
 $q-set('id_document', $author-getId());
 
  
 I want to save to another table for example (date, id_user, id_document) of 
 the creation of a document for an audit ...
 
 I then keeping of large app / document to store the audit log .. but I have 
 to take the new id_document

My suggestion above will work, but it's not the best way...

You should use the Doctrine auditable behavior (I think that's what it's 
called).

You could also use a stored procedure in the database. For a large app, I'd go 
with the stored procedure - it's keeping the work in the database, less 
requests, less network traffic/latency, and  offers greater decoupling (you 
still get the auditing, even if the database is manually changed, regardless of 
HOW it's changed)

There's probably other methods as well that would be better (another instance 
where AOP would be handy)



-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Re: Migrating to Symfony from cakePHP

2010-01-04 Thread Lee Bolding

On 4 Jan 2010, at 16:54, Mike Langford wrote:

 The new team also is recommending some architectural changes as well
 (such as adding a service layer) which seem to make sense. Again, I
 wonder if  the same result can be had by sticking with the existing
 cakePHP framework and building in the new architectural elements
 without rebuilding the entire site?

I've retrofitted Cake applications before with REST API's - it's not difficult.

Adding SOAP or XML-RPC may be a little more difficult though.

With ckWebservicePlugin adding SOAP is quite easy with Symfony - however, your 
best approach would probably be to use annotations with the Zend_*_Server 
classes, that way you could use the same controllers for SOAP, XML-RPC and REST.

HTH

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Re: Migrating to Symfony from cakePHP

2010-01-01 Thread Lee Bolding
I'd agree with that general sentiment.

Ask what the benefits would be, why you should pay for this, what the risks 
are, etc

Remember, your application currently works - the best outcome from a port would 
be that it still works (ie, no change). The worst would be that it doesn't 
(and you've paid for that privilege!)

If you already have a stable application built with CakePHP, find a dev team 
that prefers using CakePHP. However, do your research and chose a company that 
suggest CakePHP to YOU (not the other way round - because the answer will 
always be Yes, OFCOURSE we know that...)

On 1 Jan 2010, at 07:02, Jake Barnes wrote:

 
 
 On Dec 30 2009, 11:42 pm, Mike Langford m...@tweetworks.com wrote:
 I am considering changing development teams (outsourced) and the
 proposal from the new team recommends moving to Symfony from my
 current cakePHP framework. I am not a developer myself so I am looking
 to get an idea of how much work this is and what the true value of
 such a migration would be?
 
 Is there a simple way to migrate to Symfony or will my new team
 essentially have to re-code the entire site?
 
 
 Do not do this! This is a very bad idea! All of the major PHP
 frameworks are roughly equivalent. CakePHP is roughly as good as
 Symfony. You gain absolutely nothing by changing your site from Cake
 to Symfony. Your new team simply wants to convert the site so that
 they can use the framework they are comfortable with. I suggest that
 you look for another team, once with experience with Cake.
 
 Your new team would need to re-write the entire application/website.
 You'll gain nothing. You'll face a new period of having to debug the
 code. This can only be a wise move if the new team is offering
 something of great value in return, or if they offer to do it for
 free, perhaps to cement a long term relationship with you.
 
 Developers will tend to recommend the technologies they are most
 comfortable with. I've done it. Everyone does it. But if you already
 have a working site or application, then you gain no benefit from
 this.
 
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Re: Development infrastructure

2009-12-22 Thread Lee Bolding
True. A native Linux machine will be faster - but using it to host your 
applications is at the expense of portability and replicability. How does 
another developer *easily* replicate your setup? How long does that take?

Speed can be measured in more ways than execution time :)

Using a VM you can still mount an NFS or SSHFS share - that's pretty much how 
my setup works; the document roots are a mounted filesystem, shared with the 
VM. Effectively an NFS share (although, technically HGFS).

Setting up an environment for a new developer literally takes minutes - they 
either grab the VM image from a fileserver, or copy it from a thumb drive. 
Because the root password is always the same, and developers are instructed not 
to change it, all developers can connect to each others VMs to 
diff/fix/retrieve files or database dumps. Often I'll ask for a sysadmin to 
make a DB dump from a live server, and put the dump file onto my VM (whilst 
you're at it, restart my memcache instance when you've done it...)

When you start to have many systems dependent upon each other, providing each 
other with webservices, data feeds, reporting etc - this is the only sane way 
in which you can quickly and easily repeatedly replicate a working environment 
of all or a subset of those components. The BBC has an amazing platform (forge) 
and distribution system based on this principal. 

The best thing here is - it doesn't matter if a developer prefers Windows over 
OS X, or even if they prefer Ubuntu or some other crazy Linux distro. VMWare 
has players/clients for all of those (infact, VMWare player is free [but not 
available on OS X]), and the disk images will work for any platform - choose 
your own development environment (Windows + Netbeans, OS X + Komodo or Ubuntu + 
Eclipse), but the target is always the VM.

Even if I had an Ubuntu desktop, I'd still develop inside of a VM, there's too 
many benefits not to. 

Didn't somebody on the list create a Symfony development VM project a few 
months ago? if not, over the New Year period I'll create a new dev VM (with 
Symfony 1.4) and place it somewhere if you'd like try it out :)

On 21 Dec 2009, at 20:05, Alexandru-Emil Lupu wrote:

 however i like to KISS.using linux as default development machine ..
 no 3rd party VM or emultators. Also allows me to monut a sshfs or nfs
 share. There are also native functions for versioning systems etc ...
 I would like to propose you to use a native linux machine if you can,
 because is the fastest way to do do things native
 
 On Mon, Dec 21, 2009 at 9:26 PM, Fred Grott(shareme)
 fred.gr...@gmail.com wrote:
 Actually VM uses less ram than VirtualBox for those that do not
 know..and tends a bit faster
 
 That of course assumes that you have CPU multi-core setup..
 
 
 
 On Dec 21, 12:35 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
 As allready said, for widowz users, i would recomend the cygwin.
 I have used it before porting all my computers on *nix platform.
 
 sent via htc magic
 
 On Dec 21, 2009 3:51 AM, jL prometh...@gmail.com wrote:
 
 I second the use of a VM as described by Lee above, provided you have
 enough RAM.
 
 VirtualBox is a great free virtual machine solution, by the way, if
 you don't already have VMWare.
 
 -- You received this message because you are subscribed to the Google Groups
 symfony users group...
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 
 
 
 
 -- 
 Have a nice day!
 Alecs
 
 As programmers create bigger  better idiot proof programs, so the
 universe creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Hotels airfare for Symfony Live

2009-12-22 Thread Lee Bolding
Same here... hoping that Eurostar is functional again by then ;)

On 22 Dec 2009, at 14:29, Tom Boutell wrote:

 Not off-topic as such, but my apologies to those who are definitely not 
 going...
 
 I'm looking for good deals on decent (not fancy) hotels and sanely
 priced airfare from the US to attend Symfony Live this February.
 Suggestions would be very welcome! I already have a kayak.com alert
 set up.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Development infrastructure

2009-12-20 Thread Lee Bolding
That sounds pretty close to my setup.

I use Symfony in a VMWare (Fedora) virtual machine. All of my apache document 
roots exist on my local machine (so I can still edit without the VM being 
started) and this directory is shared with VMWare and mounted within the VM. 
(FWIW, I use a Mac - my document roots are all in ~/Sites/dns_name/htdocs, 
with ~/Sites being mounted as /var/www in my VM)

My virtual machine is effectively only acting as an Apache proxy and also to 
serve MySQL. It works very well - because no actual code is stored on the VM, I 
can easily share my VM image with other developers in my team - the VM is 
effectively identical for all of us. Another neat trick is that any developer 
can log into my machine, and start the same VM serving different versions of 
the same websites from their own copy in ~/Sites/dns_name/htdocs - I do that 
myself, I have a demo account, which has latest stable releases in it's 
~/Sites directory, and my regular account which is current trunk releases.

In addition to being able to edit my files locally without the VM started, I 
don't get any weird permissions problems and also it's easier to backup the 
contents of my document roots.

It's a neat setup, I highly recommend it :)
 
On 20 Dec 2009, at 16:49, Georg Gell wrote:

 You might use a virtual server.
 I have a virtual ubuntu server in a vbox with bridged network.
 So it has it's own network address and can be reached from the whole
 network, and the source code is on a shared windows directory mounted by
 smbfs. I used vboxsf for mounting the share, but had some troubles with it.
 This way you can perform symfony commands both on windows and on ubuntu,
 doing exactely the same thing.
 And you can edit the files locally from Netbeans, and even debug the
 files step by step on the server from within Netbeans.
 You have to patch two symfony files for this to work, i have attached
 patches. The first removes a warning by php, that it cannot chmod on
 remote filesystems. The other doesn't create symlinks, but copies the
 directories, which is the normal behaviour for windows. Now symfony
 tasks behave the same way in windows and ubuntu environment, afaik.
 
 Georg
 
 Am 20.12.2009 15:57, schrieb HiDDeN:
 Hey guys. How is your development infrastructure?
 
 I like to develop against a Linux machine. I create my symfony project
 there and then with Eclipse PDT + Remote System Explorer I edit the
 files remotely.
 
 Now I discovered Netbeans 6.8 with PHP + Symfony support natively,
 it's smaller and faster, but it hasn't support for remote editing. The
 only thing it has is downloading everything to local.
 
 
 Do you have any tips you would like to share?
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 
 sfConfigCache.class.php.patchsfFilesystem.class.php.patch

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Re: How to set variables In the Global template?

2009-12-20 Thread Lee Bolding
Why not create a static CSS file for each client?

On 20 Dec 2009, at 19:11, Davide Borsatto wrote:

 You have all that code in the global layout?
 Are you crazy? :)
 
 On Dec 17, 3:44 pm, ajit csa...@gmail.com wrote:
 Hi all,
 
 I have an application where I need to customize the look(Color Scheme
 which matches the client site) for each client using the single
 codebase...So what I am doing is I am storing the values in the yml
 file and from that I am fetching the values.
 
 I am doing something like this in the global template:
 
 $file = strtolower($sf_request-getParameter('symbol')) . .yml;
 $filepath = sfConfig::get('app_file_path') . 'web/uploads/settings/' .
 $file;
 if (file_exists($filepath))
 {
 $test = sfYaml::load( sfConfig::get('app_file_path') . 'web/uploads/
 settings/' .$file);}
 
 else
 {
 $test = sfYaml::load(sfConfig::get('app_file_path') . 'web/uploads/
 settings/default.yml');}
 
 foreach ($test as $a)
 {
 $topbar = # . $a['color']['topbar'];
 $footerbar = # . $a['color']['footerbar'];
 $inactivetab = # . $a['color']['inactivetab'];
 
 $activetab = # . $a['color']['activetab'];
 $activetabtext = # . $a['color']['activetabtext'];
 $menuline = # . $a['color']['menuline'];
 $textcolor = # . $a['color']['textcolor'];
 
 $postedByBox = # . $a['color']['postedByBox'];
 $questionBox = # . $a['color']['questionBox'];
 $contextBox = # . $a['color']['contextBox'];
 $answerBox = # . $a['color']['answerBox'];
 
 }
 
 Whatever variables I am setting here, I need to access them in the
 module's templates also...
 
 The problem here is I can't access the variables set here in the
 modules template( in for ex: modulename/indexSuccess.php)
 
 Pls help me how to do that?
 
 P.S: I am storing Colors in the variables.
 
 Thanks in Advance!
 
 Ajit
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Reasons NOT To Use CakePHP

2009-12-18 Thread Lee Bolding
I wouldn't say Cake is _bad_. I've used it on a fairly large project and wasn't 
horrified by it - but maintaining a Cake app is a LOT more work than creating 
and maintaining a Symfony app. 

Work === time === money.

This is chiefly because Symfony has a lot of additional helpers, and auto 
generates much of what you need from config files. With Cake there's a lot of 
code to write... and a lot of SQL queries. Views are scattered in a 
sub-template kinda sucky way that takes getting used to. More code means more 
stuff where errors/typos can occur, so maintaining it also takes longer (and 
therefore costs more).

I'm not sure if you can use Doctrine or Propel with Cake - never tried. 
Certainly, if you could this would reduce the workload somewhat.

Cake *IS* based on PHP4 though - which you may or may not have an issue with (I 
do).

Probably not the Cake-bashing email you wanted ;)

I'd be tempted to tell the client that if they understand Cake, it's not SUCH a 
quantum leap to learn Symfony. Many principals are the same. Due to the fact 
that Cake is based on PHP4, which is now deprecated, I take the stance that 
means that Cake is also deprecated. 

Still, if they insist on Cake - let them eat Cake ::ducks::

On 17 Dec 2009, at 14:24, Stephen Melrose wrote:

 Hey guys,
 
 We've specced a project here for Symfony, and the client has come back
 saying they want to use CakePHP instead because someone there end has
 used it, therefore can maintain it.
 
 I've heard CakePHP isn't one of the better frameworks, but I haven't
 used it so I don't know why.
 
 What we need is some justified reasons. Anyone got any they can throw
 my way? Preferably from a maintenance perspective?
 
 Cheers,
 
 Stephen
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] Symfony / SCORM role, Cambridge, UK

2009-12-09 Thread Lee Bolding
Hi list,

Due to other commitments, I've had to turn this role down - and have told the 
client I'll do my best to find another competent Symfony developer, so where 
else to try than this list?

It's a 20 day consulting job for an elearning company. You'll also need to have 
commercial experience of SCORM. The project is using Symfony 1.0 (well, it was 
last time I worked on it, it could well have been upgraded since then...).

I believe telecommuting is a possibility, but certainly the first few days are 
required on site - so this is probably only useful to UK based developers. No 
agencies involved here, it's a direct relationship with the client, and it's 
likely that they'll have future work on the same project.

Contact me if you're interested, I'll pass details on to the client

Cheers

Lee

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Public Accessible Code

2009-12-01 Thread Lee Bolding

On 1 Dec 2009, at 02:37, Paul Witschger wrote:

 I want to build some extras (plugins, add ons, whatever), that I can 
 offer to clients. These add ons will be things like photo galleries, 
 news article listings, blogs, etc.

Check out (maybe in BOTH senses of the word...) the symfony plugins repository 
- there's already plugins available to do all of that...

http://www.symfony-project.org/plugins/

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Where to clear the cache

2009-12-01 Thread Lee Bolding
On 1 Dec 2009, at 13:46, Timmipetit wrote:

 Now let's say that messages will be created/edited/deleted in 2
 modules in the frontend, and maybe also from the backend (or even a
 plugin). When this happens, the cached partial from that user should
 be deleted.
 The easiest way to do this in this situation would probably be from
 the model, right? If you would automatically delete the cache in the
 model, it doesn't matter where messages are edited. But I'm not quite
 sure if this seems right from a MVC point of view.
 How would you do this, and why?

Whilst I'm still not convinced it's the best approach (but one that I'm 
currently using... for now), you could fire an event from your model, which an 
observer would use to clear the cache.

This is a little cleaner as it loosely couples the model to the caching 
implementation, and means your event and observer are reusable. It also means 
that your model is reusable in a scenario where you don't want this behaviour 
(for instance, when used with webservices)

I think the best approach would be to use an AOP advice around the 
save/update methods on your message model... but at least for now, symfony 
doesn't have AOP.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] yaml and mvc

2009-11-28 Thread Lee Bolding
YAML is a representation of a simple data structure used mostly for 
configuration purposes. I wouldn't class it as part of MVC at all - the same as 
I wouldn't XML or JSON.

However, as it's a representation of data, the closest fit would be a model

On 28 Nov 2009, at 09:14, mini_alexander wrote:

 I must write something about YAML in Symfony. To which group should I
 classify YAML: model, view or controller ? I think about view or
 controller or maybe both ?
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: [symfony-users] Symfony and IIS

2009-11-23 Thread Lee Bolding
Never tried, but I saw that in the weekly roundup after the bug hunt day, there 
were a few fixes relating to Windows functionality.

Probably worth giving it another shot...

On 23 Nov 2009, at 10:49, Sid Ferreira wrote:

 Does anybody know how good is it?
 Tried once and it didn't worked...
 
 -- 
 Sidney G B Ferreira
 Desenvolvedor Web
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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=.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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=.




Re: [symfony-users] Avoid losing the changes each time a module is regenerated

2009-11-23 Thread Lee Bolding
Maybe he means the admin generated modules?

On 23 Nov 2009, at 12:51, Gareth McCumskey wrote:

 Why are you regenerating modules? You shouldn't ever need to do that.
 
 On Mon, Nov 23, 2009 at 2:47 PM, tirengarfio tirengar...@gmail.com wrote:
 Hi,
 
 each time you regenerate a module, the files related to the templates
 (indexSuccess.php, _form.php, ...) are also regenerated, so if you
 modified something inside those files you will lose it each time the
 module is regenerated.
 
 Is there any solution to avoid losing those changes?
 
 Bye
 
 Javi
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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=.
 
 
 
 
 
 -- 
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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=.

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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=.




Re: [symfony-users] Uploading images (movefile)

2009-11-22 Thread Lee Bolding

On 22 Nov 2009, at 00:09, Parijat Kalia wrote:

 Hey guys, Does anyone know how I can upload images into a database, without 
 using the sfvalidator function. I don't want to use that since I already 
 built my forms manually and have other pressing deadlines. So I need an 
 alternate technique. I used sfWebRequest::moveFile, but it says that moveFile 
 does not exist.

If you know the first solution will work, go with it - at least until you find 
an alternative solution.

You mentioned deadlines, so relying on fate to deliver you a new solution via a 
public mailing list is VERY risky for your project. 

What is your backup plan if there is not another 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-us...@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=.




Re: [symfony-users] SVN repo not authenticating?

2009-11-19 Thread Lee Bolding
Thanks anyway, Fabian.

I just resolved it by making a fresh checkout, then manually overwriting all of 
the changed files. Not sure why that worked, I was still prompted for my 
authentication details, and still entered the same... 

Anyway, that means there's a brand spanking new sfErrorHandlerPlugin in SVN. I 
have to admit I haven't had the time to test it myself - I just applied a bunch 
of patches I'd received, and fixed a bug I knew already existed... so if 
anybody is feeling brave, download it from SVN and have a play. Let me know if 
anything is broken.

Features / Fixes in this version :
- errors in dev env now reported into web debug toolbar
- fixed double rendering of error page when sfAction::forward is used
- set HTTP 500 headers on fatal errors when thrown by sfErrorHandler
- fixed issue when sfSecurityException thrown
- fixed incorrect constant E_WARN

Thanks to Martin Schnabel and Jussi Holm for providing patches :)

On 18 Nov 2009, at 14:54, Fabian Lange wrote:

 Not me,
 I don't have svn powers anymore
 
 Fabian
 
 On Wed, Nov 18, 2009 at 1:10 AM, Lee Bolding l...@leesbian.net wrote:
 Hey guys,
 
 Who should this be directed to? Fabi(e|a)n? Stefan?
 
 I'm trying to commit a bunch of fixes that people have contributed to 
 sfErrorHandlerPlugin recently, but I keep getting an authentication failure 
 on the SVN repo when trying to commit. Any ideas what's wrong there?
 
 Cheers
 
 Lee
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=.
 
 
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] [OT] Scary action name

2009-11-18 Thread Lee Bolding
I made an app with...

public function executeVictim($request)

There must be a ton of apps out there with executeUser functions ;)

On 18 Nov 2009, at 20:53, sasin...@weboticx.com wrote:

 I think I can top that :)
 
 public function executeFamilyMembers(sfWebRequest $request)
 I had to rename it to executeListFamilyMembers.. The original was way  
 to scary. :)
 
 Mariusz
 
 
 Quoting Sid Bachtiar sid.bacht...@gmail.com:
 
 Hi all,
 
 just an off topic post :)
 
 I wrote this function a few days ago and just realized that it's   
 pretty scary!
 
 public function executeYourself(sfWebRequest $request)
 
 I must be so tired when I wrote that action! :-\
 
 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz
 
 --
 
 You received this message because you are subscribed to the Google   
 Groups symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at   
 http://groups.google.com/group/symfony-users?hl=en.
 
 
 
 
 
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.
 
 

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: how to integrate different symfony's project to each other.

2009-11-13 Thread Lee Bolding

If you just want to share the database for authentication, you can create a 
custom authentication class for sfGuard - it's in the documentation.

Going forward, the most flexible way to share other data would be using 
webservices - it's not as difficult as it sounds using SOAP and the 
ckWebservicesPlugin. An additional benefit of using this method is that you 
also have to markup all of your functions with phpDoc comments - which is good 
practice anyway :)


On 13 Nov 2009, at 10:42, Gareth McCumskey wrote:

 Probably would have been better to create each project in one and have each 
 be a seperate application as opposed to seperate projects. Putting that aside 
 for now, an option that springs to mind is to just combine all the source 
 together, i.e. copy all modules into one project, copy/merge all models into 
 one project, and merge the various configs. It is a lot of work and will work 
 as long as you don't have modules with the same names across the three 
 projects.
 
 On Fri, Nov 13, 2009 at 12:33 PM, Noor Mustafa noor_fa...@hotmail.com wrote:
 
 HI and Hello,[Note: any urgent solution]
 
 
 i have three different symfony project
  
 1) User Manangement
 2) HR
 3) Procurement and Store
 
 these above three different project i have made but how can i integrate and 
 how can i exchange the data from different project's database.
 
 - how i can access/get the user table from user management 
 project(database)in HR project
 
 
   Is it possible in symfony..!!!?. i tried a lot on google but i didn't get 
 any reasonable solution..
 
 
 Regard,
 
 NOOR 
 Windows Live: Friends get your Flickr, Yelp, and Digg updates when they 
 e-mail you.
 
 
 
 
 -- 
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc
 
  


--~--~-~--~~~---~--~~
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: PHP symfony reports

2009-11-03 Thread Lee Bolding

A while back I started making a set of reporting listeners that  
would listen to specific KPI (key performance indicators, for the  
uninitiated) events (implemented as symfony events) in my application 
(s) (eg. user has registered, user has purchased an item, user has  
completed X task etc) and would use these events to build an RSS feed,  
which could then be combined with RSS feeds for other KPI events to  
create cross-cutting reports.

It got pretty complex, but it was a cool idea. I never finished it  
(another one for a series of rainy days)...

Obviously, you can use the same technique for non-KPI events too - in  
an ecommerce applicaton, this may be for instance for low stock  
notifications etc.

IMHO, if you have the time at the start of your development for a new  
application, try and get a list of what the KPI's are for the  
application, and build event listeners to fire when these indicators  
are triggered - this will help enormously for your reporting, and it  
is usually how upper management will measure the success or failure of  
your project once it is in production.


On 3 Nov 2009, at 08:07, Alexandre SALOME wrote:

 You have an event application log.

 Connect to it to do your stuff,

 Alex'

 2009/11/3 asi007 asim...@gmail.com

 Hi every body i want to make reports like cross tab reports in symfony
 has any one idea about it




 -- 
 Alexandre Salomé -- alexandre.sal...@gmail.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: PHP symfony reports

2009-11-03 Thread Lee Bolding

Those packages will only tell you reporting metrics that can be  
determined from your database (or other available datasources), and  
generally, not in realtime.

If you want true realtime reporting of specific KPI events, you'll  
need to build it in yourself.

I think that's true for any application, on any platform.

An example here would be a low stock notification, or a hot product  
event - where it's sold more than X units in Y minutes - you want to  
both monitor stock levels of that product, as well as further promote  
it. Running a scheduled report to tell you that 12 hours after the  
event means you've wasted an opportunity.

That's why I chose RSS for my own solution - on a very basic level,  
anybody can subscribe to events in their mail client (and therefore  
react to them in realtime). On a more advanced level, a tool can be  
used to visualise the events and create reports that cross different  
RSS feeds.

On 3 Nov 2009, at 10:20, Gorka wrote:



 I might be wrong, but I think he's looking for a reporting engine like
 Crystal or Jasper. If that's the case, you might look into PHP Java
 Bridge to use Jasper Reports, COM under Windows to use Crystal, or
 Agata Reports under puré PHP. I'm looking into it, but have not tested
 any of theese options, yet.

 Of course, you could also use PDF plugins to tender a template into a
 PDF report, but I'm not particularly happy with how the PDF plugins
 work. For me at least they are quite complicated, it is hard to tune
 the output to what you want and are limited in functionality or not
 well documented.

 IMHO, a weak point in PHP for the enterprise. But please, please,
 please... correct me if I'm wrong ;)

 On Nov 3, 10:38 am, Lee Bolding l...@leesbian.net wrote:
 A while back I started making a set of reporting listeners that
 would listen to specific KPI (key performance indicators, for the
 uninitiated) events (implemented as symfony events) in my application
 (s) (eg. user has registered, user has purchased an item, user has
 completed X task etc) and would use these events to build an RSS  
 feed,
 which could then be combined with RSS feeds for other KPI events to
 create cross-cutting reports.

 It got pretty complex, but it was a cool idea. I never finished it
 (another one for a series of rainy days)...

 Obviously, you can use the same technique for non-KPI events too - in
 an ecommerce applicaton, this may be for instance for low stock
 notifications etc.

 IMHO, if you have the time at the start of your development for a new
 application, try and get a list of what the KPI's are for the
 application, and build event listeners to fire when these indicators
 are triggered - this will help enormously for your reporting, and it
 is usually how upper management will measure the success or failure  
 of
 your project once it is in production.

 On 3 Nov 2009, at 08:07, Alexandre SALOME wrote:



 You have an event application log.

 Connect to it to do your stuff,

 Alex'

 2009/11/3 asi007 asim...@gmail.com

 Hi every body i want to make reports like cross tab reports in  
 symfony
 has any one idea about it

 --
 Alexandre Salomé -- alexandre.sal...@gmail.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: Have symfony/yml changed your life?

2009-11-03 Thread Lee Bolding

Absolutely :)

Before I started using symfony I was using Spring and Hibernate in  
Matt Raible's AppFuse framework (Java) which was an amazing framework,  
but the development cycle was too damn long (compared with symfony).  
That's not a fault of AppFuse, it's just Java in general (code,  
compile, test). Also, I'm a mediocre Java developer at best.

I'd been using PHP4 for a number of years, and was a far better PHP  
developer than Java (hence all my Java psuedocode was actually PHP).  
The reason I stuck with AppFuse though was because I didn't believe  
there was a comparatively scalable PHP framework - until I was  
introduced to symfony (and PHP5).

For me, symfony was the excuse I needed to ditch Java and transfer my  
Java knowledge to learning PHP5 - previous to that I hadn't yet looked  
at PHP5 because... well because I didn't think it was worth it as  
there wasn't a decent enough framework that used it. Coming from Java  
a lot of the new concepts in PHP5 were familiar, so it didn't take too  
long to get up to speed with it.

symfony is now approaching something VERY similar to AppFuse -  
Doctrine is becoming more and more like Hibernate, YAML and PHPDoc  
make adding functionality via tags or configuration similar to how  
this can be achieved with XDoclet in AppFuse, symfony 1.3's Dependency  
Injection and loosely coupled components are very similar to the  
Spring approach but with less XML ;)

I'm pretty excited about the components, it will mean I can still use  
the symfony components I'm familiar and comfortable with where perhaps  
the full symfony framework would be overkill.

How's that for an answer? ;)

On 3 Nov 2009, at 08:54, Sid Ferreira wrote:

 lol, I know this topic sounds funny, but I'm asking this cause  
 thanks to symfony a lot of things changed in how I work.
 Not only the coding standards, but even when making the first plans  
 of a project.

 For instance, after meeting YML, I've started to use this notation  
 when describing my projects, defining modules and actions, or  
 actions and links/fields inside of this.

 Once again I ask, looking for ways to refine my skills, am I the  
 only one doing this?

 Thanks in advance and sorry for bothering :-)

 -- 
 Sidney G B Ferreira
 Desenvolvedor Web


 


--~--~-~--~~~---~--~~
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: Where to find all that we need on API ?

2009-11-02 Thread Lee Bolding


On 2 Nov 2009, at 10:13, Gareth McCumskey wrote:

 And I found it by clicking that really conspicuous Documentation  
 link on the symfony website.

cunning ;)

--~--~-~--~~~---~--~~
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 has definitely become too complicated framework

2009-11-02 Thread Lee Bolding

OK, now that you've mentioned porting an existing application, I can  
*kind of* understand that.

I'd expect most management to take the approach if it ain't broke,  
don't fix it - and in their eyes it ain't broke.

A while back I was in a similar situation - like you, I tried to  
explain the case of doing it the correct way (cheaper, faster, easier  
to maintain, following conventions(!) less risk, etc) but they weren't  
interested.

If I had the time, I'd do a TCO study for my next symfony project -  
showing how long certain aspects took with symfony, how long they'd  
have taken without symfony, and how that affected the overall cost/ 
profitability of the project.

It would also be good to see a similar thing to compare different  
frameworks - after all, apart from availability of developers with  
experience, the next most important thing about a framework (for  
management) is how much it's going to cost or save them, isn't it?

On 1 Nov 2009, at 21:44, Derrek wrote:



 Do you know the reason they don't want to use symfony? is it because
 they want to maintain the application themselves? or with labour
 cheaper than yourself once it's built? it would be interesting to
 know... as it could spur on a symfony and TCO study or something.

 It's a bunch of things. Using symfony would actually let them get less
 costly help than me once the app is written. The problem I think is
 the up-front investment in conversion. Most of them have tech guys
 that are comfortable with how things are now. So the tech guys tell
 management we don't think it's worth the cost. It's much much *much*
 (let me reiterate *MUCH*) easier to get management to start with
 symfony on a new project. But if there is an existing system, even in
 php, they shy away from it. It may be a good idea to have tutorials
 for showing how efficiently an app can be re-developed in symfony when
 coming from another platform.

 I actually find that it takes me considerably longer to do anything
 when not using symfony now... validators? security? ORM? ergh. Even
 simple CRUD applications can be knocked out quickly - remember the
 original Blog screencast for 1.0? how long did that take? 8 minutes  
 or
 so?

 I concur, especially on new development. I can knockout a new project
 for a demo in a few days. Polish a large project in a few weeks. But
 migrating an existing system with 200+ tables in a best case scenario
 takes time. Time that will be saved when faced with the idea of re-
 creating what symfony does very well already. One of my clients just
 spent days re-creating doctrine's nested set capabilities. They kept
 looking for ways to make it better for their needs. In the end they
 spent dozens of man-hours creating something that is entirely inferior
 to doctrine's nested set. It would have taken me 2-3 hours if they
 were already in symfony.

 The only argument I can see against using symfony is for the  
 reasons I
 mentioned above.

 I'm not sure there are any rational arguments to not use symfony (or
 any other competent MVC framework like Zend). Except that I get paid
 way more in the long term on a project if I *don't* get them on
 symfony because I have to re-create so much of what it does. :) Again,
 I don't mind this. Clients that choose symfony accelerate their
 product development and meet the users needs better. The problem is
 proving that to management.

 Anyway, back to work.

 --Derrek
 


--~--~-~--~~~---~--~~
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: Project Management / Support tools

2009-11-01 Thread Lee Bolding

Thanks... that looks promising.

Just a quick question, as I'm playing with adding issues as a  
customer... is it possible to hide or deactivate status, priority,  
assigned to, start date, due date, estimated time etc fields?

If you can, that looks like it could be perfect

On 1 Nov 2009, at 23:26, David Ashwood wrote:


 Take a look at Redmine - http://www.redmine.org/

 Very decent, works with all scm, multiple projects; public  private,
 it's simple to use and configure and has a nice feel to it.

 On Sun, 2009-11-01 at 20:52 +, Lee Bolding wrote:
 Hi Gang,

 Can anybody recommend a good project management and support tool  
 along
 the lines of BaseCamp or CodeBase?

 What I'm after specifically, is something that operates in 2 modes  
 - a
 public facing mode that allows customers to report and browse
 outstanding bugs etc (but not assign them, or see who they are
 assigned to), and a backend that allows us to assign bugs internally
 and integrates the bug tracker with a version control system, so that
 we can link specific commits to tickets (like Trac does). Also,
 ideally I would be able to host it myself, and easily be able to make
 repositories and projects either public (for open source projects) or
 private (for commercial projects).

 I know Trac can do most of this, but it's a real PITA to set up - and
 setting it up badly gives the public access to browse your  
 repository,
 which ain't good. Both BaseCamp and CodeBase have the backend part
 covered, but don't have a public frontend where your customers can
 report bugs (and I can't host myself).

 Any suggestions?

 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: what would suppress a fatal error so it does not appear in the error log?

2009-10-24 Thread Lee Bolding

If you search the mailing list archives, there are plenty of instances  
where I've talked about this before...

Usually, it's caused when a type-cast arg is required by a function,  
and the incorrect type of arg is supplied...

EG

public function addComment(Comment $comment)

Where addComment is expecting a Comment object, but for some reason or  
another it gets supplied something else (most commonly NULL or FALSE,  
because a previous call to retrieve or create the Comment object  
returned NULL/FALSE).

If you use sfErrorHandlerPlugin, it can catch most of these errors for  
you

On 24 Oct 2009, at 02:35, larry wrote:



 My site seems to be dying on this line:

 ?php include_component('category', 'categoryOld') ?


 I look in the error log and I find no fatal error, only errors and
 warnings, none fatal. What could suppress a fatal error so it doesn't
 show up in the error log?

 


--~--~-~--~~~---~--~~
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: sf1.3 ANSI color on the command line....

2009-10-15 Thread Lee Bolding

Make an alias in your shell

On 15 Oct 2009, at 09:24, Jonathan Franks wrote:


 is there a way to make this the default? instead of typing --color
 every 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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Realize this UML model (job interviews system) in symfony

2009-10-14 Thread Lee Bolding

You can easily create an admin app where the admin can add questions,  
and a frontend app where the interviewee answers them...

However, from your email and questions, it looks as though you don't  
already have any Symfony experience. This is a fairly trivial  
application - you could get it running literally in minutes using  
Wufoo or similar, so being purely pragmatic, I'd say go and implement  
it using Wufoo.

On 14 Oct 2009, at 00:45, Cosimo Zecchi wrote:


 Hi all,
 i'm trying to realize this model using symfony. (http://
 img96.imageshack.us/img96/3193/diagrammadiclasse2.png or something
 like that..).. it should be a flexible job-interview system.. so I
 need an application for making (by an admin) and answering (the
 users) questionaries.
 Maybe my uml is not the best, but it gives an idea.

 An interview in made of three parts (personal informations, skills
 and attitudes) and an Admin should decide for every category the
 questions: personal informations and attitudes are the same for every
 category.. only skills change depending on category.
 i don't know how to realize it with symfony, because i have two
 levels of submits: the admin submits questions for category, and the
 user submit the answers to the questions.. but how do i do to relate
 questions with answer in an unique form for the user?
 Do you have any ideas?

 I have another doubt.. in this way maybe my Answers Table will be
 huge in a short time (hundred questions for every user, thousand
 users..).
 Mysql can afford this amount of data and queries?

 Thank you in advance.

 Cosimo Zecchi

 P.IVA: 02035150974
 c.zec...@gmail.com
 tel. 3475851188




 


--~--~-~--~~~---~--~~
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: entity-relationship editors?

2009-10-14 Thread Lee Bolding

Aqua Data Studio?

On 14 Oct 2009, at 22:46, cosmy wrote:


 thank you all.. mysql workbench seems interesting, but it doesn't work
 on my macosx 10.4 :(

 


--~--~-~--~~~---~--~~
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 mixins!! Adding new actions in a module with the event dispatcher (MIXINS)

2009-10-12 Thread Lee Bolding

What version of Symfony are you using?

I think mixins were replaced by the event system as of Symfony 1.1

On 12 Oct 2009, at 06:36, jaime wrote:


 Hi!

 I'm trying to add new actions to some modules with mixins and the
 event dispatcher.

 I find the controller.page_not_found notify, but it didn't work.

 Someone knows if there is a way to add new actions with some mixin??
 


--~--~-~--~~~---~--~~
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: Call For Information Re-organization [opinions needed]

2009-09-28 Thread Lee Bolding
You're all forgetting about http://snippets.symfony-project.org/ which  
has all of these features already.

All that needs to be done is to place a ('show me examples') link at  
the bottom of each manual page which links to snippets and displays  
snippets tagged with the class or function you're looking at.

EG http://snippets.symfony-project.org/snippets/tagged/class/ 
order_by/date

No need to overcomplicate things or re-invent the wheel. That wouldn't  
be the Symfony way, would it? ;)

On 28 Sep 2009, at 15:32, Bruno Reis wrote:

 For me, there is one major reason for the popularity and spread of  
 the php in the word: comments on the manual pages! Nobody can make a  
 documentation as good as the whole comunity can make together. There  
 is allways a different point of view, way of teaching and learning a  
 specific subject. Thats the fortune of the php manual. Of course you  
 have to filter a lot of things, but filtering is a essential skill  
 to someone looking to learn the best way to do his job.

 Put comments on the manual and you will see


 2009/9/28 Gareth McCumskey gmccums...@gmail.com
 I was actually thinking, when I menioned the comments sections on php.net 
 , about the snippets section. It would be great to link to that to  
 give a nice easily understandable example of usage.

 We do have the various books and these are great but the comments/ 
 snippets sections are great for looking up how to do those slightly  
 more obscure/intricate things with the framework that wouldn't be  
 found in the official books.


 On Mon, Sep 28, 2009 at 4:03 PM, eMerzh merz...@gmail.com wrote:
 Why not integrate the api with the snipped page... or smth like  
 this...
 It's a real happiness for a beginner to have a lot of exemples...  
 and taht all the example can be found in a central place...

 or the comment could have some rating system...


 On Mon, Sep 28, 2009 at 15:28, Fabian Lange fabian.la...@symfony-project.com 
  wrote:

 I personally dislike the php.net api comments
 they are full of junk.
 the solutions are untested, undocumented, not working or messy.
 Fabian








 -- 
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc




 


--~--~-~--~~~---~--~~
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: Call For Information Re-organization [opinions needed]

2009-09-26 Thread Lee Bolding
Neat idea :)

Will try it out over the weekend

On 26 Sep 2009, at 09:16, noel guilbert wrote:

 Hello,

 I just released a plugin to get an API help throught the cli. It's a  
 proof-of-concept, so it's very in a pre-alpha state, needs testing  
 and cleanup, but I'm looking for feedback to improve it.

 With this plugin, you have to type what you are looking for to get  
 its API doc:

   $ symfony api:help sfForm
   $ symfony api:help sfForm::bind
   $ symfony api:help url_for

 If you want to test it, checkout the source from the repository : 
 http://svn.symfony-project.com/plugins/sfHelpPlugin/trunk/

 What do you think about it?


 On Fri, Sep 25, 2009 at 7:26 PM, Jake Barnes  
 lkrub...@geocities.com wrote:

  If you have a look at the API, of course you learn that you can  
 pass an
  array of options to the widget constructors. But, if you look just  
 after
  the method definition, ... surprise, all options are described.  
 And this
  is true for all widgets and validators, all of them.

 Thanks, Fabien. It is good to know that things are getting better. I
 started using Symfony with version 1.1, when the the new forms
 framework was severely under-documented. The 1.2 branch is better
 documented, and it seems the documentation keeps getting better all
 the time.




 On Sep 25, 2:38 am, Fabien Potencier fabien.potenc...@symfony-
 project.com wrote:
  zeev,
 
  I can understand that we need to re-organize the documentation, so  
 that
  it is easier to find things, but your example is the worst  
 possible ever.
 
  If you have a look at the API, of course you learn that you can  
 pass an
  array of options to the widget constructors. But, if you look just  
 after
  the method definition, ... surprise, all options are described.  
 And this
  is true for all widgets and validators, all of them.
 
  Just one example for good measure:
 
  http://www.symfony-project.org/api/1_2/sfWidgetFormChoice#method_conf 
 ...
 
  Don't want to dive into the API? All widgets and validators are also
  described in the form book (appendices A for widgets and B for
  validators). If I take the same example as above, here is what we
  explain in the book:
 
  http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_choic 
 ...
 
  All options are described in great details, with images to show  
 you how
  they affect the rendering.
 
  Want to keep the reference offline? Just download the PDF:
 
  http://www.symfony-project.org/get/pdf/forms-1.2-en.pdf
 
  Want to read it in Italian, or Japanese. Still possible:
 
  http://www.symfony-project.org/forms/1_2/it/A-Widgets
 
  Can you explain a bit more what is missing here?
 
  I'm all for documentation enhancements and I'm well aware that we  
 can do
  better. But please, be constructive.
 
  If something is missing, and some things are definitely missing,  
 open a
  ticket, explain the issue, submit a patch if possible, and you will
  become part of making symfony better.
 
  If you want to make symfony better, stop complaining and do  
 something
  about it. I'm always looking for people willing to help.
 
  Fabien
 
  --
  Fabien Potencier
  Sensio CEO - symfony lead developer
  sensiolabs.com | symfony-project.org | fabien.potencier.org
  Tél: +33 1 40 99 80 80
 
 
 
  zeek wrote:
 
   Yes, that is a good example. All of the form widgets suffer from  
 the
   same problem - if you look at the documentation in the API, it  
 teaches
   you that the second parameter can be an array of options. But what
   options are allowed in that array? I've looked around and never  
 found
   documentation on that - instead, one has to look around for the
   occasional example, or maybe wade through the source code in  
 hopes of
   an answer.
 
   On Sep 24, 3:21 am, eMerzh merz...@gmail.com wrote:
   I Totally agree.. for me the lack of a clear and complete api  
 is the biggest
   pbm of Sf...
 
   i have another example :
   herehttp://www.symfony-project.org/api/1_2/sfTestFunctionalBase#method_ch

 ...
   you can find the documentation about checkResponseElement , and  
 his option
   parameter...
   But what could i set in this options? I'm forced to look at the  
 code or
   so...
 
   If there is a technical platform for it wiki or something, i  
 would be glad
   to help the symfony team to write, translate or add examples in  
 the
   documentation
 
   On Thu, Sep 24, 2009 at 04:16, zeek z...@thesecondroad.org  
 wrote:
 
   On Sep 23, 8:10 am, fakingfantastic lakatos.fr...@gmail.com  
 wrote:
   I recently had a discussion with Fabien about this topic, and  
 he
   suggested it would be best if I stage the debate here.
   Has anyone ever felt like the information they needed to get on
   Symfony was hard to find? Do you find that the information  
 you need is
   very-well documented on the site, but it takes a while to  
 search for?
   These are very big issues for me that over the last 6 months  
 of me
   learning the framework, have made 

[symfony-users] Re: Dev working, Prod fail.

2009-09-24 Thread Lee Bolding

Hmm... well, I've just been dealing with a similar problem at the  
moment on a non-Symfony project.

Looks like it could be caused by a peculiarity (bug?) when a cast  
object is expected and the object type can't be found by any  
autoloader... seems to cause an immediate fatal error with no error  
reporting (even when using XDebug)

Eg.

$result = $object-function(My_Class $class)

Where the $class object may exist, but PHP is unable to load/find the  
My_Class class.

At least, that was the cause for my problem.

So, transposing that information to your problem, I'd check your  
factories.yml for any typos in the class names - and check that those  
classes actually exist.

On 24 Sep 2009, at 10:39, Cyril G wrote:


 I reverted to 1.28, and I edit the prod environment's with the same
 properties as the dev environment's and WSOD.
 I installed sfErrorHandlerPlugin, and WSOD too.

 On 24 sep, 11:08, Lee Bolding l...@leesbian.net wrote:
 Or give sfErrorHandlerPlugin a shot - it should eliminate your  
 WSOD :)

 http://www.symfony-project.org/plugins/sfErrorHandlerPlugin

 On 24 Sep 2009, at 09:48, Gábor Fási wrote:





 Try reverting to 1.2.8, the lates stable release of the 1.2  
 branch. If
 it doesn't help, edit the prod environment's error_reporting so you
 can see where the problem is.

 On Thu, Sep 24, 2009 at 10:37, Cyril G magiccy...@gmail.com wrote:

 Hi,

 I have a problem that I don't understand.
 In local, as well as on the production server, my project not  
 working
 if I use the prod environnement, but it works in dev  
 environnement. I
 have a white empty page (WSOD), without any error.
 The symfony log's as well as the apache log's are empty. I tried to
 trace, and it seem to stop at line 149 of sfContext class (method
 loadFactories).
 I'm using Symfony 1.2.9, and I also tried to delete all the  
 plugins /
 refresh cache, but WSOD anyway.

 Does anyone have an idea ?

 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: Symfony has definitely become too complicated framework

2009-09-24 Thread Lee Bolding

Hmmm... I'm kind of inclined to agree that using tables is just bad,  
regardless of whether or not the opening table tag is missing.

Any reason Symfony doesn't default to using dl/dd/dt like Zend_Form  
does? (that's about the only good thing I have to say about Zend_Form)

Wouldn't that be more flexible?

On 24 Sep 2009, at 23:11, Eno wrote:


 On Thu, 24 Sep 2009, bghost wrote:

 This is bad formatted HTML - where is table tag? Using tr, th
 and td without table - terrible !

 As the example in the docs show, *you* must supply that:

 http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_01_sub_displaying_the_form



 -- 



 


--~--~-~--~~~---~--~~
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: [SAAS] Multiclient system + multidata mask

2009-09-21 Thread Lee Bolding

There's actually an alternative to sfDynamicFormPlugin, which I'm  
actually using as a base for sfDynamicFormPlugin - sfSpyFormBuilder.  
Have a look, it may well be able to sort out your problem.

As for sfDynamicFormsPlugin, it's still in progress (there's not even  
any code that I've committed yet), although very slowly... It's one of  
those things that I'd use on EVERY project if I ever had the time to  
actually finish it, but I keep getting distracted with other  
projects :-/

However, this week I'm going to start a hobby project based on Symfony  
1.3 - and I already know it's going to need an EAV data model. So,  
progress on sfDynamicForm may accelerate if I find that I need it for  
this project.

On 21 Sep 2009, at 11:14, eljam wrote:


 Hello here is my problem:

 Example:
 I've got a form with three fields firstname, lastname, dob for
 client X.
 Now the client Y want an other field like sex but the client X
 didn't want it.

 So i think my problem is quite explicit with this example. Do you know
 a pattern like datamask that a can use in symfony or maybe an eav
 system should do the trick and will be much easier like the
 sfdynamicform ?

 thx 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: Framework based PHP vs high level programming languages

2009-09-21 Thread Lee Bolding


On 21 Sep 2009, at 14:50, Fabian Lange wrote:

 But you can also have the same situation with Java and Spring which
 scales much better than a coupled php architecture.

That line is becoming more and more blurred with the advent of  
memcache, JSON and proper OO PHP(5) frameworks.

Some projects I've worked on in the past have been based on PHP  
webservices serving XML, JSON or RSS (replacing say EJB's) and have  
been incredibly scalable and quick to rollout, maintain, extend and  
debug.

JSON has effectively replaced EJBs as the object transport of choice  
in largely decoupled and scalable applications.

Can haz JSON, can haz scalability.

The myth that PHP doesn't scale is old, and no longer plausible.

So, I'm gonna don my Jamie Hyneman beret and say This one's  
definitely busted ;)

--~--~-~--~~~---~--~~
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: Framework based PHP vs high level programming languages

2009-09-21 Thread Lee Bolding


On 21 Sep 2009, at 15:49, Fabian Lange wrote:


 On Mon, Sep 21, 2009 at 4:44 PM, Lee Bolding l...@leesbian.net wrote:
 The myth that PHP doesn't scale is old, and no longer plausible.

 I did not say say.
 I said that you can have java architectures that scale better than php
 architectures,
 and you can have php architectures that are better than java  
 architectures.
 in fact the language does not matter

True.

Language does not matter anymore - use the tools you're most  
comfortable and most productive with.

--~--~-~--~~~---~--~~
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 has definitely become too complicated framework

2009-09-20 Thread Lee Bolding


On 19 Sep 2009, at 10:45, Alexandru-Emil Lupu wrote:

 Well the symfony plugins part is the maintainer / creator job to  
 keep it updated. But as there is no motivational thing involved  
 (money or need to use it in sf 1.2 or something else that don't  
 cross my mind atm ), i do not think the maintainer will do it.  
 Instead, you might create an account on SF website, and become  
 contributor to desired plugin, and create a sf1.2 compatible version.

That's a nice idea, but it requires that the original plugin owner  
allows the contributor to join the project. Some of them just won't  
allow it through fear that they'll make additional changes to the  
plugin, taking it in a direction that they're not comfortable with.  
For instance, people have asked to join sfErrorHandlerPlugin to add  
functionality to email errors - nice idea, but I don't want to add  
something which itself is likely to be the cause of many errors.

However, I do see that this whole maintaining a plugin for different  
Symfony versions is a bit of a problem - with many plugins left  
behind, or simply abandoned.

So, I propose a solution - move the code hosting of Symfony plugins to  
GitHub.

Whilst I'm no GitHub expert, I've seen this work with other projects  
(notably ExpressionEngine add-ons). Users are free to create forks of  
each others code and maintain/alter those as they see fit. User can  
easily find forks from the original project, so they can browse the  
network graph visualiser 
(http://github.com/blog/39-say-hello-to-the-network-graph-visualizer 
) for the fork they are interested in, and download that.

What say all? would that be a fair solution that would keep everybody  
happy?

--~--~-~--~~~---~--~~
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: Put message from forward404() into template

2009-09-14 Thread Lee Bolding


On 13 Sep 2009, at 18:12, rooster (Russ) wrote:

 In the meantime, unless anyone else can think of something, the only
 thing I can suggest is that you override the sf404Exception class to
 store the message for you.

I haven't tried this before, but you could try using my  
sfRequestPlugin (http://www.symfony-project.org/plugins/ 
sfRequestPlugin), setting the error using $request-setError(), then  
retrieve the error within your 404 module/action/template.

I haven't tested the plugin on SF 1.2 yet...

--~--~-~--~~~---~--~~
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: Preferred Linux servers for symfony?

2009-09-04 Thread Lee Bolding

I recommend developing on a virtual machine configured as closely to  
your deployment server as possible.

There's a whole bunch of benefits to using a VM, but essentially, it  
means you can run as many as you like, if you trash it you can either  
roll back or just grab another VM image from your file server, when a  
new developer joins your team they don't need to spend hours/days  
configuring their environment - you just hand them a USB stick with a  
VM image on it. Every developer has exactly the same environment, etc  
etc

If you need to install additional libraries/binaries for your app on  
your VM, you know you'll have to do the same on the deployment server  
- and you'll have a bash_history so you can cut and paste the exact  
compilation options into a run book (or, better still, create a  
compiled package from your VM and simply install the package -  
compilers on a deployment server aren't a good idea).

FWIW, my development VM is Fedora 9 (x86_64), and it works great :)


 On Thu, Sep 3, 2009 at 11:05 PM, Robert Acetibob...@cogeco.ca
 wrote:

 Please let me know which 'nix you are using to develop in symfony
 and
 pros cons discovered in installation of symfony.  Thank you.

 Bob


--~--~-~--~~~---~--~~
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 + Java Applets + Sockets

2009-08-25 Thread Lee Bolding

Actually, it should just be MyApplet.

The Java interpreter knows it's a .class file. If you add .class, the  
JVM will attempt to load/find MyApplet/class.class

On 24 Aug 2009, at 22:18, Sid Bachtiar wrote:


 Don't use the 'web' directory

 Instead of /web/MyApplet.class it should be just /MyApplet.class

 On Tue, Aug 25, 2009 at 9:13 AM, rosbrbaraza...@gmail.com wrote:

 Yes i do. this is my .htaccess now:

 Options +FollowSymLinks +ExecCGI

 IfModule mod_rewrite.c
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  #RewriteBase /

  # we skip all files with .something
  #RewriteCond %{REQUEST_URI} \..+$
  #RewriteCond %{REQUEST_URI} !\.html$
  RewriteCond %{REQUEST_URI} \.class$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
 /IfModule

 I´ll keep searching.

 Thanks to everybody.





 -- 
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz

 


--~--~-~--~~~---~--~~
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 + Java Applets + Sockets

2009-08-22 Thread Lee Bolding

Your applet tag is effectively asking for 'applet.MySocket' - whereas  
the classpath for your applet is simply 'MySocket'.

If you move MySocket.class into web/ it should work

On 22 Aug 2009, at 04:56, rosb wrote:

 In a ShowSuccess.php i call the applete using this:
 applet code=/applet/MySocket.class width=350 height=80 /
 applet

 But i get this error from java console:

 java.lang.NoClassDefFoundError: /applet/MySocket (wrong name: applet/
 MySocket)

 Had anybody seen something like that before?

--~--~-~--~~~---~--~~
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] London PHP contractors?

2009-08-03 Thread Lee Bolding

Hi gang,

Anybody in London currently seeking a contract?

I've been asked to find a good PHP developer to work with me on a  
project I'm about to begin.

Drop me a message if you'd like more details.

--~--~-~--~~~---~--~~
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: plugins ....

2009-06-30 Thread Lee Bolding
Nobody else finds it ironic that we've just had a discussion about  
reinventing the wheel (re: ecommerce) - and now the same thing occurs,  
but everybody has the opposite opinion?

Sort it out, guys.

This is what I meant about the fractured nature of open source turning  
big business off - be consistent with your reasoning.

On 29 Jun 2009, at 17:41, Alexandru-Emil Lupu wrote:

 Hey there!
 I would like to ask some stupid questions...

 There is any chances to clean up the mess that is in the symfony  
 plugins section?

 By mess i mean:
 - there are 2 twitter plugins (i suppose that they do the same  
 thing, in 2 different ways)
 - at least 3 chart plugins
 - 23 plugins that handles forms ( validation, improvement, security  
 or User interface )
 - 3 pdf plugins
 - 3 feed plugins (2 that creates feeds )
 - 3 image manipulation plugins
 - 8 plugins that handles mail
 - 5 jquery plugins
 - 7 CMS applications
 - 3 blog plugins

 Ofcourse, there are many, but i just took some examples.
 If we could structure the plugins better:

 1 blog plugin that is able to have many more features
 1 image manipulation plugin with a maybe more complex Yml that would  
 handle all the stuff,
 1 Pdf plugin that can easy interfaced with HTML, Latex or other things
 1 Jquery plugin that would have all jquery / JqUI files and  
 functionality
 1 chart plugin
 1 twitter plugin
 1 CMS application

 I do not want to be missunderstand, but i think too many people  
 reinventing the weel or the warm water. Instead of having 10  
 unmaintained plugins for the same thing, we could have just one that  
 would be maintained by all 10 developers, instead of spending the  
 time by rewriting the same thing in other way. In the end, i think  
 we all would have something to gain. Some of us a nice portofolio  
 (being involved in sf project), others would spend less time  
 improving x plugin and testing y,z plugins as well (even debug them).

 I think this collaborations between developers would diminish the  
 chances of bug occurences, would create some mature software, and  
 improve the quality of the plugins.

 P.S. I do not want to offend developers for their work. Is just i  
 think it would be better to have less plugings with more features.
 I think that sf personell could provide us a list with most  
 maintained plugins. Then, we will see that from those 283 plugins,  
 (maybe) more than a half are not maintained, and still have some  
 items left to be done in TODO list.

 Ex:
 DbFinderPlugin - 6 todo items
 sfWebBrowserPlugin - 0 todo Items
 sfLucenePlugin - 0 todo items / no Propel implementation
 sfPropelActAsNestedSetBehaviorPlugin - 0 todo / no doctrine  
 implementation required
 sfJqueryReloadedPlugin - 8 items todo
 sfPropelActAsTaggableBehaviorPlugin - 0 todo
 sfAdminDashPlugin - 3 todo items
 sfImageTransformPlugin - 0 todo
 sfGoogleAnalyticsPlugin - 0 todo
 sfAssetsLibraryPlugin - 6 items todo
 sfLightboxPlugin - 0 todo
 sfTCPDFPlugin - 0 todo
 sfEasyGMapPlugin - 4 items todo
 sfTaskExtraPlugin - NO README PRESENT
 sfPropelActAsSluggableBehaviorPlugin - 0 todo
 sfPropelActAsCommentableBehaviorPlugin - (2 items on wish list )
 sfPropelSqlDiffPlugin - 0 todo items
 nahoMailPlugin - 1 todo
 sfDateTime2Plugin - 0 todo
 sfDoctrineActAsTaggablePlugin - 0 todo
 sfPropelParanoidBehaviorPlugin - 0 todo
 sfPropelVersionableBehaviorPlugin - 0 todo
 sfDoctrineApplyPlugin - 0 todo
 stOfcPlugin - 0 todo
 sfSympalPlugin - 0 todo (?) no Propel implementation
 sfGuardPlugin - 2 todo
 sfFormExtraPlugin - 0 todo
 sfDoctrineGuardPlugin - 0 todo
 sfThumbnailPlugin - 0 todo
 sfFeed2Plugin - 2 todo items

 Of course some of the plugins allready reach a maturity level, but,  
 many of them are just in a premature state (check next pages :) ) .

 Alecs

 -- 
 As programmers create bigger  better idiot proof programs, so the  
 universe creates bigger  better idiots!
 I am on twitter:
 http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0748.543.798


 


--~--~-~--~~~---~--~~
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: e-commerce solution under symfony

2009-06-29 Thread Lee Bolding


On 28 Jun 2009, at 00:13, Marius Rugan wrote:

  having tried implementing magento, two times until i dropped it out  
 completely, i can say for me it didn't work because whatever you do,  
 it's too damn slow. You need a virtual machine 1GB+ RAM and up with  
 all the possible tinkering under the hood still is java-like slow.  
 To me it's not acceptable

Really? I've been developing with Magento in a 384MB VMWare image for  
MONTHS and it's fine... I even saw a Zend guy benchmark Magento  
running on his crappy Lenovo laptop at 200 pages/sec. Not sure what  
you're doing wrong there...

On 27 Jun 2009, at 21:21, Pablo Godel wrote:

  I think it could do better than others, including Magento,
 which has tons of features, but it is slow and complex.

Ironically, these are the exact same reasons many people don't adopt  
Symfony. I don't think that's a particularly compelling reason. Why  
not use CI or Kohana? they're MUCH faster :)

But, luckily - AS AN END USER - you don't CARE what framework an  
application is built upon.

If you want to go ahead an make a Symfony based ecommece solution,  
then go ahead. But I *really* recommend you do some due diligence and  
make *exhaustive* research into the existing solutions available - and  
compare these from the perspective of an end user - before you begin  
coding.
  

--~--~-~--~~~---~--~~
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: e-commerce solution under symfony

2009-06-27 Thread Lee Bolding

OK guys, time to be PRAGMATIC, and put your creative urges aside.

A payment framework for Symfony would be incredibly useful - there's  
plenty of SaaS applications that can (and will) be created with  
Symfony. I'm even working on a few myself ;)

Something that plays well with Amazon's DevPay would be awesome... you  
could quickly create extremely flexible pricing models for your SaaS  
applications.

As for a larger scale project; what are the costs and benefits of  
creating a fully-blown ecommerce solution with Symfony?

Magento already exists (using the Zend framework). Magento is free,  
open source and has commercial support available (if you want it). Not  
just that, it's got a massive community (85K community members, 750K  
downloads), it's PCI compliant, Magento have partnered with Zend and  
Rackspace.

What could possibly be the benefit (to you, and to the end user) of  
developing a competitor? you're already the encumbent before you even  
begin coding, you'd be competing with a free product - there's not  
going to be much financial reward for your efforts, and not much to  
add to your CV.

You'd receive far more benefit in terms of peer recognition and  
financial gain by fixing the perceived problems with Magento. Add to  
this that there's already a need to experienced and capable Magento  
professionals.

Remember, although open source empowers you to create competing  
products, it's this fractured and fragmented mentality that turns big  
business off of open source.

I'd be interested to hear some pragmatic responses to this thread from  
Fabien, Jonathan and Nicholas... even if they disagree with me :)

On 27 Jun 2009, at 09:20, Gandalf wrote:


 Hello,

 Just my 2 cents, from my point of view, personal, we should write a
 new of store solution if:

 1) we can make a better job than magento, magento got the rights
 features, but implementation  is really slow, can we do better???
 sure? see my post about sympal performance.

 As I said, my very own 2 cents.

 Pablo

 On 6/27/09, Marius Rugan mariusru...@gmail.com wrote:
 Hi Antoine,

 there is http://code.google.com/p/sfshop/

 i've signed up on the google group / took a peak into the code.  
 imho still
 needs a lot of documentation and participation.
 i've test drove it 4-5 months ago but i was too keen on getting  
 things done
 for a small project so i used a small footprint solution. (opencart)

 for now i think it's a good candidate for not reinventing the  
 wheel. as of
 functionalities, code quality and so on i'm not in the position to  
 asses
 those since i didn't bump my head into whatever problems might  
 generate.


 On Sat, Jun 27, 2009 at 10:22 AM, Antoine Leclercq  
 anto...@netcv.comwrote:

 [This thread follows the discussion started on
 http://groups.google.com/group/symfony-users/browse_thread/thread/9be2bdb7cff682bf(Status
 of paypal plugin(s)) about an ecommerce solution for symfony. It has
 been moved here as it was slightly off topic.]

 Agreed on the fact that we should not reinvent the wheel (@Lee),  
 that's
 whole point of symfony itself.
 Agreed on the fact that many great ecommerce solutions already  
 exist and
 can be interfaced with symfony.

 But, AFAIK symfony offers a real plus when it comes to building  
 complex
 and
 maintainable applications. Plus, when you have a development team  
 trained
 on
 the framework, you want as much as possible to avoid injecting major
 external piece of code that will bring its amount of specificity,  
 its own
 frame of mind / framework, and will inevitably cause you to dig on  
 some
 specific issues related to that very piece of code.

 In addition, what if one of these os ecommerce solutions was built  
 with
 symfony? Don't you think it would provide more? It would highly  
 benefit
 from
 the framework improvements (integrated tests, security, performance,
 customization...) and therefore its community could focus on the  
 real
 work.

 If we take the CMF example, how many open source solutions can we  
 list?
 30,
 40, a lot more?
 And great solutions like Joomla, XOOPS, Drupal, Plone… All of them  
 are in
 a
 really mature state.
 Then why Sympal?
 IMHO the first answer would be that it's a real need for the  
 community.
 Because developers want to feel safe with their developments, to  
 know what
 they integrate, and finally to be able to dig in quickly whenever  
 they
 need
 to fix a bug.

 This seems to be the same pattern with our symfony ecommerce  
 solution
 discussion.

 I would be interested in knowing how many people have developed  
 ecommerce
 applications with symfony.
 RT @Thomas: How many people are willing to help to create an
 ecommerce-like open source project?

 Regards,

 Antoine
 LetsCod







 


--~--~-~--~~~---~--~~
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 

[symfony-users] Re: Status of PayPal plugin(s)

2009-06-26 Thread Lee Bolding


On 26 Jun 2009, at 16:08, Antoine Leclercq wrote:

 IMHO, if we want to strengthen the payment solution on Symfony, and  
 eventually start developing a open source online shop solution (that  
 was my dream this morning)

LOL, that's the conclusion I reached about 3 or 4 months ago.

However, I quickly abandoned that idea once I discovered Magento. No  
point in competing with that behemoth. It does everything you could  
possibly want, it's open source - and you can easily drop Symfony into  
it if you want to.

No point in reinventing the wheel.

--~--~-~--~~~---~--~~
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: once again, the error The default context does not exist.

2009-06-25 Thread Lee Bolding

On 25 Jun 2009, at 15:26, Tom Haskins-Vaughan wrote:


 Just come across this problem. What's the best way to test if the  
 model
 class is being called by the cli or not?

Test for the presence of the $_SERVER array. 
--~--~-~--~~~---~--~~
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: Status of PayPal plugin(s)

2009-06-10 Thread Lee Bolding


On 10 Jun 2009, at 11:16, Marijn wrote:

 Perhaps I should add that this plugin would be ORM agnostic without
 using DbFinderPlugin. There would be three plugins,
 sfTransactionPlugin, sfDoctrineTransactionPlugin and
 sfPropelTransactionPlugin.

What's wrong with DbFinderPlugin?

--~--~-~--~~~---~--~~
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: Performance: Frozen or Not?

2009-06-04 Thread Lee Bolding

Shouldn't make any difference...

However, it may make a *small* difference if your PEAR folder is on a  
different drive/share.

TBH, the performance difference would be so marginal, that you can do  
a hell of a lot more to increase performance before you even need to  
think about small performance gains like this.

You'll see much more speed difference by using an opcode cache such as  
eAccelerator, APC or Zend Server, or using memcache to cache the  
results of your DB queries.

On 4 Jun 2009, at 10:26, Sid Ferreira wrote:

 Wich may run faster (if have any difference)?

 -- 
 Sidney G B Ferreira
 Desenvolvedor Web


 


--~--~-~--~~~---~--~~
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: Status of PayPal plugin(s)

2009-06-01 Thread Lee Bolding

My PayPal and GoogleCheckout plugins kind of got shelved.

I was planning to create an eCommerce solution - but then discovered  
Magento, and have been working with that a lot recently.

I'm happy to transfer leadership of the sfPaypalPlugin and  
sfGoogleCheckoutPlugin plugins to anybody that wants to take them.

On 1 Jun 2009, at 08:56, Antoine Leclercq wrote:

 There was an interested thread on the subject in December 
 (http://groups.google.com/group/symfony-users/browse_thread/thread/520db466889357eb
  
 ) where Lee said that he was in the process of reviewing PayPal and  
 Google Checkout plugins. I didn't get anything new on this since  
 that time. Lee, if you are reading, that would be lovely if you  
 could update us on your plans.

--~--~-~--~~~---~--~~
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: Status of PayPal plugin(s)

2009-06-01 Thread Lee Bolding

Hmm... I'm not sure how far I got to be honest. I remember that I  
spent a lot of time trying to work out an API that would work as  
transparently as possible for whatever payment method you wanted to  
use... the machine my code for this is on is back home in UK - I'm in  
South America at the moment, and will be for the next 2 weeks or so.

However, I think my original approach was wrong, if I was starting  
again I'd take a different approach - define an interface that each  
payment method (PayPal, GoogleCheckout) must implement, then I'd use  
dependency injection to inject the payment method class into some form  
of dispatcher to be executed.

Obviously, that makes the whole thing a lot more generic, rather than  
specifically for PayPal.

I think you need to apply to join the project at the plugins page - if  
you do that, I'll make you the leader, then you should be able to  
remove me.

On 1 Jun 2009, at 13:25, Antoine Leclercq wrote:

 Hi Lee, hi all,

 Great for the sfPaypalPlugin, I'll take the lead. Did you start the  
 development test oriented as you suggested on your previous email ?  
 If this is the case, even if it is just a start, I'll be glad to  
 take it over. If not I'll start from scratch.

 About the sfGoogleCheckoutPlugin, I'll wait till we need it. I  
 prefer to focus on a single solution right now but still take into  
 account the global online payment need.

 Is anyone else interested in contributing to the sfPaypalPlugin ?
 If you do, it could be interesting that we meet at the Symfony Live  
 event, if you go, as I will participating the 2 days.

 Regards,

 Antoine Leclercq
 Branch Manager @ LetsCod
 http://www.letscod.com

 On Mon, Jun 1, 2009 at 6:14 PM, Lee Bolding l...@leesbian.net wrote:

 My PayPal and GoogleCheckout plugins kind of got shelved.

 I was planning to create an eCommerce solution - but then discovered
 Magento, and have been working with that a lot recently.

 I'm happy to transfer leadership of the sfPaypalPlugin and
 sfGoogleCheckoutPlugin plugins to anybody that wants to take them.

 On 1 Jun 2009, at 08:56, Antoine Leclercq wrote:

  There was an interested thread on the subject in December 
  (http://groups.google.com/group/symfony-users/browse_thread/thread/520db466889357eb
  ) where Lee said that he was in the process of reviewing PayPal and
  Google Checkout plugins. I didn't get anything new on this since
  that time. Lee, if you are reading, that would be lovely if you
  could update us on your plans.

 


--~--~-~--~~~---~--~~
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: ExtJs JSON response

2009-05-25 Thread Lee Bolding

This is the correct solution.

Your browser attempts to download the response as a file because it  
doesn't know what to do with the mime type application/json

If you set the headers to text/html for testing purposes you'll see  
the response as plain text in your browser

On 25 May 2009, at 06:00, Leon van der Ree wrote:


 My guess is your content-type.

 Try keeping it text/html instead of application/json

 On May 25, 10:21 am, santail nikolai.muh...@gmail.com wrote:
 Action executes of file upload. If that helps to find a bug.
 


--~--~-~--~~~---~--~~
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 Virtual Machine

2009-05-21 Thread Lee Bolding

Good work David!

However, I'd recommend that if you intend to use a VM for development  
(I already do), that you build it yourself, so that it mirrors the  
exact configuration of your deployment environment. Unless you do  
that, using a VM provides very little benefit, as you still can't be  
sure that your application will behave exactly the same in your  
production environment.

What I do right now is have the same VM for all of our developers -  
when a new developer arrives they grab the image file from our server,  
and check out all of the necessary stuff from our repository  
(including things like PEAR). We have almost everything in SVN, which  
allows developers to easily make huge changes to their own VM, and if  
it is to be propagated to the live server, it's then checked into SVN,  
so that we can check out the changes from SVN directly onto the live  
server. A good example of this would be upgrading Symfony via PEAR. We  
do it on a developer VM, test, and if it works, we then commit the  
changed /usr/share/php/PEAR to SVN and from the live server(s) perform  
an svn up in the same directory. Instant, no hassle update :)

Every other developer then does the same - performs an svn up in  
their /usr/share/php/PEAR directory, so that everybody then has the  
same version of Symfony as the production environment.

At some point I'll resurrect my blog and make a blog post about how/ 
why to set up an effective development VM. I've just created a new one  
using Fedora 9 after we upgraded our servers, and put Fedora 9 on them  
instead of the previous Debian.


On 20 May 2009, at 13:54, David Ashwood wrote:

 Wotcha Guys and Gals,

 I’ve just launched a site which allows you to download a Virtual  
 Machine setup and ready to run against Symfony and Zend.
 It’s based on Ubuntu Server x86, comes with the latest versions of  
 Apache, MySQL, subversion, PHP  Zend – and includes Symfony 1.0,  
 1.1, 1.2 and 1.3 (via svn so it’s a snitch to refresh).
 It has the current versions of Pear  Pecl – so installing plugins  
 shouldn’t be a problem.  It comes with the Zend Server (community  
 edition) integrated – so you can remotely manage your environment  
 via a web browser.

 It’s deployed via OVF – so just download, extract and import into  
 your favourite Virtual Machine Client – otherwise I’d suggest  
 installing the VirtualBox Client (http://www.virtualbox.org/) which  
 works under Windows and *nix.

 The VM Images and complete info can be found at: http://sipx.ws and  
 the Issues tracking is at 
 http://project.inspiredthinking.co.uk/projects/show/symfony-vm

 With this type of approach you can develop and test against an  
 environment in a repeatable fashion.  By using the snapshot/rollback  
 features found in many VM Clients – you can roll back an environment  
 quickly and easily – allowing you to see deploy/test changes outside  
 of your production environment.




 


--~--~-~--~~~---~--~~
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 Virtual Machine

2009-05-21 Thread Lee Bolding
 devs understand what to do.


 With Deployments the general idea is that you'll be able to run  
 multiple images in modes - to facilitate testing, architecture  
 scenarios, etc.  With this you run one image as a DB, several as web  
 servers and drop in a load balancer - and hey-presto you have a way  
 to test how your application performs when scaling out.


 With the 1.x branch I'm intending to go with a much lighter approach  
 - still with some base images for various distributions and  
 deployments (there will be standard and live images along the same  
 approach as the live-cd used with some distributions) but using some  
 of the approaches you've outlined for providing the packages and for  
 linking in with repositories.  This approach however requires some  
 infrastructure to support it - and infrastructure = time + resources  
 and resources = money.

 This approach essentially extends the current sf sandbox to a  
 deployed image mode. It'll work out compatibilities, issues and  
 fixes, deal with things like pear and pecl dependencies, PDO and  
 handle the deployments you'll see above.


 With 1.x comes features for both devs and hosters (and allows for  
 Targeted deployment).  Hosters can build their base image and  
 include the needed components into the image - and share it with  
 their customers(the devs).  Devs can download and use the image -  
 and it'll pull all the needed parts down.  When they are ready to  
 deploy - then from within the VM they can provision and deploy the  
 application.  With the provisioning on the hosting provider side  
 building the image locally, deploying it and then accepting the  
 deployment of the application.


 Should the dev decide to move hosting providers to another  
 supporting this model - as it'll be built using the same components  
 (but probably a different base OS) - then it should be a simple  
 process to download their base image, deploy from the current VM to  
 the new VM, test and redeploy.


 That kinda went on a bit but that's my current thinking J

 Thanks for the feedback


 -Original Message-
 From: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com 
 ] On Behalf Of Lee Bolding
 Sent: 21 May 2009 14:40
 To: symfony-users@googlegroups.com
 Subject: [symfony-users] Re: Symfony Virtual Machine


 Good work David!

 However, I'd recommend that if you intend to use a VM for development

 (I already do), that you build it yourself, so that it mirrors the

 exact configuration of your deployment environment. Unless you do

 that, using a VM provides very little benefit, as you still can't be

 sure that your application will behave exactly the same in your

 production environment.

 What I do right now is have the same VM for all of our developers -

 when a new developer arrives they grab the image file from our server,

 and check out all of the necessary stuff from our repository

 (including things like PEAR). We have almost everything in SVN, which

 allows developers to easily make huge changes to their own VM, and if

 it is to be propagated to the live server, it's then checked into SVN,

 so that we can check out the changes from SVN directly onto the live

 server. A good example of this would be upgrading Symfony via PEAR. We

 do it on a developer VM, test, and if it works, we then commit the

 changed /usr/share/php/PEAR to SVN and from the live server(s) perform

 an svn up in the same directory. Instant, no hassle update :)

 Every other developer then does the same - performs an svn up in

 their /usr/share/php/PEAR directory, so that everybody then has the

 same version of Symfony as the production environment.

 At some point I'll resurrect my blog and make a blog post about how/

 why to set up an effective development VM. I've just created a new one

 using Fedora 9 after we upgraded our servers, and put Fedora 9 on them

 instead of the previous Debian.


 On 20 May 2009, at 13:54, David Ashwood wrote:

  Wotcha Guys and Gals,

 

  I’ve just launched a site which allows you to download a Virtual

  Machine setup and ready to run against Symfony and Zend.

  It’s based on Ubuntu Server x86, comes with the latest versions of

  Apache, MySQL, subversion, PHP  Zend – and includes Symfony 1.0,

  1.1, 1.2 and 1.3 (via svn so it’s a snitch to refresh).

  It has the current versions of Pear  Pecl – so installing plugins

  shouldn’t be a problem.  It comes with the Zend Server (community

  edition) integrated – so you can remotely manage your environment

  via a web browser.

 

  It’s deployed via OVF – so just download, extract and import into

  your favourite Virtual Machine Client – otherwise I’d suggest

  installing the VirtualBox Client (http://www.virtualbox.org/) which

  works under Windows and *nix.

 

  The VM Images and complete info can be found at: http://sipx.ws and

  the Issues tracking is at 
  http://project.inspiredthinking.co.uk/projects/show/symfony-vm

[symfony-users] Re: pear install symfony/symfony fails

2009-05-02 Thread Lee Bolding

Also, check the memory_limit setting in your php.ini

I always set it to 128M before installing Symfony. Symfony fails to  
install with the default memory_limit


On 2 May 2009, at 20:51, Eno wrote:


 On Sat, 2 May 2009, Innovate2Create wrote:

 This error message doesn't help me install symfony. I'm on Fedora.
 Latest version of pear. How do I troubleshoot this?

 pear install symfony/symfony
 downloading symfony-1.2.7.tgz ...
 Starting to download symfony-1.2.7.tgz (2,695,475 bytes)
 .done
  
 :
 2,695,475 bytes
 ERROR: pear.symfony-project.com/symfony not installed

 I once 'fixed' this problem by telling pear to use /tmp as its
 installer temporary folder before doing the install step (probably a
 permissions problem but I never checked - I was just happy it  
 worked :-)

 You can use 'pear config-show' to see the settings and 'pear config- 
 set'
 to set an individual setting.

 Another 'fix' might be to download the package manually and then  
 tell pear
 to install from the file (i.e. 'pear install symfony-1.2.7.tgz').


 -- 



 


--~--~-~--~~~---~--~~
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: Best practice for debugging ?

2009-05-01 Thread Lee Bolding

Ofcourse, I'm gonna mention sfErrorHandlerPlugin again :)

The Symfony debug bar, FireBug and sfErrorHandlerPlugin are a great  
combination, however if you want something a bit more powerful, take a  
look at Zend Server.

I saw a demo of Zend Server yesterday, it's got some great debugging  
in it - not only does it actively monitor and log pages with errors or  
slow loading pages for later analysis, but it also saves all of the  
request variables and session etc, so that you can replay the  
scenario over and over so that you can easily replicate and debug the  
problem.

I can see that this feature alone could save countless hours during  
development and once an application has been made live - the  
additional benefits of the caching and support are also pretty cool.

Certainly, I'm seriously considering buying licenses for my  
development VM and my live servers. If you have a lot of servers (or  
developers) though, it can become quite expensive - it's around €1200  
per license.

On 30 Apr 2009, at 19:23, Eno wrote:


 On Thu, 30 Apr 2009, Benjamin wrote:

 Is there a way to use one of them to debug Symfony pages ?
 Features like breakpoints, variables live tracking, etc... seem to be
 very usefull...

 I dont use IDEs but between the symfony debug bar, the Apache logs and
 FireBug+FirePHP, I get the job done.



 -- 



 


--~--~-~--~~~---~--~~
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: Best practice for debugging ?

2009-05-01 Thread Lee Bolding


On 1 May 2009, at 13:07, David Ashwood wrote:

 Generally though I've had problems getting PHP debuggers to ignore  
 certain files (such as code within frameworks when an exception  
 happens).

Is this uncaught exceptions? or do you mean they tend to stop whenever  
an exception is thrown, even if it is caught and dealt with?

--~--~-~--~~~---~--~~
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: Best practice for debugging ?

2009-05-01 Thread Lee Bolding

I'd expect a debugger to stop at an exception that wasn't handled -  
that's a fatal error.

Shameless self promotion (again) - sfErrorHandlerPlugin wraps the  
entire filter chain (except for itself) inside of a try/catch block,  
so it automatically catches any uncaught exceptions and displays the  
full stack trace :)

If you're using any kind of 3rd party library, it's a handy way to  
insulate your application from bad exception handling in a 3rd party  
library.


On 1 May 2009, at 14:52, David Ashwood wrote:


 It varies but generally it was catching all exceptions even if  
 they're not
 handled.
 I've worked with various php debuggers over the years - so it's  
 something I
 test when using a new version or changing the debugging lib used.

 -Original Message-
 From: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com 
 ]
 On Behalf Of Lee Bolding
 Sent: 01 May 2009 15:29
 To: symfony-users@googlegroups.com
 Subject: [symfony-users] Re: Best practice for debugging ?



 On 1 May 2009, at 13:07, David Ashwood wrote:

 Generally though I've had problems getting PHP debuggers to ignore
 certain files (such as code within frameworks when an exception
 happens).

 Is this uncaught exceptions? or do you mean they tend to stop whenever
 an exception is thrown, even if it is caught and dealt with?



 


--~--~-~--~~~---~--~~
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: i get a blank white screen, even in dev mode, even with sfErrorHandler installed

2009-04-20 Thread Lee Bolding


On 20 Apr 2009, at 07:24, Lawrence Krubner wrote:

 Given a blank white screen, there are 3 main things I should check:

 1.) clear the cache

 2.) look for parse errors in yml files

 3.) look for permission errors

 but I have done all these things. So what is next? What 4th area
 typically causes problems?


You've already answered your own question


On 20 Apr 2009, at 07:20, Lawrence Krubner wrote:

 The sysadmin might have chrooted the directory I'm working, so that
 the project now points to a local copy of the core symfony framework,
 rather than pointing to the standard location:

 /usr/share/php/symfony

The 4th thing to check is other people 'fixing' my application that  
wasn't broke

I'm pretty sure this is the root of your problem. Find your SysAdmin -  
beat them with a stale baguette, like one of our cops would beat a G20  
protester

Whenever we have our SysAdmins play with our applications, it's done  
whilst a developer is with them - so that they can be sure to check  
everything that could cause the application to break - and to actually  
test that it still works afterwards.

It certainly sounds like a permissions issue - make sure you've done a  
chmod -R 777 on both log/ and cache/

Other than that, make sure you've got a sensible error logging level  
set, and that display_errors in on...

It's going to be a silly error - so you just need to think through  
everything logically :)

--~--~-~--~~~---~--~~
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: i get a blank white screen, even in dev mode, even with sfErrorHandler installed

2009-04-20 Thread Lee Bolding

This is your error :

Fatal error: Call to undefined method BasePeer::getmapbuilder() in / 
home/lawrence/public_html/esociety/lib/model/om/BaseCommentPeer.php on  
line 69

 From this URL : 
http://lawrence.sds5.com/esociety/web/test_dev.php/comment/index

On 20 Apr 2009, at 21:11, Lawrence Krubner wrote:




 On Apr 20, 5:24 am, Lee Bolding l...@leesbian.net wrote:
 On 20 Apr 2009, at 07:24, Lawrence Krubner wrote:

 Given a blank white screen, there are 3 main things I should check:

 1.) clear the cache

 2.) look for parse errors in yml files

 3.) look for permission errors

 but I have done all these things. So what is next? What 4th area
 typically causes problems?

 You've already answered your own question

 On 20 Apr 2009, at 07:20, Lawrence Krubner wrote:

 The sysadmin might have chrooted the directory I'm working, so that
 the project now points to a local copy of the core symfony  
 framework,
 rather than pointing to the standard location:

 /usr/share/php/symfony

 The 4th thing to check is other people 'fixing' my application that
 wasn't broke

 I'm pretty sure this is the root of your problem. Find your  
 SysAdmin -
 beat them with a stale baguette, like one of our cops would beat a  
 G20
 protester

 Whenever we have our SysAdmins play with our applications, it's  
 done
 whilst a developer is with them - so that they can be sure to check
 everything that could cause the application to break - and to  
 actually
 test that it still works afterwards.


 Okay, it seems you were right. Talked to the sysadmin. He thought the
 issue was arising from suexec he imposed on the server. Finally got
 something to appear on the front page:

 http://lawrence.sds5.com/esociety/web/test_dev.php


 though the inner pages are still  blank white:

 http://lawrence.sds5.com/esociety/web/comment/index















 It certainly sounds like a permissions issue - make sure you've  
 done a
 chmod -R 777 on both log/ and cache/

 Other than that, make sure you've got a sensible error logging level
 set, and that display_errors in on...

 It's going to be a silly error - so you just need to think through
 everything logically :)
 


--~--~-~--~~~---~--~~
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: London symfony users meeting! 17th April

2009-04-17 Thread Lee Bolding

I'd have gone, but I'm not working in London at the mo, and I live  
north of the river...

Maybe next time!

On 17 Apr 2009, at 14:50, Ian P. Christian wrote:


 Last reminder! meeting in Putney night!

 2009/4/3 Ian P. Christian poo...@pookey.co.uk:
 Everyone remember, london meeting!
 http://www.meetup.com/symfony/calendar/10055154/


 Blog: http://pookey.co.uk/blog
 Follow me on twitter: http://twitter.com/ipchristian

 


--~--~-~--~~~---~--~~
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.

2009-04-16 Thread Lee Bolding

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: Extending sfController

2009-04-16 Thread Lee Bolding

Cool. OK, let's address some of your points, and through a few ideas  
around :)

1) OK, that's pretty much what I expected. The way I'd handle these  
anchor points is with Symfony events. Create a set of events within  
your application, and allow plugins to listen to these events. Maybe a  
plugin controller would listen to these events... I'm thinking  
something along the lines of how Symfony's filterChain works - but  
this is just my first thought without much investigation. Events are  
cool though - I've even started firing events when specific KPI  
criteria for my apps are met, so that we can easily measure if the app  
is meeting all of its business goals :)

2) You can remove a lot of headaches by judicious use of the final  
keyword and appropriate private and public methods in your  
controllers. Expose an interface that all 3rd party modules must  
implement. If you do that, PHP can take care of a lot of those  
headaches for you. This combined with the events I mentioned before  
should be quite a powerful combination. I mentioned my  
sfErrorHandlerPlugin earlier today - one of the great features of it  
is that it wraps all other filters (including sfExecutionFilter), so  
any uncaught exceptions are caught by the plugin - if you use that (or  
at least that portion of code) to wrap your plugin handler, it will  
insulate you from 3rd party plugins causing catastrophic errors :)

As for the rest of it - I think this can all be achieved with  
listeners, and restricting 3rd parties to a specific interface(s).

I'd always take the approach of forcing 3rd parties to follow a  
convention - it means that when you make changes to the application as  
a whole, you've got a defined contract between plugins and  
applications that you need to maintain, you don't need to worry about  
people having code dependent upon YOUR code - just your interfaces  
(hell, that's the whole point of interfaces!).

Hopefully, that's give you some ideas - I'd be interested to hear  
other peoples ideas, because as I said before, I need to think about  
implementing this on a few projects soon :)

On 16 Apr 2009, at 11:10, Johannes Heinen wrote:


 Thats it^^, for sure. Thanks for your patience :)

 Ok, infos... lets see.

 1.) When i speak of modules i mean a 3rd-party code snippet which
 integrate into the 1st class
 app and can fulfill additional tasks (much as a plugin which plugs
 into a predefined anchor-point).
 My modules have nothing to do with symfony modules as instances of
 an action controller (Ok,
 but i would be pleased if my modules would encapsulate similar
 funcionality as an symfony action
 controller, as explained before)

 2.) Third party authors are responsible for non breaking the main
 application, so i am of the
 opinion that wie can neglect questions of security. Because the 3rd
 party vendor is responsible
 for that by himself - if a module is vulnerable, so the main app will
 be -  no sandboxing in
 any way, that is no prerequisite for me. Merly a bonus in a very, very
 last step, but i would
 break it down to basic error-handling, so an exception in 3rd party
 code won't break the
 output - a fatal error will do so anyway - compile-at-runtime-
 disadvantage.

 I would simply pass a reference to the sfContext-Instance to provide
 full app-access,  as
 this is anyway accessible by its factorymethod at any point in my
 symfony-app i see no way
 to encapsulate 3rd party modules in a very special mannor - if you
 want to break the app,
 you are able to do so.

 So lets imagine a 3rd party vendor module blog, which implements a
 few models (news,
 user-comments), both depend on other models (users,...) and must be
 notified on change.
 These dependancies may rely in the core, or in other 3rd party
 modules.

 I would simply write a 3rd party vendor module api for myself and pass
 a sfContext-Instance into
 it, as written before. Or, that is what i fell in love with^^ i use
 predefined symfony-code to
 enrich my modules so that they have the same look and feel like a
 symfony action controller.

 That would have the advantage that a symfony dev-superhero feels
 familiar with it and could
 easyliy devolpe modules without lerning a new api.

 Thanks again for your interrest,

 greetings
 Johannes



 On Apr 14, 8:33 pm, Lee Bolding l...@leesbian.net wrote:
 I think I get what you want to do - create a sandbox for 3rd party
 modules, where they can't interfere with the 1st party application.
 Does that sound about right?

 I've got several projects in various states, that at some point are
 going to need that functionality - I just haven't reached that stage
 in the development yet, so haven't really thought about it much.

 Assuming that's what we're talking about, I've got a few ideas about
 how it could be implemented - but implementation details depend
 largely upon exactly what you want to allow 3rd party plugins to do
 (or maybe that should be, what you DON'T want to allow them to do

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Lee Bolding

I think you answered your own question - if the app doesn't start  
properly, a plugin to the app (which didn't start) isn't ever going to  
get instantiated to be able to tell you that ;)

If Symfony even fails to start, I believe you should see your default  
500 error page, as configured in your webserver. If you don't, then  
you've got some server configuration issues that you need to resolve.  
In which case, you should also have an error in your webservers error  
log too - it won't get gobbled by Symfony if Symfony didn't even start.

On 16 Apr 2009, at 10:07, FÁSI Gábor wrote:


 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.

2009-04-16 Thread Lee Bolding

A different environment shouldn't cause any problems - I run many  
custom environments using it without any problems.

What is the error logging level set to in your environment? do you  
have show_errors set to on?

Also, you're better using the dev controller for your environment -  
you'll get a full stack trace then

On 16 Apr 2009, at 12:27, Roland Cruse wrote:


 I installed sfErrorHandler (using symfony 1.2)

 The log showed proof of installation:  Apr 16 05:55:37 symfony [info]
 {sfHardenedRenderingFilter} Render to the client. Plus put the
 error500 scripts to their prospective homes even though I have logging
 on...but no joy I sorry to say. white screen of death. Nothing any
 logs, symfony or apache.

 I am using my own environment as opposed to dev or prod. Maybe that as
 something to do with it...?

 my frontController
 ...
 $configuration =
 ProjectConfiguration::getApplicationConfiguration('appname', 'foo',
 true);
 ...

 At least I know I am not the only one with the problem.
 Thanks

 On Thu, Apr 16, 2009 at 11:13 AM, 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: Tricky date format requirements...

2009-04-15 Thread Lee Bolding

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



 


--~--~-~--~~~---~--~~
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: Extending sfController

2009-04-14 Thread Lee Bolding

I think I get what you want to do - create a sandbox for 3rd party  
modules, where they can't interfere with the 1st party application.  
Does that sound about right?

I've got several projects in various states, that at some point are  
going to need that functionality - I just haven't reached that stage  
in the development yet, so haven't really thought about it much.

Assuming that's what we're talking about, I've got a few ideas about  
how it could be implemented - but implementation details depend  
largely upon exactly what you want to allow 3rd party plugins to do  
(or maybe that should be, what you DON'T want to allow them to do)

If I understand correctly, let me know and I'll throw some ideas your  
way :)

On 14 Apr 2009, at 18:29, Johannes Heinen wrote:


 I see... unfortunately it seems to be hard to decouple the mvc-classes
 from these convention over configuration principles, though the code
 itself is fairly simple and small (but contains many hard coded
 pathnames to e.g. to views etc... perhaps i have to follow your
 advice. To be more specific to that what i really want to archive
 (;)): I only want to use the symfony advantages in my modules: view
 helpers, passed request/response stream representations, Environment/
 Context Objects and so on. I imagine a sfAction-class style entry
 point for each module, that is enhanced with custom events to handle
 relationships between modules. These module-classes i want to be
 loaded and controlled by a module-manager, which i simply want to
 build as an implementation of sfController. Perhaps one has another
 advice for me, if not - thanks anyway, this is a very special question
 and i surely will have to put some work into it ;).

 Best regards
 Johannes


 On Apr 14, 7:39 am, Gareth McCumskey gmccums...@gmail.com wrote:
 Perhaps consider creating your collection of CMS modules as  
 apparent
 modules instead of being defined as symfony modules, that way you  
 can use
 symfony to manage the interactions of these CMS modules without  
 having to
 worry about overwriting the sfController class or any other symfony  
 classes.

 Of course if you feel this is a bad idea instead of looking for the
 documentation you mentioned, of which I am sure there are none, try  
 looking
 into the symfony code yourself to see how it is implemented.

 On Mon, Apr 13, 2009 at 11:45 PM, Johannes Heinen 



 johannes.hei...@googlemail.com wrote:

 Hi all,

 i am searching for a kind of best practice in extending  
 sfController.
 The masterplan is to develop a module system in which an end user  
 can
 implement a mvc-driven module class inside of a symfony app. In this
 app (e.g. a content managemen system), you are able to manage  
 modules
 (enable, disable, install, uninstall).

 A module is mainly a wrapper around the mvc-class which manages
 dependancies per subject/observer pattern following kiss. Concrete:

 The developer creates a folder, there is a config.yml stored. In
 this .yml-file will be defined: module name, dependancies and events
 to which the module is listening, the main module file and main-
 classname (the controller-class). The module manager is in charge to
 find the required files, to check dependancies and  to instanciate  
 the
 main-controller. Now - i dont want to write a mvc-interface by  
 myself,
 because symfony provides one by default. So the question is, how to
 implement a sfController childclass which is so to say not a web-
 controller, but merely a module-controller with own templates,
 components, slots and so on...

 Perhaps my problem is superficial, but i didnt find any deeper  
 docs
 about using these symfony core components in a more loose coupled
 way, thus the mvc-structure is more indendet to be used in a strict
 request/response-based way/manner).

 Got the point? ^^ If not: sorry for my bad english, and even more
 annoying that i can't speak any word in french ;(

 Greetings and many, many easter eggs
 Johannes Heinen

 --
 Gareth McCumskeyhttp://garethmccumskey.blogspot.com
 twitter: @garethmcc
 


--~--~-~--~~~---~--~~
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: plugin development idea

2009-04-11 Thread Lee Bolding

In the Doctrine cookbook, there is (or was) an example of a Doctrine  
template that provides access restrictions to records based on  
permissions.

That's probably a good place to start :)

On 11 Aug 2008, at 18:14, Dmitry Nesteruk wrote:

 can you describe this plugin? what is functionality this module  
 provide?

 2008/8/11 Florian sideral.undergro...@gmail.com


 Hi community,

 I rewrite my post in this group cause this one (
 http://groups.google.com/group/symfony-devs/browse_thread/thread/416b59c2bcbaa184?hl=en
 )
 is maybe not the best place
 ---

 I just wanted to know what you think of this plugin (
 http://code.google.com/p/sfownedbehavior/ ) ?

 Do you think it can be useful / totally stupid / already done /
 easilly done / differently done ?

 I'm open to any comments / suggestions / help !!

 In fact, I am as interested in writing a plugin ( just to learn ) as I
 need an easy, cool ( =symfony'cally ) way to securize my actions in
 function of owner.

 Hope my English is good enough to be understood by all.

 Thanks,
 Florian



 


--~--~-~--~~~---~--~~
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: plugin development idea

2009-04-11 Thread Lee Bolding

LOL, apologies for that - my mac just had a fit after a power cut, and  
it's reset the date on all of my mails to today :-/

On this subject though - can anybody recommend a UPS that plays well  
with Macs with auto shutdown?

On 11 Apr 2009, at 17:45, Lee Bolding wrote:


 In the Doctrine cookbook, there is (or was) an example of a Doctrine
 template that provides access restrictions to records based on
 permissions.

 That's probably a good place to start :)

 On 11 Aug 2008, at 18:14, Dmitry Nesteruk wrote:

 can you describe this plugin? what is functionality this module
 provide?

 2008/8/11 Florian sideral.undergro...@gmail.com


 Hi community,

 I rewrite my post in this group cause this one (
 http://groups.google.com/group/symfony-devs/browse_thread/thread/416b59c2bcbaa184?hl=en
 )
 is maybe not the best place
 ---

 I just wanted to know what you think of this plugin (
 http://code.google.com/p/sfownedbehavior/ ) ?

 Do you think it can be useful / totally stupid / already done /
 easilly done / differently done ?

 I'm open to any comments / suggestions / help !!

 In fact, I am as interested in writing a plugin ( just to learn )  
 as I
 need an easy, cool ( =symfony'cally ) way to securize my actions in
 function of owner.

 Hope my English is good enough to be understood by all.

 Thanks,
 Florian






 


--~--~-~--~~~---~--~~
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: SOAP API for all the modules of my application

2009-04-07 Thread Lee Bolding

Interesting, I'll have to take a look at that soon :)

Thanks for pointing that out :)

On 7 Apr 2009, at 11:13, Gareth McCumskey wrote:

 There was a great SOAP plugin which would meet your needs perfectly  
 that essentially involved adding a few PHP-DOC style comment tags to  
 your action functions to expose them through a SOAP API. You can  
 read more about it here: 
 http://www.symfony-project.org/plugins/ckWebServicePlugin

 We never ended up using it cos it didn't -quite- meet our needs but  
 it sounds like exactly what you want :) Hope that helps

 Gareth

 On Tue, Apr 7, 2009 at 10:58 AM, subnauez sebastienna...@gmail.com  
 wrote:

 Hi all,

 I'm building an application and I need the whole scope of this one
 accessible via a SOAP API.
 My application deals with contacts, countries, langs, ...

 Everything works in the web interface. Now, I would like to make all
 the modules accessible for another application.

 This second application needs to:
 - get the list of contacts, countries and langs
 - retrieve a contact, a country or a lang by  their ID
 - create a new contact and adding a country and a lang
 - edit an existing contact

 Is there any way to do this easily ?
 Thanks for the 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: Symfony CMS Plugins

2009-04-07 Thread Lee Bolding

I hear ya.

I think most people HAVE chosen an ORM and are sticking to it -  
they're using the same ORM on their own projects, but this isn't  
necessarily the same ORM as the plugin they want to use requires.

Unfortunately, we're in this crazy situation where Doctrine seems to  
be the favoured option for a lot of people, but historically, Propel  
has been the default Syfmony ORM - so lots of people have code and  
plugins that are Propel only. Understandably, they're a bit averse to  
porting all of their code that just aint broke. They've chosen their  
ORM and they're sticking to it.

DbFinder is a nice solution to deal with this - it is ORM agnostic  
(well, as far as Doctrine and Propel are concerned). Trust me, the  
irony of an abstraction to a DB abstraction isn't lost on me ;)

I hope that with SF 2.0, this won't be so much of an issue anymore.

On 6 Apr 2009, at 19:02, Tom Boutell wrote:


 The dbfinderplugin just isn't going to cut it for this. The different
 ORMs have different strengths and weaknesses. dbfinderplugin will not
 put an efficient nested set implementation into Propel 1.3 (the one
 that's there can't efficiently figure out what the parent of an object
 is). And the code duplication and extra layers introduced by dbfinder
 just don't make sense.

 Stop the madness. Pick an ORM, work within it, advocate it. As for
 which ORM... sympal was written by the man who wrote Doctrine, and
 pkcontextcms, an entirely separate CMS,  is also written in Doctrine.
 That might give you a hint as to what people like to code for. (:

 -- 
 Tom Boutell
 P'unk Avenue
 215 755 1330
 punkave.com
 window.punkave.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: Filter not executing...

2009-04-06 Thread Lee Bolding

Without knowing what your filter does, it's pretty difficult to  
diagnose.

I'd start by adding a log method into your filter, and logging at the  
beginning of all of it's methods. You should then be able to see in  
the log messages in the web debug toolbar if the filter ever get  
instantiated.

However, this does sound like a pretty basic error - are you sure you  
copied the filter to the second machine?

On 6 Apr 2009, at 11:09, Mark Smith wrote:


 Hi,

 I am having a problem with a custom filter not executing. It works on
 my dev machine, but after deploying to another machine I am getting
 exceptions thrown. The problem seems to be that one of my custom
 filters is not being executed.

 The filter is defined correctly in apps\frontend\config\filters.yml
 The cache has been cleared, yet when i set a breakpoint on the execute
 method of my filter on the other pc it never stops.

 The template is being rendered, so my understanding is that it must be
 breaking somewhere after my filter *should* have executed.

 Any ideas for where I can start looking as to why my filter is not
 being triggered on the other pc?

 (The environments are both XP, PHP 5.2.8. Apache 2.2.)

 Thanks for any 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: Symfony CMS Plugins

2009-04-06 Thread Lee Bolding

+1

what he said.

On 6 Apr 2009, at 14:54, Stefan Koopmanschap wrote:


 This may be a stupid question, but since I've mentioned this at
 SymfonyCamp last year as well... ;)

 why not use DbFinderPlugin for this?

 On Tue, Mar 31, 2009 at 4:40 AM, Jonathan Wage jonw...@gmail.com  
 wrote:
 I won't develop a version for Propel but someone is welcome to form  
 my
 version and convert it for Propel.

 - Jon

 On Mon, Mar 30, 2009 at 9:25 PM, Daniel Tang tang_cheew...@hotmail.com 
 
 wrote:

 Hi,

 Will there be a version of http://www.sympalphp.org/ for Propel be  
 out
 soon?

 I think there are many CMS system out there, the greatest  
 challenge is
 to understand how to use them seamless with the framework. best to
 have a book or documentation similar to Jobeet...

 Symfony go for it!

 Thanks

 On Mar 30, 4:49 pm, Jonathan Wage jonw...@gmail.com wrote:
 I filled out sfSympalPlugin a while back.

 You can check out a demo of sympal here:http://www.sympalphp.org/

 - Jon

 On Wed, Mar 11, 2009 at 12:43 AM, isleshocky77
 sost...@sowebdesigns.comwrote:







 So I've been noticing more and more CMS Plugins popup for  
 symfony. I
 was wondering if anyone knew enough about all of them to make a  
 chart
 in the wiki comparing all the different implementations.

 http://trac.symfony-project.org/wiki/CMSPlugins

 I decided to start the page and see if anyone could add to it. I  
 don't
 know a lot about any of them accept sfDoctrineCMSPlugin which I've
 work a little with.

 Thanks in advance for anyone who can help out with this.

 --
 Stephen Ostrow sost...@sowebdesigns.com

 --
 Jonathan H. Wage
 Open Source Software Developer 
 Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://www.symfony-project.org
  
 -
 Hide quoted text -

 - Show quoted text -





 --
 Jonathan H. Wage
 Open Source Software Developer  Evangelist
 http://www.jwage.com
 http://www.doctrine-project.org
 http://www.symfony-project.org




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
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 CMS Plugins

2009-04-06 Thread Lee Bolding

It does more than just find - read the docs ;)

http://www.symfony-project.org/plugins/DbFinderPlugin/1_1_0?tab=plugin_readme

On 6 Apr 2009, at 17:26, Thomas Rabaix wrote:

 DbFinderPlugin finds object ;) so the finder will return  
 Doctrine_Record or BasePropel object.

 On Mon, Apr 6, 2009 at 6:18 PM, Lee Bolding l...@leesbian.net wrote:

 Isn't that the whole point of DbFinderPlugin?

 On 6 Apr 2009, at 15:48, Thomas Rabaix wrote:

  Methods signatures and features from Doctrine are not compatible
  with Propel.
 
 
  On Mon, Apr 6, 2009 at 4:36 PM, Lee Bolding l...@leesbian.net  
 wrote:
 
  +1
 
  what he said.
 
  On 6 Apr 2009, at 14:54, Stefan Koopmanschap wrote:
 
  
   This may be a stupid question, but since I've mentioned this at
   SymfonyCamp last year as well... ;)
  
   why not use DbFinderPlugin for this?





 -- 
 Thomas Rabaix
 http://rabaix.net

 


--~--~-~--~~~---~--~~
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 CMS Plugins

2009-04-06 Thread Lee Bolding

Sorry, I should have been clearer.

DbFinder returns objects of type Doctrine_Record or BasePropel object  
as you said - which have common methods, such as save() etc

DbFinder eliminates the need for ORM specific queries.

There are many features in each that are NOT common, but there's  
absolutely no reason that a plugin cannot be created that is  
compatible with BOTH Doctrine AND Propel using DbFinder.

The SimpleBlogPlugin is based on DbFinder, as are several other plugins.

I don't see any reason the plugin couldn't use DbFinder.

On 6 Apr 2009, at 17:42, Thomas Rabaix wrote:

 The idea behind this plugin is to write queries to retrieve model  
 objects through an ORM, but fast

 On Mon, Apr 6, 2009 at 6:47 PM, Lee Bolding l...@leesbian.net wrote:

 It does more than just find - read the docs ;)

 http://www.symfony-project.org/plugins/DbFinderPlugin/1_1_0?tab=plugin_readme

 On 6 Apr 2009, at 17:26, Thomas Rabaix wrote:

  DbFinderPlugin finds object ;) so the finder will return
  Doctrine_Record or BasePropel object.
 
  On Mon, Apr 6, 2009 at 6:18 PM, Lee Bolding l...@leesbian.net  
 wrote:
 
  Isn't that the whole point of DbFinderPlugin?
 
  On 6 Apr 2009, at 15:48, Thomas Rabaix wrote:
 
   Methods signatures and features from Doctrine are not compatible
   with Propel.
  
  
   On Mon, Apr 6, 2009 at 4:36 PM, Lee Bolding l...@leesbian.net
  wrote:
  
   +1
  
   what he said.
  
   On 6 Apr 2009, at 14:54, Stefan Koopmanschap wrote:
  
   
This may be a stupid question, but since I've mentioned this at
SymfonyCamp last year as well... ;)
   
why not use DbFinderPlugin for this?
 
 
 
 
 
  --
  Thomas Rabaix
  http://rabaix.net
 
  






 -- 
 Thomas Rabaix
 http://rabaix.net

 


--~--~-~--~~~---~--~~
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] Interesting article...

2009-04-03 Thread Lee Bolding

Guys,

I thought you may find this interesting...

http://grok-code.com/37/famous-programmers-from-adleman-to-zimmermann/

Any article containing the text below has got to be worth reading ;)

There are few women in the ranks of computer programmers, and  
pitifully few that can be called famous. So few in fact, that  
transsexuals are giving women a run for their money. The dataset  
includes 211.5 men, 6.5 women and 4 transsexuals. More on that .5 of a  
person shortly.

--~--~-~--~~~---~--~~
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

2009-03-26 Thread Lee Bolding

Disable short tags in your php configuration.

Short tags are bad, mmmkay?


On 26 Mar 2009, at 13:48, Nei Rauni Santos 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: http not working

2009-03-25 Thread Lee Bolding

I'd check your webserver configuration.

Seems like you've not got it using the same document root for HTTPS  
and you do HTTP - or that it's not even listening on port 80.

Either way, I'm pretty confident this isn't an issue with Symfony

On 25 Mar 2009, at 04:56, DeepakBhatia wrote:


 Hi,

 I have done standard installation of Symfony on linux machine.

 But I am not able to access my web pages through http. I have to type
 https.

 For example, the below will not work

 http://10.0.1.66/test/web/tool_dev.php/content/test

 But the below will work

 https://10.0.1.66/test/web/tool_dev.php/content/test

 Please let me know how can I access my website using http only.

 Thanks

 Deepak Bhatia
 


--~--~-~--~~~---~--~~
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: http not working

2009-03-25 Thread Lee Bolding


On 25 Mar 2009, at 11:20, Tom Castonzo wrote:


 This can be caused by the server logs being full. For example, on  
 apache,
 there are logs for http and also logs for https and that would  
 explain your
 problem.



How can a server log be full?

I can understand you may be out of disk space, but then you'd get the  
same error for both http and https

:-/

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   3   4   >