[symfony-users] class BaseProfileForm not found

2010-01-06 Thread resursecrestine
 Hi,

 When I try to edit a user form I get an error:

 Fatal error: Class 'BaseProfileForm' not found in
 C:\projectFolder\myproject\lib\vendor\symfony-1.2.10\lib\plugins
\sfDoctrinePlugin\test\functional\fixtures\lib\form\doctrine
\ProfileForm.class.php
 on line 11

 Can you explain why I get this error? I think it is a bug!

I have searched the code for this class and indeed it does not exist!

The ProfileFormFilterClass is like this

class ProfileFormFilter extends BaseProfileFormFilter
{
  public function configure()
  {
  }

}

but the class BaseProfileFormFilter does not exist! I think this is a
problem with symfony 1.2.10
-- 
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] From link_to to m_link_to

2010-01-06 Thread Gareth McCumskey
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 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] class BaseProfileForm not found

2010-01-06 Thread Alexandru-Emil Lupu
Hi there!
First of all, check you project/lib/filters/sfDoctrineGuardPlugin/ folder.
It might be there. Also, as far as can see, you have a problem with all the
base classes.
Run on your command line a symfony cc and a symfony doctrine:build-model

Alecs

On Wed, Jan 6, 2010 at 10:17 AM, resursecrestine domnulnop...@gmail.comwrote:

  Hi,

  When I try to edit a user form I get an error:

  Fatal error: Class 'BaseProfileForm' not found in
  C:\projectFolder\myproject\lib\vendor\symfony-1.2.10\lib\plugins
 \sfDoctrinePlugin\test\functional\fixtures\lib\form\doctrine
 \ProfileForm.class.php
  on line 11

  Can you explain why I get this error? I think it is a bug!

 I have searched the code for this class and indeed it does not exist!

 The ProfileFormFilterClass is like this

 class ProfileFormFilter extends BaseProfileFormFilter
 {
  public function configure()
  {
  }

 }

 but the class BaseProfileFormFilter does not exist! I think this is a
 problem with symfony 1.2.10

 --
 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] How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
I don't use swiftmail in my current app

but I've found that sf always load swiftmail's php file which is a
waste of resource

can I disable it or some other components completely in the setting
files?
-- 
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] Problems with no_script_name=off after upgrading from Symfony 1.2.8 to 1.3.1

2010-01-06 Thread Christian Hammers
Hello

I have a Symfony 1.2 project that I tried to convert to Symfony 1.3.
The no_script_name setting is turned off (verified with the debug console)
yet in Symfony 1.3 it behaves like it was turned on!

The same link_to('Stouml;rungsursachen', 'gu_ursache') produces 
  
https://example.com/proxy/fibreman/release/fibreman-web/index.php/ring_erneut_abholen
in Symfony 1.2 and
  https://example.com/proxy/fibreman/devel/fibreman-web/ring_erneut_abholen
in Symfony 1.3 despite the following settings:
...
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name: off
...

Any ideas?

The reason I cannot use no_script_name=on is that I have a different URL before 
the
project name (fibreman-web) in different instances of the project which is not 
compatible with the RewriteBase in .htaccess. Having the index.php in the URL 
does
not hurt here anyway as it's only an internal web site.

bye,

-christian-

-- 
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] Problems with no_script_name=off after upgrading from Symfony 1.2.8 to 1.3.1

2010-01-06 Thread Gábor Fási
Change 'on' to 'true'
http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_yaml

On Wed, Jan 6, 2010 at 11:41, Christian Hammers c...@lathspell.de wrote:
 Hello

 I have a Symfony 1.2 project that I tried to convert to Symfony 1.3.
 The no_script_name setting is turned off (verified with the debug console)
 yet in Symfony 1.3 it behaves like it was turned on!

 The same link_to('Stouml;rungsursachen', 'gu_ursache') produces
  https://example.com/proxy/fibreman/release/fibreman-web/index.php/ring_erneut_abholen
 in Symfony 1.2 and
  https://example.com/proxy/fibreman/devel/fibreman-web/ring_erneut_abholen
 in Symfony 1.3 despite the following settings:
        ...
        sf_module_disabled_action: disabled
        sf_module_disabled_module: default
        sf_no_script_name: off
        ...

 Any ideas?

 The reason I cannot use no_script_name=on is that I have a different URL 
 before the
 project name (fibreman-web) in different instances of the project which is not
 compatible with the RewriteBase in .htaccess. Having the index.php in the URL 
 does
 not hurt here anyway as it's only an internal web site.

 bye,

 -christian-


 --
 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] Problems with no_script_name=off after upgrading from Symfony 1.2.8 to 1.3.1

2010-01-06 Thread Christian Hammers
Hi

Thanks for the quick reply, you saved my day!
Too bad that symfony does not give a warning if a boolean value is set to 
something different than true or false.

bye,

-christian-

On Wed, 6 Jan 2010 12:07:25 +0100
Gábor Fási maerl...@gmail.com wrote:

 Change 'on' to 'true'
 http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_yaml
 
 On Wed, Jan 6, 2010 at 11:41, Christian Hammers c...@lathspell.de wrote:
  Hello
 
  I have a Symfony 1.2 project that I tried to convert to Symfony 1.3.
  The no_script_name setting is turned off (verified with the debug console)
  yet in Symfony 1.3 it behaves like it was turned on!
 
  The same link_to('Stouml;rungsursachen', 'gu_ursache') produces
   https://example.com/proxy/fibreman/release/fibreman-web/index.php/ring_erneut_abholen
  in Symfony 1.2 and
   https://example.com/proxy/fibreman/devel/fibreman-web/ring_erneut_abholen
  in Symfony 1.3 despite the following settings:
         ...
         sf_module_disabled_action: disabled
         sf_module_disabled_module: default
         sf_no_script_name: off
         ...
 
  Any ideas?
 
  The reason I cannot use no_script_name=on is that I have a different URL 
  before the
  project name (fibreman-web) in different instances of the project which is 
  not
  compatible with the RewriteBase in .htaccess. Having the index.php in the 
  URL does
  not hurt here anyway as it's only an internal web site.
 
  bye,
 
  -christian-
 
 
  --
  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: 1.4, propel, and sfGuard problem

2010-01-06 Thread Martin Settle
Okay, found my error.

I decided to just start over, and this time noticed the '--orm=Propel'
option on generate:project.  Obviously just changing which module is
enabled on a project built for Doctrine is insufficient to change the
layer.

It all works now.
Marti

