[symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread DEEPAK BHATIA
Hi,

I want to transition from Symfony 1.1 to Symfony 1.4.

What are all the steps required ?

Help needed

Regards

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-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] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Nathan
First of all read the upgrade guide for 1.1 to 1.2 because there were some
serious changes in the form and widget system. After this read the 1.2 to
1.3 upgrade guide.

Upgrading from 1.3 to 1.4 is not necessary (both are the same code, except
in 1.4 all the depreciated stuff is gone).

Nathan

On Fri, Jan 8, 2010 at 9:05 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote:

 Hi,

 I want to transition from Symfony 1.1 to Symfony 1.4.

 What are all the steps required ?

 Help needed

 Regards

 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@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] Offbeat: open source vs closed source technologies

2010-01-08 Thread Parijat Kalia
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.



Re: [symfony-users] default value in form extracted from session

2010-01-08 Thread Stéphane
You could put this in your action, since it's more about workflow than
domain object.
In your action, you'll use $this-redirect or forward methods to
redirect/forward user to the ethernet module's newForPc action, passing to
it needed parameters (pc id). newForPc will create a new EthForm, set its
pc_id attribute and set its input widget display to none (just like Nathan
said).
If you use admin-gen, you should read the manual chapter 14 about
generator.yml and how to add object_actions, overload templates to add new
buttons with save ones (for the save and add eth), etc.

Cheers,

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, Jan 8, 2010 at 1:02 AM, Mikael mikael.kermorg...@gmail.com wrote:

 Hi,

 My data model has a Pc table with a 1-n relation with an Eth  table.

 I'd like to configure the backend forms in order to :

 1 - Show 'New Pc form' with button 'save and add interface'
 2 - When pc is saved (processForm), Pcs new id is put in session
 3 - Then, the form for creating a new interface is shown

 At step 3, I want the form for the interface to avoid the selection of
 the Pc, which should be the one just created.

 I've tried to do this this way, but does not work :

 // lib/form/doctrine/EthForm.class.php
  class EthForm extends BaseEthForm
 {
  public function configure()
  {
$this-setDefault('id_obj', sfUser::getAttribute('pc'));
  }
 }

 Could someone help me to do this right ?

 Regards,

 Mikael

 --
 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.comsymfony-users%2bunsubscr...@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: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-08 Thread Stéphane
There is a netbean plugin to avoid cpu usage when refreshing, it adds a
refresh menu item to right-click on folders which does the trick (you might
also modify the regexp for files to parse).

I use eclipse on vm with ubuntu on a win7.
win7 native wamp+eclipse is slower than on ubuntu vmized one -_- (dell t3500
base)

I surely agree eclipse is far better than netbeans, because of many things
netbeans doesnt do (eclipse is far more than a simple java ide, so eclipse
is really over-tested, not enough, for sure, USE IT ! ;-)

NB is good at debug and run, but the same integration could be done under
eclipse (it has not been done yet even if there is a dead? plugin for
symfony - a good placeholder for this feature?) at low cost.

About Yaml, YEdit plugin for eclipse is good (better than yaml editor) at
editing and outlining yaml files even if outline does expand every time you
save the file and doesnt have a expand-unexpand button.

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, Jan 8, 2010 at 1:41 AM, Crafty_Shadow vankat...@gmail.com wrote:

 I have been using NuSphere's PhpED for the past six months. It is not
 free (though a trail version is available), however it is better than
 Eclipse/Netbeans by leaps and bounds. If feels much more coherent,
 there is no excessive overfunctionality. Writing macros for symfony is
 a piece of cake, there is a GREAT debugger, and last but not least -
 it is goddamn fast. Unlike what most IDEs seem to be going for right
 now (Java), PhpED is written in C++. The one downside I guess would be
 the fact that its only available for Windows (well, that and the quite
 hefty price tag, but you really do get what you pay for).

 On Jan 7, 2:32 pm, pghoratiu pghora...@gmail.com wrote:
  I converted to Netbeans 6.8 from the latest Eclipse version,
  personally I had problems with
  Eclipse unreliable code completion and high resource usage (both cpu
  and memory).
  Unfortunately not everything is perfect with Netbeans, I experienced
  also the high CPU usage lockup
  (i suspect it has something to do with code completion that fails and
  goes into an infinite loop).
 
  So if there are better IDE's than these I'm looking forward :)
 
  For anyone using Java based editors my suggestion is to use the Sun
  JRE (for both Eclipse and Netbeans)
  the one that comes bundled with a Linux distributions may not work as
  well.
 
  gabriel
 
  On Jan 7, 12:55 pm, Christopher Schnell ty...@mda.ch wrote:
 
   I use Eclipse, too, but would like to use Netbeans. I can't because
   since updateing to Fedora 12, it freezes radomly and crashes my entire
   system. And I can't use another Distribution because Fedora is the
 only,
   I know of that supports my 2 monitors.
 
   Netbeans has better code-completion with static functions which is
 great
   when using Propel.
 
   Regards,
   Christopher.
 
   Gareth McCumskey schrieb:
 
Personally I use Eclipse and struggle to do without the features this
 IDE gives me. Never used Netbeans but may give it a go, because I like the
 idea of having symfony support builtin
 
- Original Message -
From: Christopher Schnell ty...@mda.ch
To: symfony-users@googlegroups.com
Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare /
 Pretoria
Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP
 IDE:  NetBeans 6.8
 
There is also a video tutorial at
 
   http://netbeans.org/kb/docs/php/symfony-screencast.html
 
Regards,
Christopher.
 
P.S. I still can't believe there are so many of you NOT working with
 a
decent IDE like Eclipse or Netbeans.
 
FractalizeR schrieb:
 
NetBeans 6.8 has built-in Symfony support. I have composed small
 blog-
post about setting up symfony project in NetBeans:
 
   
 http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly...
 
I consider now NetBeans as a replacement for Zend Studio ;)
 
 

 --
 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.comsymfony-users%2bunsubscr...@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] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Alexandru-Emil Lupu
anyway, if you switch from 1.2 to 1.3 or 1.4 you have available a
commandline task that would help you out to figureout what are deprecated
functions.
Alecs

On Fri, Jan 8, 2010 at 10:25 AM, Nathan nat...@nathan.gs wrote:

 First of all read the upgrade guide for 1.1 to 1.2 because there were some
 serious changes in the form and widget system. After this read the 1.2 to
 1.3 upgrade guide.

 Upgrading from 1.3 to 1.4 is not necessary (both are the same code, except
 in 1.4 all the depreciated stuff is gone).

 Nathan

 On Fri, Jan 8, 2010 at 9:05 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote:

 Hi,

 I want to transition from Symfony 1.1 to Symfony 1.4.

 What are all the steps required ?

 Help needed

 Regards

 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@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.



Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
Set the validator for this specific field like this:

