[symfony-users] how to I override the core symfony code?

2009-03-08 Thread Lawrence Krubner


I'd like to learn more about sfForm and sfFormPropel. For me, that
means putting print_r() in the code in various places, and changing
the code, breaking things to see how it all fits together. I'd like to
do this for one test project, without endangering the other projects
that are  on the same server.

I just copied sfForm to the lib directory of my dev project, and I
changed the code there, but none of my changes appeared on screen. I
was hoping that the same class, copied to my lib directory, would
override the class declared in the core symfony code. I suppose it is
not so simple.

What do I need to do to override that core code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how to I override the core symfony code?

2009-03-08 Thread Sid Bachtiar

Freeze the project (symfony freeze) which mean Symfony library will be
copied over to your project's folder and that will be used instead of
the system wide one.

On Sun, Mar 8, 2009 at 9:24 PM, Lawrence Krubner lkrub...@geocities.com wrote:


 I'd like to learn more about sfForm and sfFormPropel. For me, that
 means putting print_r() in the code in various places, and changing
 the code, breaking things to see how it all fits together. I'd like to
 do this for one test project, without endangering the other projects
 that are  on the same server.

 I just copied sfForm to the lib directory of my dev project, and I
 changed the code there, but none of my changes appeared on screen. I
 was hoping that the same class, copied to my lib directory, would
 override the class declared in the core symfony code. I suppose it is
 not so simple.

 What do I need to do to override that core code?
 




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

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



[symfony-users] Re: select FIELD from TABLE with propel

2009-03-08 Thread torso

Query works, thanks.

But now I get error when I am trying to use it on the object helper:
Call to a member function getPrimaryKey() on a non-object in
ObjectHelper.php on line 164

On Mar 8, 5:22 am, alvaro harryjek...@gmail.com wrote:
 $c = new Criteria();
 $c-clearSelectColumns();
 $c-addSelectColumn(MyPeer::MY_COLUMN):

 $rs = MyPeer::doSelectRS($c);
 On Mar 8, 2009, at 3:29 AM, torso wrote:



  Hi

  I how I do this query with propel, not raw sql query, but with
  cirteria. Select FLASH from FILES
  I need to get select options with flash file name.

  I have tried this:

  add to FilePeer with function name getSortedFlash:

  $c = new Criteria();
  $c-add($c-getColumnName(FilePeer::FLASH));
  $rs =File::DoSelect($c);

  this is for template:
  echo object_select_tag($file, 'getFileId',
  'peer_method=getSortedFlash')

  Thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: select FIELD from TABLE with propel

2009-03-08 Thread Sid Bachtiar

 But now I get error when I am trying to use it on the object helper:
 Call to a member function getPrimaryKey() on a non-object in
 ObjectHelper.php on line 164

What is the code you use?

On Sun, Mar 8, 2009 at 9:55 PM, torso petteri.torsso...@gmail.com wrote:

 Query works, thanks.

 But now I get error when I am trying to use it on the object helper:
 Call to a member function getPrimaryKey() on a non-object in
 ObjectHelper.php on line 164

 On Mar 8, 5:22 am, alvaro harryjek...@gmail.com wrote:
 $c = new Criteria();
 $c-clearSelectColumns();
 $c-addSelectColumn(MyPeer::MY_COLUMN):

 $rs = MyPeer::doSelectRS($c);
 On Mar 8, 2009, at 3:29 AM, torso wrote:



  Hi

  I how I do this query with propel, not raw sql query, but with
  cirteria. Select FLASH from FILES
  I need to get select options with flash file name.

  I have tried this:

  add to FilePeer with function name getSortedFlash:

  $c = new Criteria();
  $c-add($c-getColumnName(FilePeer::FLASH));
  $rs =File::DoSelect($c);

  this is for template:
  echo object_select_tag($file, 'getFileId',
  'peer_method=getSortedFlash')

  Thanks for your help
 




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

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



[symfony-users] How to include partials from another module in the Admin Generator

2009-03-08 Thread ssaboum

Hi,
i wanted to know how to include partials from another module,
i perfectly understand how to do it when the partial is in the module
of the admin gen,
but as the command include_partial can take a module into account, how
can we do that with Admin Generator (generator.yml file) ?

Should i change the editSuccess generated file ?

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



[symfony-users] Re: select FIELD from TABLE with propel

2009-03-08 Thread torso

this is in the template which makes that error:
echo object_select_tag($file, 'getFileId',
'peer_method=getSortedFlash')

and this is the query for getSortedFlash:
$c = new Criteria();
$c-clearSelectColumns();
$c-addSelectColumn(FILE::FLASH):
$rs = FILEPeer::doSelectRS($c);


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



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Crafty_Shadow