2010/1/5 Martin Settle martin.set...@gmail.com:
 I thought I might try re-writing a system I built a few years ago
 inside symfony.  To that end, I created an Ubuntu server Vbox
 appliance, installed symfony 1.4, initiated a new project and app,
 changed the default Doctrine to Propel (I'm familiar with it), then
 added sfGuard.  At this point I successfully display the default new
 project page.

 However, whenever I try to run propel:build-all, the task fails with
 'Unable to parse contents of the sqldb.map file'.

 Permissions appear to be ok (owned by myself, with 644 mode). I have
 tried running with an empty schema, as well as including a single
 sfGuardUserProfile definition.  The sqldb.map in question (currently)
 contains:

 #Sqlfile - Database map
 generated-sfGuardPlugin-schema.sql=propel
 generated-schema.sql=propel
 schema.sql=

 I have tried adding 'propel' to the final line, as well as deleting
 the final line.  Neither eliminates the error message.

 All three referenced files exist and appear correct.

 Any ideas?  I can always load the sql statements manually, but given I
 have yet to even begin development, and expect numerous changes, it
 would be easier if I could figure out why the task is failing.

 Thanks in advance.
 Marti

-- 
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: embedForm bug?

2010-01-06 Thread kierzniak
No, i embed panel_user_form to sf_guard_user_form. This is my schema
for PanelUser model. And SfGuardUser have own schema from plugin.
http://pastie.org/768676

And this is my class PanelUserRegisterForm witch is extended by
SfGuardUserForm
http://pastie.org/768680

When i remove the method saveEmbeddedForms i have three inserts to
database.
Thanks!!!

On 5 Sty, 21:39, Daniel Lohse annismcken...@googlemail.com wrote:
 I don't understand this. Do you embed the same form into the same form?

 I'd need to see your schema and the form code where you're embedding the 
 additional form.

 Cheers, Daniel

 On Jan 5, 2010, at 4:11 PM, kierzniak wrote:

  I have read many of theese tutorials. Without effect. I have unset id.
  But.. look at this schema of saving forms
 http://vousavezchoisi.com/img/formsdiagram.png
  I don't know if is correct but according to this image my form is
  saving twice to the database. First in doSave() method and second in
  saveEmbededForms() method. I think that here is the problem. When i
  try to overwrite the saveEmbededForms() only by return null:
  everything seams to be allright. But c'mon! This can't correct way to
  save form.

  On 5 Sty, 07:44, Daniel Lohse annismcken...@googlemail.com wrote:
  What symfony/Doctrine version are you using? If it's 1.3/1.4, you can  
  use embedRelation().

  Over the top of my head, I'd guess it's got something to do with you  
  not unset()-ing the primary key of the embedded form. There was even a  
  blog post from Fabien (I think) about this, so search Google for that.

  Cheers, Daniel

  Sent from my iPhone

  On Jan 5, 2010, at 2:36 AM, kierzniak kierzn...@gmail.com wrote:

  I have problem during saving embed form. Someone describe it on this
  site:
 http://symfonyguide.wordpress.com/2009/09/28/symfony-forms-saving-pro...
  my problem is connected with this part:

  I tried to embed an sfGuardForm with this system. Saving a new object
  went fine, but for some reasons, editing didn’t work. After some a l
  ot
  of debug, I found that it triggered a hidden validation error “An
  object with the same ‘username’ already exists”. Honestly I don
  ’t
  really remember on which level it happened, but I think this is linked
  to the fact that some methods are executed twice and shouldn’t be.
  Even calling the bind() method on embedded forms seems to me to be a
  redundancy. When you submit a form, doClean() deeply clean the values,
  meaning even embedded forms values are passed to the validators, and
  returned cleaned. So if you call bind() on an embedded form it will
  call the clean method again.

  In my case when i try to save embed form i have three inserts to
  database while should be only 2. One to sfGuardUser table and one to
  my schema table PanelUser. Insert to PanelUser is doubled and i don't
  know why.

  INSERT INTO sf_guard_user (algorithm, is_active, is_super_admin,
  username, salt, password, created_at, updated_at) VALUES
  (?, ?, ?, ?, ?, ?, ?, ?) - (sha1, 1, 0, pio.ma,
  e4ebecdd99d5f1128e87b36980fcb89b,
  1744b44ee23963ecf737b33839e464b1bcb0af90, 2009-12-31 15:21:14,
  2009-12-31 15:21:14)

  INSERT INTO panel_user (sf_guard_user_id, first_name, last_name,
  email_address, allegro_id) VALUES (?, ?, ?, ?, ?) - (6, Piotr, Malek,
  f...@onet.com, 12313123)

  INSERT INTO panel_user (first_name, last_name, email_address,
  allegro_id) VALUES (?, ?, ?, ?) - (Piotr, Malek, f...@onet.com,
  12313123)

  --

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




Re: [symfony-users] Re: embedForm bug?

2010-01-06 Thread Daniel Lohse
Well, you still didn't tell me if you're using symfony 1.3/1.4 because then you 
won't need this anymore.

And this seems just wrong what you're doing: you're defining the sfGuardUser 
relation on the PanelUser model but embed the PanelUser into the sfGuardUser 
AND then extend the sfGuardUserForm. Man, too complex and illogical. I know 
these relations are said to be bidirectional but you're also not defining the 
relation PanelUser-sfGuardUser as a one-to-one relation explicitly.

For symfony 1.3/1.4 define your schema this way (in 
project/config/doctrine/schema.yml):

sfGuardUser:
  columns:
first_name: string(255)
last_name: string(255)
email_address: string(255)

Then do a ./symfony doctrine:build --all (add --and-load if you need to load 
fixtures).

That should be it. No need for a new model just to add columns to the user 
model, symfony 1.3/1.4 automatically merges all schemas (plugin and project) on 
build.

Post back here if you're using symfony 1.2.


Cheers, Daniel

On Jan 6, 2010, at 1:22 PM, kierzniak wrote:

 No, i embed panel_user_form to sf_guard_user_form. This is my schema
 for PanelUser model. And SfGuardUser have own schema from plugin.
 http://pastie.org/768676
 
 And this is my class PanelUserRegisterForm witch is extended by
 SfGuardUserForm
 http://pastie.org/768680
 
 When i remove the method saveEmbeddedForms i have three inserts to
 database.
 Thanks!!!
 
 On 5 Sty, 21:39, Daniel Lohse annismcken...@googlemail.com wrote:
 I don't understand this. Do you embed the same form into the same form?
 
 I'd need to see your schema and the form code where you're embedding the 
 additional form.
 
 Cheers, Daniel
 
 On Jan 5, 2010, at 4:11 PM, kierzniak wrote:
 
 I have read many of theese tutorials. Without effect. I have unset id.
 But.. look at this schema of saving forms
 http://vousavezchoisi.com/img/formsdiagram.png
 I don't know if is correct but according to this image my form is
 saving twice to the database. First in doSave() method and second in
 saveEmbededForms() method. I think that here is the problem. When i
 try to overwrite the saveEmbededForms() only by return null:
 everything seams to be allright. But c'mon! This can't correct way to
 save form.
 
 On 5 Sty, 07:44, Daniel Lohse annismcken...@googlemail.com wrote:
 What symfony/Doctrine version are you using? If it's 1.3/1.4, you can  
 use embedRelation().
 
 Over the top of my head, I'd guess it's got something to do with you  
 not unset()-ing the primary key of the embedded form. There was even a  
 blog post from Fabien (I think) about this, so search Google for that.
 
 Cheers, Daniel
 
 Sent from my iPhone
 
 On Jan 5, 2010, at 2:36 AM, kierzniak kierzn...@gmail.com wrote:
 
 I have problem during saving embed form. Someone describe it on this
 site:
 http://symfonyguide.wordpress.com/2009/09/28/symfony-forms-saving-pro...
 my problem is connected with this part:
 
 I tried to embed an sfGuardForm with this system. Saving a new object
 went fine, but for some reasons, editing didn’t work. After some a l
 ot
 of debug, I found that it triggered a hidden validation error “An
 object with the same ‘username’ already exists”. Honestly I don
 ’t
 really remember on which level it happened, but I think this is linked
 to the fact that some methods are executed twice and shouldn’t be.
 Even calling the bind() method on embedded forms seems to me to be a
 redundancy. When you submit a form, doClean() deeply clean the values,
 meaning even embedded forms values are passed to the validators, and
 returned cleaned. So if you call bind() on an embedded form it will
 call the clean method again.
 
 In my case when i try to save embed form i have three inserts to
 database while should be only 2. One to sfGuardUser table and one to
 my schema table PanelUser. Insert to PanelUser is doubled and i don't
 know why.
 
 INSERT INTO sf_guard_user (algorithm, is_active, is_super_admin,
 username, salt, password, created_at, updated_at) VALUES
 (?, ?, ?, ?, ?, ?, ?, ?) - (sha1, 1, 0, pio.ma,
 e4ebecdd99d5f1128e87b36980fcb89b,
 1744b44ee23963ecf737b33839e464b1bcb0af90, 2009-12-31 15:21:14,
 2009-12-31 15:21:14)
 
 INSERT INTO panel_user (sf_guard_user_id, first_name, last_name,
 email_address, allegro_id) VALUES (?, ?, ?, ?, ?) - (6, Piotr, Malek,
 f...@onet.com, 12313123)
 
 INSERT INTO panel_user (first_name, last_name, email_address,
 allegro_id) VALUES (?, ?, ?, ?) - (Piotr, Malek, f...@onet.com,
 12313123)
 
 --
 
 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-users] Re: class BaseProfileForm not found