$this-validatorSchema['imagem'] = new sfValidatorFile(array(
'required' = $this-isNew(),
'path' = ...
...
));

So the field is only required when it's a new object. Is that what you're 
looking for?

Cheers, Daniel

On Jan 7, 2010, at 8:52 PM, g0d br wrote:

 Hi,
 
 I still having this problem.
 
 Im using sfWidgetFormInputFileEditable for a backend form and when i edit the 
 record with the image i have to choose the image file again otherwise i get 
 required error for the file.
 
 the problem is that i don wanna change the file but every time i have to 
 choose one file to overwrite the old one.
 
 Thank you for any help.
 
 Celso
 
 On Fri, Dec 11, 2009 at 12:27 PM, g0d br g0d...@gmail.com wrote:
 i get the error when i try to edit an record.
 
 create and delete works fine but if i try to edit an record and dont select 
 any file when i hit save the required error appears.
 
 Thanks
 
 Celso
 
 
 On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu gang.al...@gmail.com 
 wrote:
 When you get that required error? Better what are you trying to achieve?
 
 sent via htc magic
 
 
 On Dec 11, 2009 1:11 AM, g0d br g0d...@gmail.com wrote:
 
 Hi,
 
 I have an schema like this:
 
 banner:
 id: ~
 ordem: { type: integer, required: true }
 imagem: { type: varchar(255), required: true }
 link: { type: varchar(255), required: false }
 
 When i edit an record in admin module i get an error Required for imagem 
 field.
 
 Thats the code in BannerForm.class.php
 
 parent::configure();
 
 $this-widgetSchema['imagem'] = new sfWidgetFormInputFileEditable(array(
   'label' = 'Imagem 630x288',
   'file_src'  = '/uploads/banner/'.$this-getObject()-getImagem(),
   'is_image'  = true,
   'edit_mode' = !$this-isNew(),
   'delete_label' = 'Remover imagem',
   'template'  = 'div%file%br /%input%br /%delete% 
 %delete_label%/div',
 ));
 /*
 $this-widgetSchema['imagem'] = new sfWidgetFormInputFile(array(
   'label' = 'Imagem 630x288',
 ));
 */
 
 $this-validatorSchema['imagem'] = new sfValidatorFile(array(
   'required'   = true,
   'path'   = sfConfig::get('sf_upload_dir').'/banner',
   'mime_types' = 'web_images',
 ));
 
 $this-validatorSchema['imagem_delete'] = new sfValidatorBoolean();
 
 What an my doing wrong here? this code i get from symfony docs.
 
 Thank You
 
 
 Celso
 
 --
 
 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.



[symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Mikael
Thanks a lot !!!

Regards,

Mikael
-- 
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] Production vs Dev benchmark : performance due to web_debug