Gareth, you didn't mention what version of symfony you were using,
also what ORM (if any).
The best course of optimization will depend on those. Also, as already
mentioned, caching is your best friend.

On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
 Well, consider a single database table that looks something like this:

 From_address
 to_address (possibly multiple addresses comma-seperated)
 headers
 spam_report
 subject

 And we would have millions of those records in the database. Repeated
 entries, especially on to_address, means the data is hugely redundant. By
 normalising we are turning a text search across millions of records with
 redundant repeated data into a text search over a unique list, then an
 integer search over primary key (which of course is indexed).

 On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner 
 lkrub...@geocities.comwrote:



  On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
   We had a speed increase because we had a lot of text searches in the old
   system, all going through text fields where the same values were repeated
   over and over. Its therefore a lot faster to search a much smaller table,
   where the text fields are unique, and find the value once, then use an ID
   comparison, being much faster to match integers than text.

  In sounds like you got a speed boost from doing intelligent indexing.
  What you are describing sounds more like indexing than normalization,
  at least to me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-08 Thread Lee Bolding


On 8 Mar 2009, at 04:52, Lawrence Krubner wrote:

 I didn't want to hard code the path, so I moved it to view.yml:

 all:
  javascripts:
- /bocahoops/web/js/jquery/jquery-1.3.1.js

This really isn't rocket science.

in /apps/app/config/view.yml

all:
   javascripts: [jquery/jquery-1.3.1.js]

The path is relative to you web/js dir

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



[symfony-users] Re: How to include partials from another module in the Admin Generator

2009-03-08 Thread Dheeraj Kumar Aggarwal
Hi

u can directly include partial from another module like this

e.g. Module Name: Hello
  partial name: message


then include_partial(Hello/message,array(any arguments));

On Sun, Mar 8, 2009 at 2:46 PM, ssaboum ssab...@gmail.com wrote:


 Hi,
 i wanted to know how to include partials from another module,
 i perfectly understand how to do it when the partial is in the module
 of the admin gen,
 but as the command include_partial can take a module into account, how
 can we do that with Admin Generator (generator.yml file) ?

 Should i change the editSuccess generated file ?

 Thank you
 



-- 
Regards,
Dheeraj

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



[symfony-users] Re: How to include partials from another module in the Admin Generator

2009-03-08 Thread naholyr

You could try to add _module/partial in the display list.
If this doesn't work (I didn't try), then yes you'll have to edit a
template to add the call to include_partial.
Note that you can overwrite _edit_header.php or _list_header.php,
which are meant to be overwritten for your needs as they're empty by
default.

On 8 mar, 11:54, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com
wrote:
 Hi

 u can directly include partial from another module like this

 e.g. Module Name: Hello
       partial name: message

 then include_partial(Hello/message,array(any arguments));

 On Sun, Mar 8, 2009 at 2:46 PM, ssaboum ssab...@gmail.com wrote:

  Hi,
  i wanted to know how to include partials from another module,
  i perfectly understand how to do it when the partial is in the module
  of the admin gen,
  but as the command include_partial can take a module into account, how
  can we do that with Admin Generator (generator.yml file) ?

  Should i change the editSuccess generated file ?

  Thank you

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



[symfony-users] Re: how to I override the core symfony code?

2009-03-08 Thread Leon van der Ree

Instead of using print_r/var_dump which can be usefull in many
situations, it probably is wiser to learn to use a debugger (xdebug).
With Eclipse you can set breakpoints in your code. Wben you request a
page in your application, eclipse will stop execution at the
breakpoints to allow you to inspect all variables, step in/out/over
and allow to execute methods in the watch-view during the break.

If you then want to modigy behaviour of sfForms you can simply extend
the sfForm class and instantiate that object instead.

On Mar 8, 9:26 am, Sid Bachtiar sid.bacht...@gmail.com wrote:
 Freeze the project (symfony freeze) which mean Symfony library will be
 copied over to your project's folder and that will be used instead of
 the system wide one.



 On Sun, Mar 8, 2009 at 9:24 PM, Lawrence Krubner lkrub...@geocities.com 
 wrote:

  I'd like to learn more about sfForm and sfFormPropel. For me, that
  means putting print_r() in the code in various places, and changing
  the code, breaking things to see how it all fits together. I'd like to
  do this for one test project, without endangering the other projects
  that are  on the same server.

  I just copied sfForm to the lib directory of my dev project, and I
  changed the code there, but none of my changes appeared on screen. I
  was hoping that the same class, copied to my lib directory, would
  override the class declared in the core symfony code. I suppose it is
  not so simple.

  What do I need to do to override that core code?

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: select FIELD from TABLE with propel