2010-01-06 Thread Zdanek
Same problem with BaseProfileForm with propel. Seems it is not being
generated with symfony:build-forms. I have profile installed as
plugin, may be this is the case ?

T
-- 
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: sfDynamics and sf1.4

2010-01-06 Thread Romain Dorgueil
0.9.6 should work fine with symfony 1.4

If not, please opena ticket on trackeet.net

Thanks

On 18 déc 2009, 19:42, Fred Grott(shareme) fred.gr...@gmail.com
wrote:
 Hello everyone,

 Excuse the briefness of this note..

 For those of us using Sf 1.4.1 and the sfDrynamicsPlugin it appears
 that changes were made in svn Dec 7th so we should pull the svn source
 as install form that correct? I know that the 0.93?? still has errors
 on sf1.4.1 although the plugin is enabled and module is enabled..

 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] Re: class BaseProfileForm not found

2010-01-06 Thread Flavius Nopcea
yeah...it could be a doctrine bug


www.resursecrestine.ro


On Wed, Jan 6, 2010 at 2:57 PM, Zdanek tom...@mikran.pl wrote:

 Same problem with BaseProfileForm with propel. Seems it is not being
 generated with symfony:build-forms. I have profile installed as
 plugin, may be this is the case ?

 T

 --
 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] How can I disable swiftmail completely?

2010-01-06 Thread Eno
On Wed, 6 Jan 2010, chrisyue wrote:

 I don't use swiftmail in my current app
 
 but I've found that sf always load swiftmail's php file which is a
 waste of resource
 
 can I disable it or some other components completely in the setting
 files?
 

http://www.symfony-project.org/reference/1_4/en/14-Other-Configuration-Files



-- 


-- 
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] showsuccess

2010-01-06 Thread Augusto Flavio
This can be your main template. Check it in apps/env/templates.


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] showsuccess

2010-01-06 Thread Gabo
the staff includes $ section- getSectionField (), is sectionfield clob
field with html, but symfony printed as text...  converts html to text in
showsuccess.php??

2010/1/6 Augusto Flavio afla...@gmail.com

 This can be your main template. Check it in apps/env/templates.


 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.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] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-06 Thread FractalizeR
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-ide-netbeans-6-8/

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




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

2010-01-06 Thread Lukas Kahwe Smith

On 06.01.2010, at 17:06, FractalizeR wrote:

 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-ide-netbeans-6-8/
 
 I consider now NetBeans as a replacement for Zend Studio ;)

i gave it a shot .. i liked it .. though i missed a few things from Komodo. 
however for some reason even netbeans 6.8 regularly decides to eat 100% 
requiring me to force quit the app. i am running OSX 10.6. i tried a few things 
(like disabling the scm plugins) but couldnt get an improvement.

regards,
Lukas Kahwe Smith
m...@pooteeweet.org



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

2010-01-06 Thread Bernhard Schussek
Just do

print $form-getErrorSchema();

The error schema implements __toString().

Bernhard
--
Software Architect  Engineer
Blog: http://webmozarts.com
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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: Is netbeans compatible with symfony

2010-01-06 Thread PachinSV
I newbie programming with symfony and I use Netbeans 6.7 - 6.8 ... and
I have no problems with it. You can run symfony command directly from
netbeans but I prefer to use the command line. And the netbeans
intellisense works fine for me. Greetings from El Salvador!


On 5 ene, 01:27, lucky givin.chris...@gmail.com wrote:
 hi guys i'm new to symfony till now i was working without using ide
 now i found that netbeans 6.8 supports symfony.is there any issues coz
 i don wan again to struggle like earlier please if any one is working
 on netbeans please let me know Boss.

 Regards,
 Lucky
-- 
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 1.4 installation

2010-01-06 Thread karansoni
i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it
through pear .

is there any phenomenon through which i can install the both versions
symfony 1.2.9 and 1.4 on my linux though PEAR don't support two
instalations then

Do i have to install 1.4 through SVN??? I want to keep both versions
on my PC

with regards,

karan soni
-- 
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] Newbie problems: sfFlashMessagePlugin installation

2010-01-06 Thread Dineu Henrique
Dear friends,

   I've just finished the Jobeet tutorial from symfony-project web site, and