2010-01-08 Thread DigitalBase
When investigating a problem i had (see :
http://groups.google.com/group/symfony-users/browse_thread/thread/becf14dd8789edaf)
i decided to run some benchmarks on clean symfony environments
comparing 1.2/1.3  1.4

I went with the sandboxes of symfony 1.2.10, 1.3.1 and 1.4.1
Clean environment, default configuration and a single module named
default (hey i am a simple guy).
To do a little more then just hello world i decided to create  loop
1000 different slots (my application is using alot of those) using the
following code :

for($i = 1;$i  1000;$i ++) {
  slot(slotnr . $i);
echo hier zet ik wat rommel in...br /;
  end_slot();

  echo get_slot(slotnr . $i);
}

I used ab to create a benchmark (ab -t 60 -n 20
http://symfonytest3.gnelisse.desktop01/frontend_dev.php)
I was surprised by the results :

Symfony 1.2.10 :

Time per request:   402.566 [ms] (mean)
Time per request:   402.566 [ms] (mean, across all concurrent
requests)
Transfer rate:  1428.62 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:   324  402  64.2377 548
Waiting:  318  392  62.6371 543
Total:324  403  64.2377 548


Symfony 1.3.10 :

Requests per second:0.50 [#/sec] (mean)
Time per request:   1986.337 [ms] (mean)
Time per request:   1986.337 [ms] (mean, across all concurrent
requests)
Transfer rate:  2931.20 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:  1886 1986  42.7   19992048
Waiting: 1808 1905  43.0   19191973
Total:   1886 1986  42.7   19992048

Symfony 1.4.10 :

Time per request:   1979.466 [ms] (mean)
Time per request:   1979.466 [ms] (mean, across all concurrent
requests)
Transfer rate:  2941.15 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:  1908 1979  39.7   19882074
Waiting: 1815 1899  42.4   19081997
Total:   1908 1979  39.7   19882074

Is it correct that pages in dev environment are about 4x slower then
they were in 1.2 ? Why ?
Searching in google  documentation didn't explain me why there is a
huge difference in 1.3+

I found a small snippet dated from 2006.

fabpotvaltovar: dev mode is really for dev, so it is slow and not
optimized for speed
valtovar: prod is optimized for speed
see : http://sflog.mkserv.de/2006-02-04.html

When i disable web_debug on 1.3.1 :

Time per request:   632.474 [ms] (mean)
Time per request:   632.474 [ms] (mean, across all concurrent
requests)
Transfer rate:  53.60 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:   569  632  25.6640 662
Waiting:  504  562  23.0572 585
Total:570  632  25.6640 662

Some More info about my system :

- php version : PHP 5.2.10-2ubuntu6.3 with Suhosin-Patch 0.9.7
- platform : DESKTOP01 2.6.31-16-generic
- apache : 2.2.11

I know production is optimized. I know dev is slower.
But developing when each page (without any db connection or heavy
lifting) takes about 2seconds, it's hard to work fast (Rapid
Development right ?)

Any thoughts on 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.




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] Re: Helpers and Widgets??

2010-01-08 Thread Alexandru-Emil Lupu
ASK your PM to give you a daily task for 30 minutes research (time when you
study) ... Or read from you home ... 30 minutes is not much, but will keep
you on track.
If your PM would not understand the need of change / study / learn, then i
can recommend you two things: Change your job, or Change your job.

On Fri, Jan 8, 2010 at 12:04 PM, wueb webmaster@gmail.com wrote:

 The problem are the timelines. :(

 --
 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.comsymfony-users%2bunsubscr...@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.



[symfony-users] SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
Hi list,

I am working with symfony 1.4 to build a simple registration form, I got 2
models for this part : Registration and Person, which works with standalone
generated modules.

The registration model has 2 one to one relations with person for recording
2 contact information (respectively named Participant and Contact). I want
to bring both contact informaiton in the same form, tied to registration
form in registration module. Altough registration records cannot be modified
directly in form, it has to be timestampped and update status once the form
user has registered.

I defined my form class like with this only method :
class FrontEndRegistrationForm extends BaseRegistrationForm
{
  public function configure()
  {
//delete everything
 $this-setWidgets(array());
 $this-setValidatorSchema(new sfValidatorSchema());

 //adding 2 persons forms
 $participant = $this-getObject()-getParticipantPerson();
 $this-embedForm(participant, new
ParticipantPersonForm($participant));

 $contact = $this-getObject()-getContactPerson();
 $this-embedForm(contact, new ContactPersonForm($contact));
  }
}

ParticipantPersonForm and ContactPersonForm are both derivating from
BasePersonForm and aim to remove different unused fields.


My problem is the embeded forms are both named with the model name, which is
the same in this case (Person) . I though the first argument of the
embedForm method was use to prefix fields name in HTML rendering, but
apparently not.

Also, I tried adding in my sub-forms configure method the statement

$this-setOption('name_format', 'participant[%s]');

And $this-setOption('name_format', 'contact[%s]');

Nothing to do, I am stuck with field named contact[%s] and unable to
properly save forms data.
In my view file, I dumped the form vars and checked them, they seem ok for
widgets/validators and using the right classes (ParticipantPersonForm 
ContactPersonForm) But both have the default option for 'name_format'
whatever I tried.

Did I do something wrong in the implementation ?
Is there any other way to get this working ?

Best regards,
Benoit
-- 

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] Re: SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
2010/1/8 Benoit Montuelle benoit.montue...@gmail.com

 Hi list,

 I am working with symfony 1.4 to build a simple registration form, I got 2
 models for this part : Registration and Person, which works with standalone
 generated modules.

 The registration model has 2 one to one relations with person for recording
 2 contact information (respectively named Participant and Contact). I want
 to bring both contact informaiton in the same form, tied to registration
 form in registration module. Altough registration records cannot be modified
 directly in form, it has to be timestampped and update status once the form
 user has registered.

 I defined my form class like with this only method :
 class FrontEndRegistrationForm extends BaseRegistrationForm
 {
   public function configure()
   {
 //delete everything
  $this-setWidgets(array());
  $this-setValidatorSchema(new sfValidatorSchema());

  //adding 2 persons forms
  $participant = $this-getObject()-getParticipantPerson();
  $this-embedForm(participant, new
 ParticipantPersonForm($participant));

  $contact = $this-getObject()-getContactPerson();
  $this-embedForm(contact, new ContactPersonForm($contact));
   }
 }

 ParticipantPersonForm and ContactPersonForm are both derivating from
 BasePersonForm and aim to remove different unused fields.


 My problem is the embeded forms are both named with the model name, which
 is the same in this case (Person) . I though the first argument of the
 embedForm method was use to prefix fields name in HTML rendering, but
 apparently not.

 Also, I tried adding in my sub-forms configure method the statement

 $this-setOption('name_format', 'participant[%s]');

 And $this-setOption('name_format', 'contact[%s]');

 Nothing to do, I am stuck with field named contact[%s] and unable to
 properly save forms data.
 In my view file, I dumped the form vars and checked them, they seem ok for
 widgets/validators and using the right classes (ParticipantPersonForm 
 ContactPersonForm) But both have the default option for 'name_format'
 whatever I tried.

 Did I do something wrong in the implementation ?
 Is there any other way to get this working ?

 Best regards,
 Benoit



To be precise, I need my form to be edited by designers, so almost all HTML
accessible in the view file.
In my view I had
$participantForm = $form-getEmbeddedForm('participant');
and rendering fields labels and errrors with :
echo $participantForm['first_name']-renderLabel();
echo $participantForm['first_name']-renderError();
echo $participantForm['first_name'];

But I just tried a simple echo $form to render the whole form at once and
this time, fields name are the correct ones.

I think of a problem with configuration order, or name collision when using
$form-getEmbeddedForm method

thank you
-- 

You received this message because you are subscribed to the Google Groups "symfony users" group.

To post to this group, send email to symfony-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] Re: default value in form extracted from session

2010-01-08 Thread Mikael
Hello,

I'm may be almost done but I haven't found the way to preset or hide
the id_obj field when creating the Eth entry. It could be because I've
used the new template instead of creating a specific one but
shouldn't the value be preset with the correct entry by default ?

Here's more precisely what I have :

* 2 modules : pc (Pc inherits from Obj) and eth

* apps/backend/modules/pc/templates/_form_actions.php : added a button
to save and add an interface

* apps/backend/modules/pc/lib/pcGeneratorHelper.class.php : added a
method linkToSaveAndAddInterface

* apps/backend/modules/pc/actions/actions.class.php  : methode
processForm :

  if ($request-hasParameter('_save_and_add_interface'))
  {
$this-getUser()-setFlash('notice', $notice. ' You can add an
interface below.');
$this-redirect( 'eth/newForPc?id_obj='.$pc-getId());
  }

* apps/backend/modules/eth/actions/actions.class.php :

  public function executeNewForPc(sfWebRequest $request)
  {
$this-eth = new Eth();
$this-eth-id_obj = $request-getParameter('id_obj');
$this-form = new EthForm($this-eth);
$this-setTemplate('new');   // lazy : would prefer not write
a specific template - would be ok just by preselecting the right pc in
the dropdown list
  }

Any idea about what to do ?

Regards,

Mikael
-- 
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] Re: Offbeat: open source vs closed source technologies

2010-01-08 Thread Massimiliano Arione
I think the major point is: a closed product is depending on a
company. if that company decides to stop support, or do any else bad
decistion, you're finished.
With open source, you can at last do it yourself, but also (and
better) pay any other company or single developer to help you.
In a closed product, you can be stuck with bugs that company don't
want to fix (this is a real case with ms office), while in an open one
you can DIY (or get it done by someone else, same as above).

On 8 Gen, 11:27, Lee Bolding l...@leesbian.net wrote:
 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 
  athttp://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] Using useResultCache() in generatet Getters

2010-01-08 Thread ridcully
Hi,

i'm using Memcache as a Result Cache, when i'm using a custom Query
like Doctrine-getTable('test')-createQuery('q')-useResultCache
(true)- .

Everything works  fine.

But now i want to  use the ResultCache in normal Doctrine Getters
like:

$entity-getRelationObj();

But how can I do this without writing the Query for getRealtionObj()
new?
-- 
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] Re: default value in form extracted from session