2009-03-08 Thread alvaro

This code won't return a propel populated object.

It will return a propel resultset.

Read the manual or the Resultset interface inside propel, or this  
article may help:

http://www.thenetcircle.com/blog/2009/02/10/propel-query-optimization-tips/

Cheers,

Alvaro


On Mar 8, 2009, at 5:31 PM, torso wrote:


 this is in the template which makes that error:
 echo object_select_tag($file, 'getFileId',
 'peer_method=getSortedFlash')

 and this is the query for getSortedFlash:
 $c = new Criteria();
 $c-clearSelectColumns();
 $c-addSelectColumn(FILE::FLASH):
 $rs = FILEPeer::doSelectRS($c);


 


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



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Daniel

It would be handy to have a low level performance test to perform on
the server setup.

There are several bottlenecks that can be identified. That's all from
kernel issues, apache configurations (as discussed), mysql
configurations, symfony version, symfony configurations, application
code, ui code, internet connection speed, web browser speed and so on.

It would be interesting to achive some kind of enviroment test for the
setup. I believe it would be quite hard to test all the mentioned
parts in once. But what could be tested is the setup of apache, mysql
and symfony as the platform from which almost all symfonians start
their development. To have these parts tested trough a performance
testing symfony application we could all achieve a sandbox that
doesn't have any unnecessary bottlenecks. The rest of the total
experience is more up to the developer due to the numerous ways to
work with Symfony.

Any ideas?


/Daniel


On Mar 8, 11:27 am, Crafty_Shadow vankat...@gmail.com wrote:
 Gareth, you didn't mention what version of symfony you were using,
 also what ORM (if any).
 The best course of optimization will depend on those. Also, as already
 mentioned, caching is your best friend.

 On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:

  Well, consider a single database table that looks something like this:

  From_address
  to_address (possibly multiple addresses comma-seperated)
  headers
  spam_report
  subject

  And we would have millions of those records in the database. Repeated
  entries, especially on to_address, means the data is hugely redundant. By
  normalising we are turning a text search across millions of records with
  redundant repeated data into a text search over a unique list, then an
  integer search over primary key (which of course is indexed).

  On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner 
  lkrub...@geocities.comwrote:

   On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
We had a speed increase because we had a lot of text searches in the old
system, all going through text fields where the same values were 
repeated
over and over. Its therefore a lot faster to search a much smaller 
table,
where the text fields are unique, and find the value once, then use an 
ID
comparison, being much faster to match integers than text.

   In sounds like you got a speed boost from doing intelligent indexing.
   What you are describing sounds more like indexing than normalization,
   at least to me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Gareth McCumskey
We have put numerous caching techniques into effect, from Cache-Expires
headers to compression of static files like js and html files. Currently we
use symfony 1.1 and Propel as the ORM. We have identified the bottleneck
generally as being the application processing after the db queries have run
to extract the data.

The entire point of my question was to get some info on general tips and
tricks we can try out to see if anything helps or if perhaps we have missed
any obvious issues that may actually be the cause of the slow performance we
are getting. As it is I have gotten quite a few and look forward to getting
into the office tomorrow to try them out. Anymore is greatly appreciated.

Of course I am looking through the code to see if there is anyway we can
streamline it on that end, but every little bit helps.

Gareth

On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow vankat...@gmail.com wrote:


 Gareth, you didn't mention what version of symfony you were using,
 also what ORM (if any).
 The best course of optimization will depend on those. Also, as already
 mentioned, caching is your best friend.

 On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
  Well, consider a single database table that looks something like this:
 
  From_address
  to_address (possibly multiple addresses comma-seperated)
  headers
  spam_report
  subject
 
  And we would have millions of those records in the database. Repeated
  entries, especially on to_address, means the data is hugely redundant. By
  normalising we are turning a text search across millions of records with
  redundant repeated data into a text search over a unique list, then an
  integer search over primary key (which of course is indexed).
 
  On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner lkrub...@geocities.com
 wrote:
 
 
 
   On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
We had a speed increase because we had a lot of text searches in the
 old
system, all going through text fields where the same values were
 repeated
over and over. Its therefore a lot faster to search a much smaller
 table,
where the text fields are unique, and find the value once, then use
 an ID
comparison, being much faster to match integers than text.
 
   In sounds like you got a speed boost from doing intelligent indexing.
   What you are describing sounds more like indexing than normalization,
   at least to me.
 


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



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Gareth McCumskey
We have do have a comparison benchmark. The older system we hope to replace
is running on the same box in parallel. So we have essentially elikinated
any factors that could bias the old system byt running the two in parallel
on the same box