started to build my own project here. I'm having some problems to install a
plugin called *sfFlashMessagePlugin*. To install it, I first installed the
jQueryReloaded plugin, so that its one of its Dependencies. My problem is,
after I install, it seem that the php function are okay called by the
use_helper function, but the Javascript files are not ok. I tried copying
them to my web/js instead of leaving them inside plugins/pluginname
directory.
   The thing is, I followed all steps of README from both of them, but I
can't make them work. Any ideas of what problem can still be happening here?

The messages from Error Console at Firefox are:
- Before copying the JS files to web/js
   $ is not defined
   ... that's because it couldn't find the jQuery js file. So I copied it to
web/js and it's ok.

- After copying jquery js file to web/js:
   Now I'm facing the error $.notifyBar is not a function. It meand that
the JS of sfFlashMessagePlugin is not being referenced.

Hope you can help me.
Thanks!
-- 
Dineu Assis
-- 

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] Doctrine's column_aggregation and Admin Generator

2010-01-06 Thread Thomas
Hello everybody,

(Context : Symfony 1.4, Doctrine 1.2)

Let's say I have 3 entities in my schema : Person, Boy, Girl, with Boy
and Girl inheriting from Person with the column_aggregation option.

So this is the simplified schema.yml :

code
Person:
...

Boy:
  inheritance:
extends: Person
type: column_aggregation
keyField: gender
keyValue: boy
...

Girl:
  inheritance:
extends: Person
type: column_aggregation
keyField: gender
keyValue: girl
...
/code

Now, I would like to use the Admin generator in order to manage my Boy
 Girl entities.

The CLI commands below work as expected :
code
symfony doctrine:generate-admin frontend Boy
symfony doctrine:generate-admin frontend Girl
/code

And... here is my problem. As the behaviors will be identical, I don't
want to generate two different modules.

So I generated admin for the Person entity :
code
symfony doctrine:generate-admin frontend Person
/code

Then I tried to play with routing.yml options in order to route to my
two different entities. Before :
code
person:
  class: sfDoctrineRouteCollection
  options:
model:Person
module:   person
prefix_path:  /person
column:   id
with_wildcard_routes: true
/code

After :
code
boy:
  class: sfDoctrineRouteCollection
  options:
model:Boy
module:   person
prefix_path:  /boy
column:   id
with_wildcard_routes: true

girl:
  class: sfDoctrineRouteCollection
  options:
model:Girl
module:   person
prefix_path:  /girl
column:   id
with_wildcard_routes: true
/code

But this would be too easy. Indeed, in generator.yml, I must set one
model and one route prefix.
code
generator:
  class: sfDoctrineGenerator
  param:
model_class:   Person
route_prefix:  person
...
/code

I think I could pass the gender parameter, and work only with Person
entities, but perhaps there is a nicer solution, using Doctrine
inheritance.

Thanks to everyone who has some clues.

Thomas
-- 
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: Newbie problems: sfFlashMessagePlugin installation

2010-01-06 Thread Dineu Henrique
Problem solved!

   The answer was: Windows is helpless!... I just created all the
environment at Kubuntu and the things worked all fine. After all, I realized
that to make it run on Windows it was needed to copy the plugin /web
directory to my project /web directory and rename it to plugin name.
Now its easy to flash a message :)

Thanks all, and happy new year!
-- 
Dineu Assis


On Wed, Jan 6, 2010 at 2:50 PM, Dineu Henrique dineu...@gmail.com wrote:

 Dear friends,

I've just finished the Jobeet tutorial from symfony-project web site,
 and started to build my own project here. I'm having some problems to
 install a plugin called *sfFlashMessagePlugin*. To install it, I first
 installed the jQueryReloaded plugin, so that its one of its Dependencies.
 My problem is, after I install, it seem that the php function are okay
 called by the use_helper function, but the Javascript files are not ok. I
 tried copying them to my web/js instead of leaving them inside
 plugins/pluginname directory.
The thing is, I followed all steps of README from both of them, but I
 can't make them work. Any ideas of what problem can still be happening here?

 The messages from Error Console at Firefox are:
 - Before copying the JS files to web/js
$ is not defined
... that's because it couldn't find the jQuery js file. So I copied it
 to web/js and it's ok.

 - After copying jquery js file to web/js:
Now I'm facing the error $.notifyBar is not a function. It meand that
 the JS of sfFlashMessagePlugin is not being referenced.

 Hope you can help me.
 Thanks!
 --
 Dineu Assis


-- 

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

To post to this group, send email to symfony-us...@googlegroups.com.

To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] symfony 1.4 installation

2010-01-06 Thread Gábor Fási
You can also download the zip/tgz archive from the website, and
extract it to your project's lib/vendor/symfony folder.

On Wed, Jan 6, 2010 at 11:41, karansoni kanu8...@gmail.com wrote:
 i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it
 through pear .

 is there any phenomenon through which i can install the both versions
 symfony 1.2.9 and 1.4 on my linux though PEAR don't support two
 instalations then

 Do i have to install 1.4 through SVN??? I want to keep both versions
 on my PC

 with regards,

 karan soni

 --
 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] showsuccess

2010-01-06 Thread Gábor Fási
Values you pass to the view get escaped, if you enabled it at project
generation (1.2) / by default (1.{3,4}), which is a Good Thing™.
If you need to access the raw value and output the html as it is, try
`$section-getSectionField(ESC_RAW)`

On Wed, Jan 6, 2010 at 16:56, Gabo gabopo...@gmail.com wrote:
 the staff includes $ section- getSectionField (), is sectionfield clob
 field with html, but symfony printed as text...  converts html to text in
 showsuccess.php??
 2010/1/6 Augusto Flavio afla...@gmail.com

 This can be your main template. Check it in apps/env/templates.


 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.





 --
 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: Newbie problems: sfFlashMessagePlugin installation

2010-01-06 Thread Michael Smith
Also symfony plugin:publish-assets does a copy on windows and creates
a symbolic link on *nix platforms.

On Jan 6, 12:01 pm, Dineu Henrique dineu...@gmail.com wrote:
 Problem solved!

    The answer was: Windows is helpless!... I just created all the
 environment at Kubuntu and the things worked all fine. After all, I realized
 that to make it run on Windows it was needed to copy the plugin /web
 directory to my project /web directory and rename it to plugin name.
     Now its easy to flash a message :)

 Thanks all, and happy new year!
 --
 Dineu Assis



 On Wed, Jan 6, 2010 at 2:50 PM, Dineu Henrique dineu...@gmail.com wrote:
  Dear friends,

     I've just finished the Jobeet tutorial from symfony-project web site,
  and started to build my own project here. I'm having some problems to
  install a plugin called *sfFlashMessagePlugin*. To install it, I first
  installed the jQueryReloaded plugin, so that its one of its Dependencies.
  My problem is, after I install, it seem that the php function are okay
  called by the use_helper function, but the Javascript files are not ok. I
  tried copying them to my web/js instead of leaving them inside
  plugins/pluginname directory.
     The thing is, I followed all steps of README from both of them, but I
  can't make them work. Any ideas of what problem can still be happening here?

  The messages from Error Console at Firefox are:
  - Before copying the JS files to web/js
     $ is not defined
     ... that's because it couldn't find the jQuery js file. So I copied it
  to web/js and it's ok.

  - After copying jquery js file to web/js:
     Now I'm facing the error $.notifyBar is not a function. It meand that
  the JS of sfFlashMessagePlugin is not being referenced.

  Hope you can help me.
  Thanks!
  --
  Dineu Assis