2010-01-08 Thread Mikael

I must have made a mistake during my test : the right pc shows up by
default in the dropdown list when creating a new interface.

If I wanted to hide this dropdown list, would I have to create a
specific template ?

Regards,

Mikael

-- 
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-08 Thread Gabo
Thansk to all!!

The solution is copy the parent::save() before take the id, example:


parent::save();

//Insertamos en la tabla de traza de documentos
$sfUser = sfContext::getInstance();

$q = new document_trace();

$q-set('id_document',$this-getId());
$q-set('id_user', $sfUser-getUser()-getGuardUser());
$q-set('state', '0');
$q-set('created_at',date('Y-m-d h:i:s'));
$q-save();


2010/1/8 Alexandru-Emil Lupu gang.al...@gmail.com

 Pastebin your form. Obviously you do it wrong...
 I don't have an example atm.

 Alecs

 sent via htc magic

 On Jan 8, 2010 2:55 AM, Gabo gabopo...@gmail.com wrote:

 ERROR

 500 | Internal Server Error | Doctrine_Validator_Exception Validation
 failed in class document_trace

 1 field had validation error:

 * 1 validator failed on id_document (notnull)

 is a new record ($ this- getId ()), so it is empty.




 2010/1/7 Stéphane stephane.er...@gmail.com

$q-set('id_document', $author-getId()); - does it work ?   if
 you get error message, pleas...
 --

  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.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@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 Eno
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 :-)


-- 
A

-- 
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: default value in form extracted from session

2010-01-08 Thread Stéphane
No, you can use
$this-form-widgetSchema['pc_id']-setAttribute('style'='display: none');
I don't know if it is exactly that, but this is the idea.


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, Jan 8, 2010 at 2:22 PM, Mikael mikael.kermorg...@gmail.com wrote:


 I must have made a mistake during my test : the right pc shows up by
 default in the dropdown list when creating a new interface.

 If I wanted to hide this dropdown list, would I have to create a
 specific template ?

 Regards,

 Mikael


 --
 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.comsymfony-users%2bunsubscr...@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: default value in form extracted from session

2010-01-08 Thread Stéphane
Oops, there are hidden fields too, look this way.


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, Jan 8, 2010 at 2:45 PM, Stéphane stephane.er...@gmail.com wrote:

 No, you can use
 $this-form-widgetSchema['pc_id']-setAttribute('style'='display: none');
 I don't know if it is exactly that, but this is the idea.



 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


 On Fri, Jan 8, 2010 at 2:22 PM, Mikael mikael.kermorg...@gmail.comwrote:


 I must have made a mistake during my test : the right pc shows up by
 default in the dropdown list when creating a new interface.

 If I wanted to hide this dropdown list, would I have to create a
 specific template ?

 Regards,

 Mikael


 --
 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.comsymfony-users%2bunsubscr...@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: default value in form extracted from session

2010-01-08 Thread Nathan
$form-setWidget('pc_id', new sfWidgetFormInputHidden());



On Fri, Jan 8, 2010 at 2:45 PM, Stéphane stephane.er...@gmail.com wrote:

 Oops, there are hidden fields too, look this way.



 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


 On Fri, Jan 8, 2010 at 2:45 PM, Stéphane stephane.er...@gmail.com wrote:

 No, you can use
 $this-form-widgetSchema['pc_id']-setAttribute('style'='display: none');
 I don't know if it is exactly that, but this is the idea.



 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


 On Fri, Jan 8, 2010 at 2:22 PM, Mikael mikael.kermorg...@gmail.comwrote:


 I must have made a mistake during my test : the right pc shows up by
 default in the dropdown list when creating a new interface.

 If I wanted to hide this dropdown list, would I have to create a
 specific template ?

 Regards,

 Mikael


 --
 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.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

 --
nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs
-- 

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 Eno
On Fri, 8 Jan 2010, Parijat Kalia wrote:

 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.

Even with closed source products there's no guarantee that you'll get a 
stable product with all the bugs fixed. Even with paying customers, 
companies can choose not to fix bugs because the next version is around 
the corner.

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

True, but since you have access to the code, you can fix the software even 
if noone else will. Also a community around a product is not driven purely 
by the profit motive, and often this means stuff is designed 'right' 
rather than as fast as possible.

  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.

I would say the quality is on the community rather than the developer. A 
hundred eyeballs looking at code is more likely to find bugs than a 
smaller team.

 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.

There are many reasons to go with open source, and as you say, it 
often doesn't involve money. Some companies dont want to locked in or 
controlled by the development cycle of another company. In many cases the 
sheer size of the company would make a closed source solution 
prohibitively expensive. Google has thousands of servers and many data 
centers, so a Microsft-based solution probably would be very expensive. 
Google have their own engineering teams, they can support their own 
infrastructure quite easily.

Open source has a long history that predates a lot of closed source 
technology.




-- 


-- 
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] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, DEEPAK BHATIA wrote:

 I want to transition from Symfony 1.1 to Symfony 1.4.
 
 What are all the steps required ?

Well, the first step (as always) is to do some reading - there's upgrade 
guides for symfony:

http://www.symfony-project.org/installation/1_2/upgrade
http://www.symfony-project.org/tutorial/1_4/en/upgrade



-- 


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




[symfony-users] fixtures segmentation fault

2010-01-08 Thread lorenx
hi all,
have the couple schema/data that worked with symfony 1.2 but now, with
v1.4, i recieve:

 doctrine  Loading data fixtures from 
 /lan/http/symfony/projects/cms/data/fixtures
Segmentation fault

it seems a fixture problem cause
php symfony doctrine:build --db
works as expected.

this is my data.yml:

Menu:
  _menu_main:
label: home
module: main
children: []
  _menu_menu:
label: menu
module: menu
AclCredential: _aclcredential_all
children: []
  _menu_acl:
label: acl
children:
  _menu_aclgroup:
label: groups
module: aclgroup
AclCredential: _aclcredential_acl
children: []
  _menu_aclcredential:
label: credentials
module: aclcredential
AclCredential: _aclcredential_acl
children: []
  _menu_acluser:
label: users
module: acluser
AclCredential: _aclcredential_acl
children: []

AclGroup:
  _aclgroup_admin:
name: admin
description: who can do everything
  _aclgroup_editor:
name: editor
description: who can edit contents

AclUser:
  _acluser_lo:
username: username1
password: password1
email: ema...@domain.com
AclGroups: [_aclgroup_admin]
  _acluser_test:
username: username2
password: password2
email: ema...@domain.com
AclGroups: [_aclgroup_editor]