On Sun, Mar 8, 2009 at 3:06 PM, Daniel daniel.kol...@gmail.com wrote:


 It would be handy to have a low level performance test to perform on
 the server setup.

 There are several bottlenecks that can be identified. That's all from
 kernel issues, apache configurations (as discussed), mysql
 configurations, symfony version, symfony configurations, application
 code, ui code, internet connection speed, web browser speed and so on.

 It would be interesting to achive some kind of enviroment test for the
 setup. I believe it would be quite hard to test all the mentioned
 parts in once. But what could be tested is the setup of apache, mysql
 and symfony as the platform from which almost all symfonians start
 their development. To have these parts tested trough a performance
 testing symfony application we could all achieve a sandbox that
 doesn't have any unnecessary bottlenecks. The rest of the total
 experience is more up to the developer due to the numerous ways to
 work with Symfony.

 Any ideas?


 /Daniel


 On Mar 8, 11:27 am, Crafty_Shadow vankat...@gmail.com wrote:
  Gareth, you didn't mention what version of symfony you were using,
  also what ORM (if any).
  The best course of optimization will depend on those. Also, as already
  mentioned, caching is your best friend.
 
  On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
 
   Well, consider a single database table that looks something like this:
 
   From_address
   to_address (possibly multiple addresses comma-seperated)
   headers
   spam_report
   subject
 
   And we would have millions of those records in the database. Repeated
   entries, especially on to_address, means the data is hugely redundant.
 By
   normalising we are turning a text search across millions of records
 with
   redundant repeated data into a text search over a unique list, then an
   integer search over primary key (which of course is indexed).
 
   On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner 
 lkrub...@geocities.comwrote:
 
On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
 We had a speed increase because we had a lot of text searches in
 the old
 system, all going through text fields where the same values were
 repeated
 over and over. Its therefore a lot faster to search a much smaller
 table,
 where the text fields are unique, and find the value once, then use
 an ID
 comparison, being much faster to match integers than text.
 
In sounds like you got a speed boost from doing intelligent indexing.
What you are describing sounds more like indexing than normalization,
at least to me.
 


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



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread alvaro
At the company I developed a symfony plugin to optimize the Propel  
queries and also the Propel hydrate method, improving even 5 times  
query speed and also memory usage.

The plugins supports joins and thanks to PHP features the plugin  
returns Propel objects populated with custom AS columns.

We are thinking on release it on the following weeks so stay tuned :)

Regards,

Alvaro


On Mar 8, 2009, at 10:20 PM, Gareth McCumskey wrote:

 We have put numerous caching techniques into effect, from Cache- 
 Expires headers to compression of static files like js and html  
 files. Currently we use symfony 1.1 and Propel as the ORM. We have  
 identified the bottleneck generally as being the application  
 processing after the db queries have run to extract the data.

 The entire point of my question was to get some info on general tips  
 and tricks we can try out to see if anything helps or if perhaps we  
 have missed any obvious issues that may actually be the cause of the  
 slow performance we are getting. As it is I have gotten quite a few  
 and look forward to getting into the office tomorrow to try them  
 out. Anymore is greatly appreciated.

 Of course I am looking through the code to see if there is anyway we  
 can streamline it on that end, but every little bit helps.

 Gareth

 On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow vankat...@gmail.com  
 wrote:

 Gareth, you didn't mention what version of symfony you were using,
 also what ORM (if any).
 The best course of optimization will depend on those. Also, as already
 mentioned, caching is your best friend.

 On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
  Well, consider a single database table that looks something like  
 this:
 
  From_address
  to_address (possibly multiple addresses comma-seperated)
  headers
  spam_report
  subject
 
  And we would have millions of those records in the database.  
 Repeated
  entries, especially on to_address, means the data is hugely  
 redundant. By
  normalising we are turning a text search across millions of  
 records with
  redundant repeated data into a text search over a unique list,  
 then an
  integer search over primary key (which of course is indexed).
 
  On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner  
 lkrub...@geocities.comwrote:
 
 
 
   On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
We had a speed increase because we had a lot of text searches  
 in the old
system, all going through text fields where the same values  
 were repeated
over and over. Its therefore a lot faster to search a much  
 smaller table,
where the text fields are unique, and find the value once,  
 then use an ID
comparison, being much faster to match integers than text.
 
   In sounds like you got a speed boost from doing intelligent  
 indexing.
   What you are describing sounds more like indexing than  
 normalization,
   at least to me.



 


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



[symfony-users] Re: I need tutorial about file upload

2009-03-08 Thread Gregoire Laporte

You can see on jobeet tutoriel :)

Look here 

http://www.symfony-project.org/jobeet/1_2/Doctrine/en/10

 