-- 
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: Newbie problems: sfFlashMessagePlugin installation

2010-01-06 Thread Dennis Riedel
You can also create symlinks on Windows Vista and 7.


On Wed, Jan 6, 2010 at 8:21 PM, Michael Smith sitecr...@gmail.com wrote:

 Also symfony plugin:publish-assets does a copy on windows and creates
 a symbolic link on *nix platforms.

 On Jan 6, 12:01 pm, Dineu Henrique dineu...@gmail.com wrote:
  Problem solved!
 
 The answer was: Windows is helpless!... I just created all the
  environment at Kubuntu and the things worked all fine. After all, I
 realized
  that to make it run on Windows it was needed to copy the plugin /web
  directory to my project /web directory and rename it to plugin name.
  Now its easy to flash a message :)
 
  Thanks all, and happy new year!
  --
  Dineu Assis
 
 
 
  On Wed, Jan 6, 2010 at 2:50 PM, Dineu Henrique dineu...@gmail.com
 wrote:
   Dear friends,
 
  I've just finished the Jobeet tutorial from symfony-project web
 site,
   and started to build my own project here. I'm having some problems to
   install a plugin called *sfFlashMessagePlugin*. To install it, I first
   installed the jQueryReloaded plugin, so that its one of its
 Dependencies.
   My problem is, after I install, it seem that the php function are okay
   called by the use_helper function, but the Javascript files are not ok.
 I
   tried copying them to my web/js instead of leaving them inside
   plugins/pluginname directory.
  The thing is, I followed all steps of README from both of them, but
 I
   can't make them work. Any ideas of what problem can still be happening
 here?
 
   The messages from Error Console at Firefox are:
   - Before copying the JS files to web/js
  $ is not defined
  ... that's because it couldn't find the jQuery js file. So I copied
 it
   to web/js and it's ok.
 
   - After copying jquery js file to web/js:
  Now I'm facing the error $.notifyBar is not a function. It meand
 that
   the JS of sfFlashMessagePlugin is not being referenced.
 
   Hope you can help me.
   Thanks!
   --
   Dineu Assis

 --
 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] showsuccess

2010-01-06 Thread Gabo
Thanks!!

PS:

EDIT : app/config/settings.yml

# Output escaping settings
escaping_strategy:  false




2010/1/6 Gábor Fási maerl...@gmail.com

 Values you pass to the view get escaped, if you enabled it at project
 generation (1.2) / by default (1.{3,4}), which is a Good Thing™.
 If you need to access the raw value and output the html as it is, try
 `$section-getSectionField(ESC_RAW)`

 On Wed, Jan 6, 2010 at 16:56, Gabo gabopo...@gmail.com wrote:
  the staff includes $ section- getSectionField (), is sectionfield clob
  field with html, but symfony printed as text...  converts html to text in
  showsuccess.php??
  2010/1/6 Augusto Flavio afla...@gmail.com
 
  This can be your main template. Check it in apps/env/templates.
 
 
  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.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.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] showsuccess

2010-01-06 Thread Gábor Fási
On the long term I'd advise against disabling it globally, and getting
the raw data only in special cases when that's what you need - the
output escaping can save you from a lot of trouble by preventing
attacks like html injection.

On Wed, Jan 6, 2010 at 21:43, Gabo gabopo...@gmail.com wrote:
 Thanks!!
 PS:
 EDIT : app/config/settings.yml

     # Output escaping settings
     escaping_strategy:      false



 2010/1/6 Gábor Fási maerl...@gmail.com

 Values you pass to the view get escaped, if you enabled it at project
 generation (1.2) / by default (1.{3,4}), which is a Good Thing™.
 If you need to access the raw value and output the html as it is, try
 `$section-getSectionField(ESC_RAW)`

 On Wed, Jan 6, 2010 at 16:56, Gabo gabopo...@gmail.com wrote:
  the staff includes $ section- getSectionField (), is sectionfield clob
  field with html, but symfony printed as text...  converts html to text
  in
  showsuccess.php??
  2010/1/6 Augusto Flavio afla...@gmail.com
 
  This can be your main template. Check it in apps/env/templates.
 
 
  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.
 
 
 
 
 
  --
  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: From link_to to m_link_to

2010-01-06 Thread tirengarfio
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] get id from new row

2010-01-06 Thread Gabo
HELP!!


I try to capture the id of a new record for storage in an external table
(document_trace) but not what brings me


/lib/model/doctrine/template.class.php

public function save(Doctrine_Connection $conn = null) {

if ($this-isNew()) {

$sfUser =sfContext::getInstance();

$q = new document_trace();

$q-set('id_document', $this-getId();); //Error getId is empty???

$q-set('id_user',$sfUser-getUser()-getGuardUser());

$q-set('state', '0');

$q-save();

}

return parent::save($conn);

}

*
*

*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] get id from new row

2010-01-06 Thread Daniel Lohse
You are trying to get the inserted id in the if block: if ($this-isNew()) ??? 
Well, you are wrinting it, the object is not yet saved!

Call parent::save($conn) and then you can get the id from the object.


Cheers, Daniel

On Jan 6, 2010, at 11:48 PM, Gabo wrote:

 HELP!!
 
 
 I try to capture the id of a new record for storage in an external table 
 (document_trace) but not what brings me
 
 
 
 /lib/model/doctrine/template.class.php
 
 
 public function save(Doctrine_Connection $conn = null) {
 
 if ($this-isNew()) {
 
 $sfUser =sfContext::getInstance();
 
 $q = new document_trace();
 
 $q-set('id_document', $this-getId(););//Error getId is empty???
 
 $q-set('id_user',$sfUser-getUser()-getGuardUser());
 
 $q-set('state', '0');
 
 $q-save();
 
 }
 
 return parent::save($conn);
 
 }
 
 
 
 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] get id from new row

2010-01-06 Thread Augusto Flavio
Hi Gabo,


i was working with embedforms and i need do this for my forms works well.

You need save the record that you want get the ID and after save the
record that needs the FK. Look this:


$author = new author();
... (set values for author object)
$author-save();