AclCredential:
  _aclcredential_all:
name: all
description: passepartout
AclGroups: [_aclgroup_admin]
  _aclcredential_acl:
name: acl
description: who can manage users
AclGroups: [_aclgroup_admin]
  _aclcredential_contents:
name: contents
description: who can manage contents
AclGroups: [_aclgroup_editor]

what has changed from 1.2 to 1.4?
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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Lee Bolding wrote:

 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)

OTOH, that salaried employee will often be doing more than just supporting 
a single product (espec. in smaller companies). There's also that age-old 
expression: if you want it done right, do it yourself :-)



-- 


-- 
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] Fixtures with Doctrine Inheritance

2010-01-08 Thread PieR.
Hi, there is my problem :
(http://pastie.textmate.org/private/egnbbqju5q5rsudslsipag)

Some resources (here field) are created by Members and affected to
Entities (here Member toto, but it could be a Group etc...).

-- schema.yml --
Resource:
  actAs:
Timestampable: ~
  columns:
member_id: { type: integer, notnull: true }
entity_id: { type: integer, notnull: true }
*
created_at: ~
updated_at: ~
  relations:
Member: { local: member_id, foreign: id, onDelete: CASCADE }
Entity:
  local: entity_id
  foreign: id
  onDelete: CASCADE

Entity:
  actAs:
Timestampable: ~
  columns:
id: { type: integer, primary: true, autoincrement: true }
*
created_at: ~
updated_at: ~
  relations:
Resource:
  type: many
  local: id
  foreign: entity_id

Member:
  inheritance:
type: concrete
extends:  Entity
  actAs:
Sluggable: { fields: [username], uniqueBy: [username] }
  columns:
username: { type: string(255), notnull: true, unique: true }
password: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
*

Field:
  inheritance:
type: concrete
extends:  Resource
  columns:
photo: { type: string(255) }
photo2: { type: string(255) }

-- fixtures.yml --
Member:
  toto:
username: toto
password: test
email: t...@toto.com
created_at: ~
updated_at: ~

Field:
  home:
Member: toto
Entity: toto
photo: /images/fixtures/field.jpg
photo2: /images/blank_300.jpg

- cmd data-load return: Invalid row key specified: entity toto,
referred to in field home
-- 
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 Sid Bachtiar
 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?

On Sat, Jan 9, 2010 at 3:20 AM, Lee Bolding l...@leesbian.net wrote:

 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.







-- 
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.
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] i am having problems with custom events

2010-01-08 Thread Alexandru-Emil Lupu
Hi!
i am trying to make some enhancements to my forms and my validators system.

I would like to register a config handler that would be called
validators.yml (done), wich i want to be able to load the validator settings
from an yml file.
The bad think is that i cannot find a proper event to attach my enhancer. I
have tried several, but none worked:

- form.post_configure (which is called when a form is constructed, i would
attach here, but it seems is not working )
- form.filter_values (which is called before binding. It would be an ideea
to attach here right before the binding )
- i have tried others, but none was the correct one 

This is what i have wrote until now, but i don't get the expected result.


in my frontend i have:

  public function initialize()
  {
$enhancer = new sfFormYamlEnhancer($this-getConfigCache());
$enhancer-connect($this-dispatcher);
$validators = new sfValidatorFormYamlEnhancer($this-getConfigCache());
$validators-connect($this-dispatcher);
  }


The enhancer is working correctly as is the sfAdventCalendar's example
the validators is not working properly, and this is the rest of the code:


class sfValidatorFormYamlEnhancer
{
  protected
$configCache = null;

  public function __construct(sfConfigCache $configCache)
  {
$this-configCache = $configCache;
$this-configCache-registerConfigHandler('config/validators.yml',
'sfValidatorFormYamlConfigHandler'
);
  }

  public function connect(sfEventDispatcher $dispatcher)
  {
$dispatcher-connect('form.post_configure',
  array($this, 'filterParameters'));
  }

  public function filterParameters(sfEvent $event, $parameters)
  {
print_r($event);
die();
// 
  }


The rest is not essential at this moment, as i do not get a print_r() output
on any of variables: $event / $parameters, even if i have cc-ed, and tried
by refresh or post ... but nothing worked... (i get the layout output
without any problems ... even i am on a page that contains a form ... )

All what i want to do is to initialize / configure the validators from an
yaml file ...
Any ideeas ?

Using symfony 1.4.2, Ubuntu 9.10, php 5.2.1, apache 2.1.12.

thanks
Alecs

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



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 Sid Bachtiar
And are you talking about your real experience or you're just hypothesizing?

On Sat, Jan 9, 2010 at 3:51 AM, Lee Bolding l...@leesbian.net wrote:

 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.







-- 
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.
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 Georg Gell
Hi,

Am 08.01.2010 09:46, schrieb Parijat Kalia:
 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.

Depends.
Why do you think there are more apache servers than iis servers on the
web? Because they are more reliable and cheaper, and they have a large
user base that will help you out for free.
Firefox vs IE? Judge for yourself.
PHP vs .Net? I think it will take a long time to get a bug fixed in both
of them, you will rather do a work around. Where in both products the
community will help. But with .Net you can also ask MS.

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

Hmm, IMO the costs are lower in some cases. Because all major OS
products are quite stable and have a very good QMS.
Take for example symfony: In his post
http://www.mail-archive.com/symfony-d...@googlegroups.com/msg05854.html
Fabien complains that nobody pays for symfony support.
[quote]
Keep in mind that symfony is an Open-Source project, so everybody can
contribute and scratch its itch. The core developers and all plugin
developers are all working for free. Of course, Sensio sponsors the
framework, of course it dedicates a lot of time and money to it, and of
it can even provide extended support for all versions for companies
willing to pay. And do you know how many companies, except Sensio
customers, signed up for extended support in the last 2 years? None!
Yep, that's right, not a single one.[/quote]

This shows that all developers using symfony think it is cheaper to ask
the community then to pay for support.
If you want to make a choice in a real case, try to calculate the TCO.

  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.

See above.

 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.  

I think most people decide for OS because
* they like the idea of OS
* it is cheaper
* if they really need additional functionality, they can add it (by
themselves or other developers) without having to wait for Godot
* the product has a big community to ask

Decisions to use CSs are based on
* they need/want professional support
* it is cheaper
* the product is developed for a company that uses CSs only

And then there is the middle, usage of open source with professional
support, like mysql offers.



 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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Georg Gell


Am 08.01.2010 15:20, schrieb 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)
 
The funny thing is that the Zend server consists mainly of OS software,
apache, mysql and php. This shows how to earn money with OS, package OS,
optimize it and sell it as a CS package with support.
-- 
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] Anyone used symfony with Flash Builder 4 Data Service?