Good luck =)
 
 Date: Sun, 8 Mar 2009 08:48:49 -0700
 Subject: [symfony-users] I need tutorial about file upload
 From: aaabbbcccda...@gmail.com
 To: symfony-users@googlegroups.com
 
 
 Could somebody give me tutorial about file upload ? Because on symfony
 website is version 1.0:
 http://www.symfony-project.org/cookbook/1_0/en/upload
 And I have symfony 1.2
 
 And:
 ?php echo form_tag('media/upload', 'multipart=true') ?
 ?php echo input_file_tag('file') ?
 ?php echo submit_tag('Send') ?
 /form
 
 doesn't work
  

_
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! 
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: I need tutorial about file upload

2009-03-08 Thread dziobacz

hehehe I didn't see that - thx :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: I need tutorial about file upload

2009-03-08 Thread Marijn

Or in the symfony forms book:
http://www.symfony-project.org/book/forms/1_2/en/02-Form-Validation#chapter_02_file_upload

On Mar 8, 4:56 pm, dziobacz aaabbbcccda...@gmail.com wrote:
 hehehe I didn't see that - thx :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] problem with file upload

2009-03-08 Thread dziobacz

I would like to make very safe upload file: .gif, .jpg and .png but I
am new in symfony. Could you tell me is my code safe ? And why I have
non stop communicate 'Too big size' - it is my own communicate (see
below)?? Sry for some polish names in my code below :)

class UploadForm extends sfForm
{
  public function configure()
  {
$this-setWidgets(array(
  'file'= new sfWidgetFormInputFile(),
));

$this-widgetSchema-setNameFormat('minifile[%s]');


$this-setValidators(array(
  'file'= new sfValidatorFile(array(
'required'   = true,
'mime_types' = 'image/jpeg, image/png, image/gif',
'max_size'   = '1000',
  ),
  array(
  'max_size' = 'Too big size',
  'mime_types' = 'Only .jpeg, .png or .gif',
  )),
));

  }
}



public function executeUpload(sfWebRequest $request)
  {
$this-form = new UploadForm();

if ($request-isMethod('post'))
{
  $this-form-bind($request-getParameter('minifile'), $request-
getFiles('minifile'));
  if ($this-form-isValid())
  {

$file = $this-form-getValue('file');

$filename = $this-getUser()-getGuardUser()-getId();
$extension = $file-getExtension($file-getOriginalExtension());
$file-save(sfConfig::get('sf_upload_dir').'/'.$filename.
$extension);

$id = $this-getUser()-getGuardUser()-getId();
$nazwa = $filename.$extension;
$this-profill = Doctrine::getTable('SfGuardUserProfile')-
setUploadPhoto($id, $name);
  }
}
  }


public function setUploadPhoto($id, $name)
  {
$q = Doctrine_Query::create()
  -update('SfGuardUserProfile sgup')
  -set('sgup.photo', '?', $name)
  -where('sgup.user_id = ?', $id);

return $q-execute();
  }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how to I override the core symfony code?

2009-03-08 Thread Lawrence Krubner



On Mar 8, 7:59 am, Leon van der Ree l...@fun4me.demon.nl wrote:
 Instead of using print_r/var_dump which can be usefull in many
 situations, it probably is wiser to learn to use a debugger (xdebug).
 With Eclipse you can set breakpoints in your code. Wben you request a
 page in your application, eclipse will stop execution at the
 breakpoints to allow you to inspect all variables, step in/out/over
 and allow to execute methods in the watch-view during the break.

 If you then want to modigy behaviour of sfForms you can simply extend
 the sfForm class and instantiate that object instead.

Thanks, but I'm not sure you understood what I'm going for here. I'm
trying to learn how the core symfony code works. I've no interest in
extending sfForms. Rather, I'd like to learn how sfForms works.