//now you save the book objects with author ID.
$book = new book();
$book-setauthor($author);
$book-save();


I hope this help you.



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] symfony 1.4 installation

2010-01-06 Thread Stéphane
And replace, in your $project/config/projectConfiguration.class.php the
first requires which reference your other sf version.


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


On Wed, Jan 6, 2010 at 7:27 PM, Gábor Fási maerl...@gmail.com wrote:

 You can also download the zip/tgz archive from the website, and
 extract it to your project's lib/vendor/symfony folder.

 On Wed, Jan 6, 2010 at 11:41, karansoni kanu8...@gmail.com wrote:
  i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it
  through pear .
 
  is there any phenomenon through which i can install the both versions
  symfony 1.2.9 and 1.4 on my linux though PEAR don't support two
  instalations then
 
  Do i have to install 1.4 through SVN??? I want to keep both versions
  on my PC
 
  with regards,
 
  karan soni
 
  --
  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.



[symfony-users]

2010-01-06 Thread mariam shehu
I encountered power failure while attempting to fill mu JAMB UTME
registration form and i have not been able to access the page since then
because of the error in symphony project please do something to restore the
page.
-- 

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] Problems getting test:coverage to work

2010-01-06 Thread nil_von_9wo
Greetings!

I'm a newbie working through the Jobeet tutorial and have presently
gotten so far as tests.

I tried to execute:

symfony.bat test:coverage test/unit/JobeetTest.php lib/
Jobeet.class.php

Only to discover:

You must install and enable xdebug before using lime coverage.

So, then I tried to install php_xdebug-2.1.0beta1-5.3-vc9, but when I
did this, PHP would fail complaining that php5ts.dll couldn't be
found.

So, I downloaded and dumped a copy of php5ts.dll in my PHP directory.

This resulted in an alert The procedure entry point
zend_memory_peak_usage could not be located in the dynamic link
library php5ts.dll

I tried to google this error to see if anyone had a fix for it, but I
couldn't find any instance of it... and at this point I think I may be
going off on too much of a tangent from the original problem:

Does anyone know how I can get this (the test:coverage) method to
work?

-Brian.




-- 
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] Problems getting test:coverage to work

2010-01-06 Thread Stéphane
You need to know if your apache is thread safe or not (if under windows I
guess it is).
Do a phpinfo(); or php /? on command line to know-how do a phpinfo() then
check line for thread-safe enabled or similar thing.

If thread-safe, you have to take care at your xdebug' configuration at the
zend_extension=/path/to/xdebug.dll line
If thread_safe, you'll need to suffix zend_extension with _ts, like
zend_extension_ts=..
I got this error and it was because of this.

Cheers,

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


On Thu, Jan 7, 2010 at 12:42 AM, nil_von_9wo kessler...@gmail.com wrote:

 Greetings!

 I'm a newbie working through the Jobeet tutorial and have presently
 gotten so far as tests.

 I tried to execute:

 symfony.bat test:coverage test/unit/JobeetTest.php lib/
 Jobeet.class.php

 Only to discover:

 You must install and enable xdebug before using lime coverage.

 So, then I tried to install php_xdebug-2.1.0beta1-5.3-vc9, but when I
 did this, PHP would fail complaining that php5ts.dll couldn't be
 found.

 So, I downloaded and dumped a copy of php5ts.dll in my PHP directory.

 This resulted in an alert The procedure entry point
 zend_memory_peak_usage could not be located in the dynamic link
 library php5ts.dll

 I tried to google this error to see if anyone had a fix for it, but I
 couldn't find any instance of it... and at this point I think I may be
 going off on too much of a tangent from the original problem:

 Does anyone know how I can get this (the test:coverage) method to
 work?

 -Brian.





 --
 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: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-06 Thread lawrence


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


Yes, people should consider this, especially if you do programming in
other languages besides PHP. For years I preferred simple text editors
like Kwrite and Kate for programming. But this last year I became a
fan of NetBeans.
-- 
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: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread lawrence


On Jan 4, 11:58 pm, Eno symb...@gmail.com wrote:

  actions.class.php:
  $this-content_tabs = array('key1' = 'value1', 'key2' = 'value2');

 Maybe something like this?

 $this-content_tabs[] = new array('key1' = 'value1', 'key2' = 'value2');


This is PHP. Why new array?
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread chrisyue
thank you ken :)

ken wrote:
 you can use $object-getRaw('property');

 On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote:
  I also encountered a problem like that: when I pass a DOMDocument
  object $dom to view, I found that I can't treat $dom as array
  anymore,
  I put $dom in a foreach statement:
 
  foreach ($dom-getElementsByTagName('name') as $name ) ..
 
  It would always ouput names from a xml file untill I set escape option
  on in settings.yml
 
 
 
  Gábor Fási wrote:
   sfOutputEscaperArrayDecorator means you have output escaping enabled,
   and any data you send to the view gets escaped for safety. You can
   still use it as an array, like $content_tabs[key1], the only
   difference you'll see is that you need not use htmlspecialchars() or
   anything like that.
 
   On Tue, Jan 5, 2010 at 04:06, SB oce...@gmail.com wrote:
Hello,
 
I'm trying to do something really simple (I thought), send an array
from the controller to the template.
 
actions.class.php:
$this-content_tabs = array('key1' = 'value1', 'key2' = 'value2');
 
indexSuccess.php:
var_dump($content_tabs);
 
gives:
object(sfOutputEscaperArrayDecorator)[69]
 private 'count' = null
 protected 'value' =
   array
     'key1' = string 'value1' (length=6)
     'key2' = string 'value2' (length=6)
 protected 'escapingMethod' = string 'esc_specialchars' (length=16)
 
However, if I try to output a simple scalar variable, i.e.:
 
actions.class.php
$this-content_tabs = 'test';
 
indexSuccess.php
var_dump($content_tabs);
 
gives:
string 'test' (length=4)
 
I get the same result if I try to set a request parameter as an array
in a filter, i.e.
 
myFilter.php:
$this-getContext()-getRequest()-setParameter('content_tabs', array
('key1' = 'value1', 'key2' = 'value2'));
 
if i output this in myFilter.php:
var_dump($this-getContext()-getRequest()-getParameter
('content_tabs'));
 
gives:
array
 'key1' = string 'value1' (length=6)
 'key2' = string 'value2' (length=6)
 
but if i output in indexSuccess.php:
var_dump($sf_request-getParameter('content_tabs'));
 
gives:
object(sfOutputEscaperArrayDecorator)[69]
 private 'count' = null
 protected 'value' =
   array
     'key1' = string 'value1' (length=6)
     'key2' = string 'value2' (length=6)
 protected 'escapingMethod' = string 'esc_specialchars' (length=16)
 
Why is this happening?  Is there no way to send arrays to the view
layer?
 