2010-01-08 Thread xhe
Flash Builder 4 has a very exciting feature, data service, which can
connect to backend PHP class directly and call the method, render the
data consequently.

Now the problem comes to me, Symfony is hiding all the class at
backend etc. So can anyone if you ever used data service in Flash
Builder 4 can give me some opinion on how to use symfony with Flash
builder 4 Dataservice?

This is a video from Adobe.

http://labs.adobe.com/technologies/flashbuilder4/tutorials/
Select Part 1. the php code-
http://labs.adobe.com/technologies/flashbuilder4/tutorials/php1/

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.




Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Lee Bolding wrote:

 Spending 10's of thousands of dollars on a salaried employee to do that, 
 when Zend will already do it is crazy.

Not necessarily. In some cases, support contracts can cost more than an 
employee's salary. Depends on your infrastructure and requirements, so its 
not as simple as you seem to imply. Zend is one particular case - what if 
you're not using Zend? (I probably dont want to hear that Zend is the 
be-all end-all so dont bother).

 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?

Yes. That's why they have beepers and/or cellphones. And they ARE expected 
to be oncall. For network issues we have a NOC too, manned 24x7.




-- 


-- 
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] upload office 2007 document (.xlsx) by windows users.

2010-01-08 Thread sikk
Maybe someone already fix this before :


When a windows user try to upload an .xlsx file it seem that the
mime_type goes like this :


firefox : application/octet-stream
explorer : application/x-zip-compressed


Not easy to save those file, then let the user download them with the
good header.

Someone had this issue before and worked on something to fix this ?


thanks guys.

-- 
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] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread g0d br
That works Daniel.

Thank You

On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse
annismcken...@googlemail.comwrote:

 Set the validator for this specific field like this:

 $this-validatorSchema['imagem'] = new sfValidatorFile(array(
 'required' = $this-isNew(),
 'path' = ...
 ...
 ));

 So the field is only required when it's a new object. Is that what you're
 looking for?

 Cheers, Daniel

 On Jan 7, 2010, at 8:52 PM, g0d br wrote:

 Hi,

 I still having this problem.

 Im using sfWidgetFormInputFileEditable for a backend form and when i edit
 the record with the image i have to choose the image file again otherwise i
 get required error for the file.

 the problem is that i don wanna change the file but every time i have to
 choose one file to overwrite the old one.

 Thank you for any help.

 Celso

 On Fri, Dec 11, 2009 at 12:27 PM, g0d br g0d...@gmail.com wrote:

 i get the error when i try to edit an record.

 create and delete works fine but if i try to edit an record and dont
 select any file when i hit save the required error appears.

 Thanks

 Celso


 On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu 
 gang.al...@gmail.com wrote:

 When you get that required error? Better what are you trying to achieve?

 sent via htc magic

 On Dec 11, 2009 1:11 AM, g0d br g0d...@gmail.com wrote:

 Hi,

 I have an schema like this:

 banner:
 id: ~
 ordem: { type: integer, required: true }
 imagem: { type: varchar(255), required: true }
 link: { type: varchar(255), required: false }

 When i edit an record in admin module i get an error Required for imagem
 field.

 Thats the code in BannerForm.class.php

 parent::configure();

 $this-widgetSchema['imagem'] = new
 sfWidgetFormInputFileEditable(array(
   'label' = 'Imagem 630x288',
   'file_src'  = '/uploads/banner/'.$this-getObject()-getImagem(),
   'is_image'  = true,
   'edit_mode' = !$this-isNew(),
   'delete_label' = 'Remover imagem',
   'template'  = 'div%file%br /%input%br /%delete%
 %delete_label%/div',
 ));
 /*
 $this-widgetSchema['imagem'] = new sfWidgetFormInputFile(array(
   'label' = 'Imagem 630x288',
 ));
 */

 $this-validatorSchema['imagem'] = new sfValidatorFile(array(
   'required'   = true,
   'path'   = sfConfig::get('sf_upload_dir').'/banner',
   'mime_types' = 'web_images',
 ));

 $this-validatorSchema['imagem_delete'] = new sfValidatorBoolean();

 What an my doing wrong here? this code i get from symfony docs.

 Thank You


 Celso

 --
 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.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@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] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread DEEPAK BHATIA
Thanks to all, ;-)

On Fri, Jan 8, 2010 at 7:47 PM, Eno symb...@gmail.com wrote:

 On Fri, 8 Jan 2010, DEEPAK BHATIA wrote:

  I want to transition from Symfony 1.1 to Symfony 1.4.
 
  What are all the steps required ?

 Well, the first step (as always) is to do some reading - there's upgrade
 guides for symfony:

 http://www.symfony-project.org/installation/1_2/upgrade
 http://www.symfony-project.org/tutorial/1_4/en/upgrade



 --



 --
 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.comsymfony-users%2bunsubscr...@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 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.




[symfony-users] Batch File

2010-01-08 Thread Augusto Flavio
Hi everybody,



i'm looking for the best way to create a automatic script that runs
every day in the same hour. The script needs download several PDF's
files from a specific website and save it in a specific folder. Have
some implementation in symfony that helps do it or  need i create a
simple php script and set up it on cron ?



thanks



Augusto Morais
-- 
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] Error lectura de fechas en base de datos LATIN1 con formato d/m/Y

2010-01-08 Thread C
ERROR:

Internally stored date/time/timestamp value could not be converted to
DateTime: '20/01/2010' [wrapped: DateTime::__construct() [a
href='datetime.--construct'datetime.--construct/a]: Failed to parse
time string (20/01/2010) at position 0 (2): Unexpected character]
stack trace

* at ()
  in SF_ROOT_DIR/lib/model/om/BaseSolicitudes.php line 346 ...
 343. try {
 344. $dt = new DateTime($this-fecha);
 345. } catch (Exception $x) {
 346. throw new PropelException(Internally
stored date/time/timestamp value could not be converted to DateTime:
 . var_export($this-fecha, true), $x);

*
Hello,

I get this error when I try to get any date of a database with
encoding LATIN1 and date format d/m/Y.
I think the problem is the character / in database format.

How can I do?

Thank you.
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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] sfRouteDoctrine - check on virtual attributes

2010-01-08 Thread cristian
Hi,
I am quite a newbe of symfony, and I have begun developing my project
reading the step-by-step jobeet tutorial.
The project environment is the following: Symfony 1.4.1 with Doctine.
I have a problem with Routing, with this particular set of code:
#routing.yml