(This is partly due to the fact that I've spent the last 2 days trying
to figure out how to set  a default value for a form input, in
symfony 1.1. I'm tempted to hack the core code and add in a method
like setDefault, which they have in syfmony 1.2. But to do that, of
course, I'd have to learn how the core code works.)




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



[symfony-users] Re: how to I override the core symfony code?

2009-03-08 Thread Ant Cunningham

Lawrence Krubner wrote:
 (This is partly due to the fact that I've spent the last 2 days trying
 to figure out how to set  a default value for a form input, in
 symfony 1.1. I'm tempted to hack the core code and add in a method
 like setDefault, which they have in syfmony 1.2. But to do that, of
 course, I'd have to learn how the core code works.)
 

setDefault and setDefaults should exist in 1.1...

http://trac.symfony-project.org/browser/branches/1.1/lib/form/sfForm.class.php

setDefault @ ln 519
setDefaults @ ln 557

In addition to this the first argument of the constructor is an array of 
default values.

http://www.symfony-project.org/book/forms/1_1/en/01-Form-Creation


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



[symfony-users] Re: problem with file upload

2009-03-08 Thread Marijn

Well, you chose to have maximum file size of 1000 bytes... Try the
following

new sfValidatorFile(array('required' = true, 'mime_types' = array
('image/jpeg', 'image/jpg', 'image/png', 'image/gif'), 'max_size' =
2097152), array('max_size' = 'File size of 2MB exceeded',
'mime_types' = 'You are only allowed to upload JPG, PNG or GIF
files.'));

On Mar 8, 8:07 pm, dziobacz aaabbbcccda...@gmail.com wrote:
 I would like to make very safe upload file: .gif, .jpg and .png but I
 am new in symfony. Could you tell me is my code safe ? And why I have
 non stop communicate 'Too big size' - it is my own communicate (see
 below)?? Sry for some polish names in my code below :)

 class UploadForm extends sfForm
 {
   public function configure()
   {
     $this-setWidgets(array(
       'file'    = new sfWidgetFormInputFile(),
     ));

     $this-widgetSchema-setNameFormat('minifile[%s]');

     $this-setValidators(array(
       'file'    = new sfValidatorFile(array(
                 'required'   = true,
                 'mime_types' = 'image/jpeg, image/png, image/gif',
                 'max_size'       = '1000',
           ),
           array(
           'max_size' = 'Too big size',
           'mime_types' = 'Only .jpeg, .png or .gif',
           )),
     ));

   }

 }

 public function executeUpload(sfWebRequest $request)
   {
         $this-form = new UploadForm();

     if ($request-isMethod('post'))
     {
       $this-form-bind($request-getParameter('minifile'), 
 $request-getFiles('minifile'));

       if ($this-form-isValid())
       {

         $file = $this-form-getValue('file');

                 $filename = $this-getUser()-getGuardUser()-getId();
                 $extension = 
 $file-getExtension($file-getOriginalExtension());
                 $file-save(sfConfig::get('sf_upload_dir').'/'.$filename.
 $extension);

                 $id = $this-getUser()-getGuardUser()-getId();
                 $nazwa = $filename.$extension;
                 $this-profill = 
 Doctrine::getTable('SfGuardUserProfile')-setUploadPhoto($id, $name);

       }
     }
   }

 public function setUploadPhoto($id, $name)
   {
         $q = Doctrine_Query::create()
           -update('SfGuardUserProfile sgup')
           -set('sgup.photo', '?', $name)
           -where('sgup.user_id = ?', $id);

         return $q-execute();
   }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread Crafty_Shadow

Symfony 1.1 came by default with Propel 1.2
You can try upgrading to 1.3 (it isn't really a trivial task, but it
shouldn't be a big problem)
There is thorough explanation on the symfony site how to do it:
http://www.symfony-project.org/cookbook/1_1/en/propel_13
It should fare a measurable increase in performance. Also, a site that
makes good use of cache should have caching for absolutely everything
not session-dependent. I find it hard to imagine a php app, no matter
how fast, that would run faster than symfony's cached output.

Alvaro:
Is your plugin based on Propel 1.3?
If you believe you have made significant improvements to Propel, why
not suggest them for version 2.0, which is still under heavy
development?

On Mar 8, 4:33 pm, alvaro harryjek...@gmail.com wrote:
 At the company I developed a symfony plugin to optimize the Propel  
 queries and also the Propel hydrate method, improving even 5 times  
 query speed and also memory usage.

 The plugins supports joins and thanks to PHP features the plugin  
 returns Propel objects populated with custom AS columns.

 We are thinking on release it on the following weeks so stay tuned :)

 Regards,

 Alvaro

 On Mar 8, 2009, at 10:20 PM, Gareth McCumskey wrote:

  We have put numerous caching techniques into effect, from Cache-
  Expires headers to compression of static files like js and html  
  files. Currently we use symfony 1.1 and Propel as the ORM. We have  
  identified the bottleneck generally as being the application  
  processing after the db queries have run to extract the data.

  The entire point of my question was to get some info on general tips  
  and tricks we can try out to see if anything helps or if perhaps we  
  have missed any obvious issues that may actually be the cause of the  
  slow performance we are getting. As it is I have gotten quite a few  
  and look forward to getting into the office tomorrow to try them  
  out. Anymore is greatly appreciated.

  Of course I am looking through the code to see if there is anyway we  
  can streamline it on that end, but every little bit helps.

  Gareth

  On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow vankat...@gmail.com  
  wrote:

  Gareth, you didn't mention what version of symfony you were using,
  also what ORM (if any).
  The best course of optimization will depend on those. Also, as already
  mentioned, caching is your best friend.

  On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
   Well, consider a single database table that looks something like  
  this:

   From_address
   to_address (possibly multiple addresses comma-seperated)
   headers
   spam_report
   subject

   And we would have millions of those records in the database.  
  Repeated
   entries, especially on to_address, means the data is hugely  
  redundant. By
   normalising we are turning a text search across millions of  
  records with
   redundant repeated data into a text search over a unique list,  
  then an
   integer search over primary key (which of course is indexed).

   On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner  
  lkrub...@geocities.comwrote:

On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
 We had a speed increase because we had a lot of text searches  
  in the old
 system, all going through text fields where the same values  
  were repeated
 over and over. Its therefore a lot faster to search a much  
  smaller table,
 where the text fields are unique, and find the value once,  
  then use an ID
 comparison, being much faster to match integers than text.

In sounds like you got a speed boost from doing intelligent  
  indexing.
What you are describing sounds more like indexing than  
  normalization,
at least to me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony Production Performance improvements

2009-03-08 Thread alvaro

One of the ideas I have is to propose it to the Propel guys.

At the moment it works with Propel 1.2, but is not difficult to make  
it work with Propel 1.3

Regards,

Alvaro


On Mar 9, 2009, at 6:49 AM, Crafty_Shadow wrote:


 Symfony 1.1 came by default with Propel 1.2
 You can try upgrading to 1.3 (it isn't really a trivial task, but it
 shouldn't be a big problem)
 There is thorough explanation on the symfony site how to do it:
 http://www.symfony-project.org/cookbook/1_1/en/propel_13
 It should fare a measurable increase in performance. Also, a site that
 makes good use of cache should have caching for absolutely everything
 not session-dependent. I find it hard to imagine a php app, no matter
 how fast, that would run faster than symfony's cached output.

 Alvaro:
 Is your plugin based on Propel 1.3?
 If you believe you have made significant improvements to Propel, why
 not suggest them for version 2.0, which is still under heavy
 development?

 On Mar 8, 4:33 pm, alvaro harryjek...@gmail.com wrote:
 At the company I developed a symfony plugin to optimize the Propel
 queries and also the Propel hydrate method, improving even 5 times
 query speed and also memory usage.

 The plugins supports joins and thanks to PHP features the plugin
 returns Propel objects populated with custom AS columns.

 We are thinking on release it on the following weeks so stay tuned :)

 Regards,

 Alvaro

 On Mar 8, 2009, at 10:20 PM, Gareth McCumskey wrote:

 We have put numerous caching techniques into effect, from Cache-
 Expires headers to compression of static files like js and html
 files. Currently we use symfony 1.1 and Propel as the ORM. We have
 identified the bottleneck generally as being the application
 processing after the db queries have run to extract the data.

 The entire point of my question was to get some info on general tips
 and tricks we can try out to see if anything helps or if perhaps we
 have missed any obvious issues that may actually be the cause of the
 slow performance we are getting. As it is I have gotten quite a few
 and look forward to getting into the office tomorrow to try them
 out. Anymore is greatly appreciated.

 Of course I am looking through the code to see if there is anyway we
 can streamline it on that end, but every little bit helps.

 Gareth

 On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow vankat...@gmail.com
 wrote:

 Gareth, you didn't mention what version of symfony you were using,
 also what ORM (if any).
 The best course of optimization will depend on those. Also, as  
 already
 mentioned, caching is your best friend.

 On Mar 8, 9:43 am, Gareth McCumskey gmccums...@gmail.com wrote:
 Well, consider a single database table that looks something like
 this:

 From_address
 to_address (possibly multiple addresses comma-seperated)
 headers
 spam_report
 subject

 And we would have millions of those records in the database.
 Repeated
 entries, especially on to_address, means the data is hugely
 redundant. By
 normalising we are turning a text search across millions of
 records with
 redundant repeated data into a text search over a unique list,
 then an
 integer search over primary key (which of course is indexed).

 On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner
 lkrub...@geocities.comwrote:

 On Mar 8, 3:26 am, Gareth McCumskey gmccums...@gmail.com wrote:
 We had a speed increase because we had a lot of text searches
 in the old
 system, all going through text fields where the same values
 were repeated
 over and over. Its therefore a lot faster to search a much
 smaller table,
 where the text fields are unique, and find the value once,
 then use an ID
 comparison, being much faster to match integers than text.

 In sounds like you got a speed boost from doing intelligent
 indexing.
 What you are describing sounds more like indexing than
 normalization,
 at least to me.
 


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



[symfony-users] form won't work, no error messages, what do I do?

2009-03-08 Thread Lawrence Krubner


I must have done something to damage one of my editSuccess forms (for
my NewNews module), since I'm no longer able to create new entries,
nor can I edit old entries. No errors are appearing either.

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



[symfony-users] Re: form won't work, no error messages, what do I do?

2009-03-08 Thread Lawrence Krubner



On Mar 8, 8:56 pm, Lawrence Krubner lkrub...@geocities.com wrote:
 I must have done something to damage one of my editSuccess forms (for
 my NewNews module), since I'm no longer able to create new entries,
 nor can I edit old entries. No errors are appearing either.

 What do I do?

This is the form that I have right now. It was generated by the Propel
crud command. I took all the table HTML junk, but other than that, I'm
not aware of making many changes. Can anyone see what I may have
broken?



form action=?php echo url_for('newnews/update'.(!$new_news-isNew
() ? '?id='.$new_news-getId() : '')) ? method=post ?php $form-
isMultipart() and print 'enctype=multipart/form-data ' ?

  ?php echo $form-renderGlobalErrors() ?

  ?php if (!$new_news-isNew()): ?
nbsp;?php echo link_to('Delete', 'newnews/delete?id='.
$new_news-getId(), array('post' = true, 'confirm' = 'Are you
sure?')) ?
  ?php endif; ?

  p?php echo $form['title']-renderLabel() ? br /
  ?php echo $form['title']-renderError() ?
  ?php echo $form['title'] ?
  /p


  p?php echo $form['description']-renderLabel() ?br /
  ?php echo $form['description']-renderError() ?
  ?php echo $form['description'] ?
  /p


  p
  ?php echo $form['active']-renderLabel() ? (do you want
this published?)
  ?php echo $form['active']-renderError() ?
  ?php echo $form['active'] ?
  /p



  p?php echo $form['date']-renderError() ?
  ?php echo $form['date'] ?

?php echo $form['id'] ?

pinput type=submit value=Save //p

/form

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



[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-08 Thread Lawrence Krubner



On Mar 8, 6:46 am, Lee Bolding l...@leesbian.net wrote:
 On 8 Mar 2009, at 04:52, Lawrence Krubner wrote:

  I didn't want to hard code the path, so I moved it to view.yml:

  all:
   javascripts:
     - /bocahoops/web/js/jquery/jquery-1.3.1.js

 This really isn't rocket science.

 in /apps/app/config/view.yml

 all:
    javascripts: [jquery/jquery-1.3.1.js]

 The path is relative to you web/js dir


Hmm. Okay. I copy and pasted what you have here to /apps/frontend/
config/view.yml.  I still get nothing in layout.php. And I mean, I get
a blank line, no HTML.

Again, I'm trying to avoid setting a value in any action.

For now, I'm using this hack in layout.php:

?php
// 03-06-09 - on the dev server, sfConfig::get('sf_web_dir') 
gave
me /home/lawrence/public_html/bocahoops/web
if (stristr(sfConfig::get('sf_web_dir'), /bocahoops/web)) 
$webDir
= /bocahoops/web;
?
script type=text/javascript src=?php echo $webDir ?/js/jquery/
jquery-1.3.1.js/script


This protects me for when I shift from the dev server to the live
server, and I think this will suffice for now





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



[symfony-users] Re: form won't work, no error messages, what do I do?

2009-03-08 Thread Sid Bachtiar

You said you couldn't see any error. Have you tried running the
website using frontend_dev.php or [your app name]_dev.php ?

On Mon, Mar 9, 2009 at 1:56 PM, Lawrence Krubner lkrub...@geocities.com wrote:


 I must have done something to damage one of my editSuccess forms (for
 my NewNews module), since I'm no longer able to create new entries,
 nor can I edit old entries. No errors are appearing either.

 What do I do?
 


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

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



[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-08 Thread prodigitalson


 Hmm. Okay. I copy and pasted what you have here to /apps/frontend/
 config/view.yml.  I still get nothing in layout.php. And I mean, I get
 a blank line, no HTML.

 Again, I'm trying to avoid setting a value in any action.

Then youve done something wrong because that is the way its done. Did you
make sure youre indentation was ok in the view.yml (especially since you
cp'ed)?

Do you have a view.yml set up on the module youre testing with? Does it
have values for the the javascripts key? they may be overriding it. Also
did you make sure you got rid of any of your hacks that might influence
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-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: form won't work, no error messages, what do I do?

2009-03-08 Thread prodigitalson



 form action=?php echo url_for('newnews/update'.(!$new_news-isNew
 () ? '?id='.$new_news-getId() : '')) ? method=post ?php $form-
isMultipart() and print 'enctype=multipart/form-data ' ?


Youre missing the name attribute. Dont know if thats the only issue for
sure but that is definite from what you posted above.


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