thanks!
 
SB
 
--
 
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.




Re: [symfony-users] How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
Thank you Eno :)

Eno wrote:
 On Wed, 6 Jan 2010, chrisyue wrote:

  I don't use swiftmail in my current app
 
  but I've found that sf always load swiftmail's php file which is a
  waste of resource
 
  can I disable it or some other components completely in the setting
  files?
 

 http://www.symfony-project.org/reference/1_4/en/14-Other-Configuration-Files



 --
-- 
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: How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
After reading that reference I still don't know where to start,
Can you please teach me how to disable swiftmail by these config
files ?

On Jan 6, 10:41 pm, Eno symb...@gmail.com wrote:
 On Wed, 6 Jan 2010, chrisyue wrote:
  I don't use swiftmail in my current app

  but I've found that sf always load swiftmail's php file which is a
  waste of resource

  can I disable it or some other components completely in the setting
  files?

 http://www.symfony-project.org/reference/1_4/en/14-Other-Configuratio...

 --
-- 
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: How can I disable swiftmail completely?

2010-01-06 Thread chrisyue
After reading that reference I still don't know where to start,
Can you please teach me how to disable swiftmail by these config
files ?

On Jan 6, 10:41 pm, Eno symb...@gmail.com wrote:
 On Wed, 6 Jan 2010, chrisyue wrote:
  I don't use swiftmail in my current app

  but I've found that sf always load swiftmail's php file which is a
  waste of resource

  can I disable it or some other components completely in the setting
  files?

 http://www.symfony-project.org/reference/1_4/en/14-Other-Configuratio...

 --
-- 
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: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread ken
It's actually recommended to leave outputscaping on be default.

On Jan 7, 10:21 am, chrisyue blizzch...@gmail.com wrote:
 thank you ken :)



 ken wrote:
  you can use $object-getRaw('property');

  On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote:
   I also encountered a problem like that: when I pass a DOMDocument
   object $dom to view, I found that I can't treat $dom as array
   anymore,
   I put $dom in a foreach statement:

   foreach ($dom-getElementsByTagName('name') as $name ) ..

   It would always ouput names from a xml file untill I set escape option
   on in settings.yml

   Gábor Fási wrote:
sfOutputEscaperArrayDecorator means you have output escaping enabled,
and any data you send to the view gets escaped for safety. You can
still use it as an array, like $content_tabs[key1], the only
difference you'll see is that you need not use htmlspecialchars() or
anything like that.

On Tue, Jan 5, 2010 at 04:06, SB oce...@gmail.com wrote:
 Hello,

 I'm trying to do something really simple (I thought), send an array
 from the controller to the template.

 actions.class.php:
 $this-content_tabs = array('key1' = 'value1', 'key2' = 'value2');

 indexSuccess.php:
 var_dump($content_tabs);

 gives:
 object(sfOutputEscaperArrayDecorator)[69]
  private 'count' = null
  protected 'value' =
    array
      'key1' = string 'value1' (length=6)
      'key2' = string 'value2' (length=6)
  protected 'escapingMethod' = string 'esc_specialchars' (length=16)

 However, if I try to output a simple scalar variable, i.e.:

 actions.class.php
 $this-content_tabs = 'test';

 indexSuccess.php
 var_dump($content_tabs);

 gives:
 string 'test' (length=4)

 I get the same result if I try to set a request parameter as an array
 in a filter, i.e.

 myFilter.php:
 $this-getContext()-getRequest()-setParameter('content_tabs', array
 ('key1' = 'value1', 'key2' = 'value2'));

 if i output this in myFilter.php:
 var_dump($this-getContext()-getRequest()-getParameter
 ('content_tabs'));

 gives:
 array
  'key1' = string 'value1' (length=6)
  'key2' = string 'value2' (length=6)

 but if i output in indexSuccess.php:
 var_dump($sf_request-getParameter('content_tabs'));

 gives:
 object(sfOutputEscaperArrayDecorator)[69]
  private 'count' = null
  protected 'value' =
    array
      'key1' = string 'value1' (length=6)
      'key2' = string 'value2' (length=6)
  protected 'escapingMethod' = string 'esc_specialchars' (length=16)

 Why is this happening?  Is there no way to send arrays to the view
 layer?

 thanks!

 SB

 --

 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] Re: Configuring Symfony in Netbeans

2010-01-06 Thread Anyulled
how do I do that? I try to follow the instructions in the symfony
page, but it doesn't work in windows, they have all kind of
explanations on linux, but i'm using windows xp

On Jan 4, 11:04 am, DBA_Alex enigma20...@gmail.com wrote:
 Don't forget thatNetbeans_does not_ add the symfony library files to
 the project.  You will still have to do that manually.

 On Jan 2, 8:14 am, Anyulled anyul...@gmail.com wrote:



  Hi guys, i recently knew thatNetbeans6.8 added support for symfony
  projects. Do you know of any place where I can find a tutorial on how
  to configurenetbeansto create symfony projects?

  I'd appreciate any help.
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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] Why can not change default routing class to a self defined routing class?

2010-01-06 Thread chrisyue
I can't event switch sfPatternRouting to sfRequestRoute in
factories.yml

I myself has made DomainRouting which can pass a param from the
subdomain, I want to use it as my default routing class, how can i do
it ?
-- 
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-06 Thread Eno
On Wed, 6 Jan 2010, Gabo wrote:

 HELP!!

 I try to capture the id of a new record for storage in an external table
 (document_trace) but not what brings me

The ID comes from the database but you haven't saved the object so it has 
no ID yet.



-- 


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




[symfony-users] Re: Where is the configuration in Symfony 1.3/1.4 for sf_upload_dir?

2010-01-06 Thread Dennis
I never saw that! Thanks. Where would you execute that so that it is
done for all symonfy actions in all applications?

On Dec 24 2009, 2:02 am, Nicolas Lœuillet
nicolas.loeuil...@gmail.com wrote:
 Hi,

 Have a look here 
 :http://www.symfony-project.org/api/1_4/sfProjectConfiguration#method_...

 Nicolas

 On Dec 24, 8:45 am, Dennis gear...@sbcglobal.net wrote:

  I looked on the web and in this group and did not find it. I found how
  it WAS done in 1.0/1.1, but nothing else.


-- 
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: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-06 Thread Dennis
Yes, I used to use simple text editors with good hightlighting. No
more now.

With OOP programming, it's not enough. I now use Java Based 'Eclipse'
There's a PHP plugin for it.

It does:
  auto PHP docs on classes, functions, methods, vars
  class hierarchy exploration
  dynamic text highlighting so that you can see all occurrences of
text that you are interested in in the whole document
  It continuously interprets the PHP, showing where your errors are.
  It marks where the errors are on the vertical scroll bar and you can