show-appartamento:
  url:   /:tipoalloggio/:provincia_slug/:id
  class:   sfDoctrineRoute
  options: { model: Appartamento, type: object }
  param:   { module: appartamento, action: show }
  requirements:
 id: \d+
 sf_method: [get]

where tipoalloggio and id are DB field (or attributes of class
Appartamento), whereas provincia_slug is a virtual attribute, i.e. a
new field built as explained in the tutorial in order to sluggify
the field provincia from special characters.

The problem is that if I write in the browser an URL that has a typo
in the fields 'id' or 'tipoalloggio', then symfony returns an error,
whereas if I make a typo in the virtual field
'provincia_slug' (defined virtual because it is not an original DB
parameter), symfony does not display any error message and I get the
results as if only 'id' and 'tipoalloggio' where considered.

Example :http://myproject/frontend_dev.php/appartamento/catania/1
Here tipoalloggio -- appartamento
id -- 1
provincia_slug-- catania
are all correct values.

If I write an url like this 
http://myproject/frontend_dev.php/appartamento/catania/234
(non existing id)
 or
   
http://myproject/frontend_dev.php/appartaento/catania/1
(non existing tipoalloggio)
   then I receive an error, but If I write:
   
http://myproject/frontend_dev.php/appartamento/cataniAA/1
(non existing provincia_slug), then no error is displayed and symfony
outputs the exact query result only considering the fields id and
tipoalloggio.
I would like to avoid it and I would expect that every field in the
url were parsed by symfony.

Could yuo please help me?
Thank you

Cristian
-- 
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] Batch File

2010-01-08 Thread Gábor Fási
If all you need is download and save, create a simple bash script with
a number of wget calls, and schedule it via cron - absolutely no need
for php.

On Fri, Jan 8, 2010 at 18:31, Augusto Flavio afla...@gmail.com wrote:
 Hi everybody,



 i'm looking for the best way to create a automatic script that runs
 every day in the same hour. The script needs download several PDF's
 files from a specific website and save it in a specific folder. Have
 some implementation in symfony that helps do it or  need i create a
 simple php script and set up it on cron ?



 thanks



 Augusto Morais

 --
 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] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
You're welcome and I'm glad, that is does! :)

Cheers, Daniel

On Jan 8, 2010, at 5:42 PM, g0d br wrote:

 That works Daniel.
 
 Thank You
 
 On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse annismcken...@googlemail.com 
 wrote:
 Set the validator for this specific field like this:
 
   $this-validatorSchema['imagem'] = new sfValidatorFile(array(
   'required' = $this-isNew(),
   'path' = ...
   ...
   ));
 
 So the field is only required when it's a new object. Is that what you're 
 looking for?
 
 Cheers, Daniel
 
 On Jan 7, 2010, at 8:52 PM, g0d br wrote:
 
 Hi,
 
 I still having this problem.
 
 Im using sfWidgetFormInputFileEditable for a backend form and when i edit 
 the record with the image i have to choose the image file again otherwise i 
 get required error for the file.
 
 the problem is that i don wanna change the file but every time i have to 
 choose one file to overwrite the old one.
 
 Thank you for any help.
 
 Celso
 
 On Fri, Dec 11, 2009 at 12:27 PM, g0d br g0d...@gmail.com wrote:
 i get the error when i try to edit an record.
 
 create and delete works fine but if i try to edit an record and dont select 
 any file when i hit save the required error appears.
 
 Thanks
 
 Celso
 
 
 On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu gang.al...@gmail.com 
 wrote:
 When you get that required error? Better what are you trying to achieve?
 
 sent via htc magic
 
 
 On Dec 11, 2009 1:11 AM, g0d br g0d...@gmail.com wrote:
 
 Hi,
 
 I have an schema like this:
 
 banner:
 id: ~
 ordem: { type: integer, required: true }
 imagem: { type: varchar(255), required: true }
 link: { type: varchar(255), required: false }
 
 When i edit an record in admin module i get an error Required for imagem 
 field.
 
 Thats the code in BannerForm.class.php
 
 parent::configure();
 
 $this-widgetSchema['imagem'] = new sfWidgetFormInputFileEditable(array(
   'label' = 'Imagem 630x288',
   'file_src'  = '/uploads/banner/'.$this-getObject()-getImagem(),
   'is_image'  = true,
   'edit_mode' = !$this-isNew(),
   'delete_label' = 'Remover imagem',
   'template'  = 'div%file%br /%input%br /%delete% 
 %delete_label%/div',
 ));
 /*
 $this-widgetSchema['imagem'] = new sfWidgetFormInputFile(array(
   'label' = 'Imagem 630x288',
 ));
 */
 
 $this-validatorSchema['imagem'] = new sfValidatorFile(array(
   'required'   = true,
   'path'   = sfConfig::get('sf_upload_dir').'/banner',
   'mime_types' = 'web_images',
 ));
 
 $this-validatorSchema['imagem_delete'] = new sfValidatorBoolean();
 
 What an my doing wrong here? this code i get from symfony docs.
 
 Thank You
 
 
 Celso
 
 --
 
 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.
 
 
 -- 
 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] Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
Hi guys, I am developing with Symfony 1.4 and have generated my
backend, however there are some problems I have ran into.

Is there anyway to customize the way fields are displayed in the list
view? E.g. say if I have an image and I wnat to customize how it looks
in a list view.

Also how do I initially set values? I have a department based
eCommerce system I am making and in the order status dropdown I
initially want it to show 'placed' when they go to the New Order page.

Also is there any way to limit what fields are being viewed by users
based on their department (credentials)?

Lastly, is there any way for me to display and combine related
database objects when people edit a field? For instance I have a
customer id attached to a customer, and would like them to view it in
the list view along with that information.

I have already read the book and looked through the documentation
however I cannot find solutions to these issues. If there are ways to
do these in YAML I would prefer but I can also do them in PHP code.

I am willing to pay money for an advisor to advise me if necessary
when I need help as well.

Thanks,
Darren
-- 
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] Extensively customizing admin generated backends?

2010-01-08 Thread Stéphane
Google for symfony generator chapter 14 there are about all things put
here, not in detail.
For details and help I recommend IRC network.

-In the list view you'll have to create template _myimage.php, modify your
generator.yml list: fields: [ _myimage ]
then in the _myimage.php you'll have access to the domain object (if you
object model is named myObjectModel then you'll have a var named
$myObjectModel and can access properties naturally like
$myObjectModel['myimage'], then you can put a img src=.../ to display
the image for example).

-You can init form vars in many places, you can set defaults in you
schema.yml.
A good place might be the action where the form is instanciated and where
the object is retrieved from route

-Yes you can, in the generator.yml config: fields: myimage: credentials:
[myimage/read/] for example, then, users will need the myimage/read/
credential to be able to see the field.

-look at the sfForm::embed() method.

Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Fri, Jan 8, 2010 at 8:04 PM, Darren884 darren...@gmail.com wrote:

 Hi guys, I am developing with Symfony 1.4 and have generated my
 backend, however there are some problems I have ran into.

 Is there anyway to customize the way fields are displayed in the list
 view? E.g. say if I have an image and I wnat to customize how it looks
 in a list view.

 Also how do I initially set values? I have a department based
 eCommerce system I am making and in the order status dropdown I
 initially want it to show 'placed' when they go to the New Order page.

 Also is there any way to limit what fields are being viewed by users
 based on their department (credentials)?

 Lastly, is there any way for me to display and combine related
 database objects when people edit a field? For instance I have a
 customer id attached to a customer, and would like them to view it in
 the list view along with that information.

 I have already read the book and looked through the documentation
 however I cannot find solutions to these issues. If there are ways to
 do these in YAML I would prefer but I can also do them in PHP code.

 I am willing to pay money for an advisor to advise me if necessary
 when I need help as well.

 Thanks,
 Darren

 --
 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.comsymfony-users%2bunsubscr...@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] Re: Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
Thank you so much Stéphane for the quick reply I will be sure to look
for what you suggested.

Thanks,
Darren

On Jan 8, 11:17 am, Stéphane stephane.er...@gmail.com wrote:
 Google for symfony generator chapter 14 there are about all things put
 here, not in detail.
 For details and help I recommend IRC network.

 -In the list view you'll have to create template _myimage.php, modify your
 generator.yml list: fields: [ _myimage ]
 then in the _myimage.php you'll have access to the domain object (if you
 object model is named myObjectModel then you'll have a var named
 $myObjectModel and can access properties naturally like
 $myObjectModel['myimage'], then you can put a img src=.../ to display
 the image for example).

 -You can init form vars in many places, you can set defaults in you
 schema.yml.
 A good place might be the action where the form is instanciated and where
 the object is retrieved from route

 -Yes you can, in the generator.yml config: fields: myimage: credentials:
 [myimage/read/] for example, then, users will need the myimage/read/
 credential to be able to see the field.

 -look at the sfForm::embed() method.

 Cheers,

 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!

 On Fri, Jan 8, 2010 at 8:04 PM, Darren884 darren...@gmail.com wrote:
  Hi guys, I am developing with Symfony 1.4 and have generated my
  backend, however there are some problems I have ran into.

  Is there anyway to customize the way fields are displayed in the list
  view? E.g. say if I have an image and I wnat to customize how it looks
  in a list view.

  Also how do I initially set values? I have a department based
  eCommerce system I am making and in the order status dropdown I
  initially want it to show 'placed' when they go to the New Order page.

  Also is there any way to limit what fields are being viewed by users
  based on their department (credentials)?

  Lastly, is there any way for me to display and combine related
  database objects when people edit a field? For instance I have a
  customer id attached to a customer, and would like them to view it in
  the list view along with that information.

  I have already read the book and looked through the documentation
  however I cannot find solutions to these issues. If there are ways to
  do these in YAML I would prefer but I can also do them in PHP code.

  I am willing to pay money for an advisor to advise me if necessary
  when I need help as well.

  Thanks,
  Darren

  --
  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.comsymfony-users%2bunsubscr...@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: Helpers and Widgets??

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, wueb wrote:

 The problem are the timelines. :(

You probably spend the same amount of time posting to this list and 
checking for replies - those 30 mins could easily be spent reading.




-- 


-- 
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] Batch File

2010-01-08 Thread Augusto Flavio
I made a Task using the sfBaseTask class. Worked fine. Is more better
than wget because i will use it in several projects and the management
of it is more easy instead bash script with many wget. All in a
symfony project. Maintainability is good for every project.



Bye.



Augusto Morais
-- 
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 Parijat Kalia
Wow, that's a lot of interesting insight. 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. I
think that helps open source win vs closed source. Although I do believe it
is an extreme case. Does anyone have more insights to offer?

On Fri, Jan 8, 2010 at 10:23 PM, Lee Bolding l...@leesbian.net wrote:


 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.comsymfony-users%2bunsubscr...@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 data load

2010-01-08 Thread Gabo
Help!!

i used

c:\project\symfony doctrine:data-load

the error:

 The default context does not exist.???

Symfony 1.2.9 , Doctrine Plugin, sfDoctrineGuard.
-- 

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] Re: From link_to to m_link_to

2010-01-08 Thread rekarnar
try and check the head of your document and see if it is attempting to
load the css with an incorrect path

On Jan 7, 10:31 am, tirengarfio tirengar...@gmail.com wrote:
 Hi Gareth, im using sfModalPlugin.

 Yes its true, the div id names have changed. And also it's not loading
 a file called cropper.css that i'm including (?php use_stylesheet
 ('cropper.css') ?
 ).

 Why? What is your recomendation?

 Javi

 On Jan 6, 9:32 am, Gareth McCumskey gmccums...@gmail.com wrote:

  If you are using the Modalbox Javascript I think you are using (we used it 
  for a bit) bear in mind that it does rewrite the div id names for some of 
  the div's when it loads content.

  - Original Message -
  From: tirengarfio tirengar...@gmail.com
  To: symfony users symfony-users@googlegroups.com
  Sent: Tuesday, January 5, 2010 2:29:19 PM GMT +02:00 Harare / Pretoria
  Subject: [symfony-users] From link_to to m_link_to

  HI,

  I have a template with an image cropper like this:

 http://londatiga.net/tutorials/imagecrop/example.html

  Now i want to show this template in a modal window, so i just changed
  the helper to this template from link_to to m_link_to.

  After that, the modal window appears but the image cropper seams not
  working (if i placed the cursor over the image it doesn't change to a
  cross).

  Any help?

  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 
  athttp://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] Inherited Forms and setupInheritance()

2010-01-08 Thread webPragmatist
Hello,

I am trying to determine how to use symfony forms properly
withinheritance. I am using column aggregation.

Currently ALL of the columns show up no matter which Form object I am
using

I'd like only for widgets corresponding to the BaseObject +
InherittedObject... This is how i think it should behave by default
really.

Whats the proper way to do this? Am I supposed to utilize
setupInheritance() method? How can I get only the widgets for the
BaseObject + InherittedObject?

Right now I can think to use useFields() method... But if I add
something to the BaseObject it won't be automatically inherited. So
maybe the next best thing is to somehow just get the fields that are
related to the BaseObject?
-- 
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.