click on the mark and go straight to the error.
  It shows ALL the inherited vars and methods in your class and IF
they are
inherited and from where.
  If a class or method is right clicked on, one of the choices is to
go to that
place in the file in which is is declared, (that doesn't always
work perfectly
for functions in the $this class.)
  It has a 'subclipse' plugin that makes using SVN MUCH easier.
  Has a decent help system.
  Does alot more that I don't know about :-)

It took a lot of courage and some climbing spurs to tackle the
learning curve. But
it was worth it. I don't plan on changing back to regular editors for
code ever again.

If my projects end up making money, Eclipse is one of the open source
projects that
I'm going to give money to.


On Jan 6, 4:15 pm, lawrence lawrence.krub...@gmail.com wrote:
  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 ;)

 Yes, people should consider this, especially if you do programming in
 other languages besides PHP. For years I preferred simple text editors
 like Kwrite and Kate for programming. But this last year I became a
 fan of NetBeans.
-- 
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] redirect method covert to amp;

2010-01-06 Thread chrisyue
in an action method
if I use
$this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' =
'3'));

it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a
bug? or I just use it wrong?
-- 
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] Not able to access foreign table through Propel

2010-01-06 Thread DEEPAK BHATIA
Hi,

The table reviewer_project_additional_checklist_table accesses the
project_additional_review_checklist_table as foreign table.

But I am not able to access the members of
project_additional_review_checklist_table.

$c = new Criteria();
$c-add(ReviewerProjectAdditionalChecklistTablePeer::REVIEW_ID,$rev_tupple-getId());
$c-add(ReviewerProjectAdditionalChecklistTablePeer::REVIEWER,$this-getUser()-getAttribute('emp_id'));
$this-projectcontent =
ReviewerProjectAdditionalChecklistTablePeer::doSelect($c);

foreach($this-projectcontent as $pt)
{
  echo $pt-getProjectAdditionalReviewChecklistTable()-getContent();
}

Error Message: Call to a member function getContent() on a non object

1.   project_additional_review_checklist_table:
   id:
   checklist_id: { type: INTEGER, foreignTable: checklist_table,
foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
   sap_code: { type: VARCHAR, size: '75', required: true, primaryKey: true,
foreignTable: project_table, foreignReference: sap_code, onDelete: RESTRICT,
onUpdate: RESTRICT }
   content: {type: LONGVARCHAR}
   status: {type: BOOLEAN}
   presence: {type: BOOLEAN}


2.  reviewer_project_additional_checklist_table:
   id:
   checklist_item_id: { type: INTEGER, foreignTable:
project_additional_review_checklist_table, foreignReference: id, onDelete:
RESTRICT, onUpdate: RESTRICT }
-- 

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: Not able to access foreign table through Propel

2010-01-06 Thread DEEPAK BHATIA

 Hi,

 The table reviewer_project_additional_checklist_table accesses the
 project_additional_review_checklist_table as foreign table.

 But I am not able to access the members of
 project_additional_review_checklist_table.

 $c = new Criteria();

 $c-add(ReviewerProjectAdditionalChecklistTablePeer::REVIEW_ID,$rev_tupple-getId());

 $c-add(ReviewerProjectAdditionalChecklistTablePeer::REVIEWER,$this-getUser()-getAttribute('emp_id'));
 $this-projectcontent =
 ReviewerProjectAdditionalChecklistTablePeer::doSelect($c);

 foreach($this-projectcontent as $pt)
 {
   echo $pt-getProjectAdditionalReviewChecklistTable()-getContent();
 }

 Error Message: Call to a member function getContent() on a non object

 1.   project_additional_review_checklist_table:
id:
checklist_id: { type: INTEGER, foreignTable: checklist_table,
 foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
sap_code: { type: VARCHAR, size: '75', required: true, primaryKey: true,
 foreignTable: project_table, foreignReference: sap_code, onDelete: RESTRICT,
 onUpdate: RESTRICT }
content: {type: LONGVARCHAR}
status: {type: BOOLEAN}
presence: {type: BOOLEAN}


 2.  reviewer_project_additional_checklist_table:
id:

review_id: { type: INTEGER, required: true, primaryKey: true,
foreignTable: review_table, foreignReference: id, onDelete: RESTRICT,
onUpdate: RESTRICT }
reviewer: { type: VARCHAR, size: '50', required: true, primaryKey: true,
foreignTable: emp_table, foreignReference: emp_id, onDelete: RESTRICT,
onUpdate: RESTRICT }

checklist_item_id: { type: INTEGER, foreignTable:
 project_additional_review_checklist_table, foreignReference: id, onDelete:
 RESTRICT, onUpdate: RESTRICT }

-- 

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: problem installing sfDoctrineGuard Plugin

2010-01-06 Thread Tom Ptacnik
I'm usin Symfony 1.4 and I have no problem with manual instalation of
sfDoctrineGuard Plugin (on windows platform)

symfony plugin:install ./sfDoctrineGuardPlugin-4.0.1.tgz
 plugin installing plugin ./sfDoctrineGuardPlugin-4.0.1.tgz
 sfSymfonyPluginManager Installation successful for plugin 
 ./sfDoctrineGuardPlugin-4.0.1.tgz


On 5 led, 16:38, el-sid sydneyari...@gmail.com wrote:
 thanks alot. it was deceptively simple but it worked. I must have
 missed a step somewhere.
 thanks again

 On Jan 5, 5:29 pm, Stéphane stephane.er...@gmail.com wrote:



  Please, download package, unzip it in your plugins directory and add the
  $this-enablePlugins('dirName'), in your projectConfiguration.class.php
  then plugin:publish-assets if needed. Check readme on plugin website.

  I'm pretty sure google would give you an answer near this one :-)

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

  On Tue, Jan 5, 2010 at 3:15 PM, el-sid sydneyari...@gmail.com wrote:
   ok...i downgraded to symfony 1.3 and downloaded sfDoctrineGuardPlugin
   4.0 and 3.0
   followed some advice on symfony forums to do this

   symfony plugin:install ./sfDoctrineGuardPlugin-3.0.0.tgz
   rm sfDoctrineGuardPlugin-3.0.0.tgz

   but the symfony tool still tries to connect to the internet, even
   though i am trying to do a local plugin install.
   Is there a way to unset this default choice?

   please help

   On Jan 4, 11:34 pm, el-sid sydneyari...@gmail.com wrote:
hi all
i'm using symfony 1.4 with version 4.0.1 of doctrineguardplugin.
i downloaded the package from symfony website. when i issue the
command

./symfony plugin:install  /path/to/sfDoctrineGuardPlugin.tzg

i get this error

unable to register channel pear.symfony.com

from the readme file, it says i can do a local install the way ive
done above. Is there a way i can stop plugin:install from refering to
the web, since the computer i am using syfony in is not connected?

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