Re: [symfony-users] Re: Jobeet tutorial | Day 3 | doctrine:insert-sql

2010-05-12 Thread Kim Rowan

Hi Graham

Thanks for your response.  I have followed all the instructions to the
letter; my config/databases.yml file looks like this:

all:
  doctrine:
class: sfDoctrineDatabase
param:
  dsn: 'mysql:host=localhost;dbname:jobeet'
  username: root
  password: secret

I appreciate your help in trying to sort this out!  Is there anything else I
could check?

Kind regards

Kim





On 11/5/10 17:37, grahamj42 graham...@orange.fr wrote:

 Did you follow the instructions under the subtitle The Database to
 create the schema and configure Symfony's config/databases.yml file
 with appropriate values for your database server? It looks to me as if
 this step failed. Symfony doesn't touch the database until the
 doctrine:insert-sql task.
 
 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en
 




This communication is from Cancer Research UK. Our website is at 
www.cancerresearchuk.org. We are a charity registered under number 1089464 and 
a company limited by guarantee registered in England  Wales under number 
4325234. Our registered address is 61 Lincoln's Inn Fields, London WC2A 3PX. 
Our central telephone number is 020 7242 0200.
 
This communication and any attachments contain information which is 
confidential and may also be privileged.   It is for the exclusive use of the 
intended recipient(s).  If you are not the intended recipient(s) please note 
that any form of disclosure, distribution, copying or use of this communication 
or the information in it or in any attachments is strictly prohibited and may 
be unlawful.  If you have received this communication in error, please notify 
the sender and delete the email and destroy any copies of it.
 
E-mail communications cannot be guaranteed to be secure or error free, as 
information could be intercepted, corrupted, amended, lost, destroyed, arrive 
late or incomplete, or contain viruses.  We do not accept liability for any 
such matters or their consequences.  Anyone who communicates with us by e-mail 
is taken to accept the risks in doing so.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Jobeet tutorial | Day 3 | doctrine:insert-sql

2010-05-11 Thread Kim Rowan
I am new to Symfony and Doctrine and I am trying to work my way
through the Jobeet tutorial (using v1.4).  I am currently stuck at the
following command:

php symfony doctrine:insert-sql

It gives me the following error in Terminal (I'm using a Mac 10.5.8):

  SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected.
Failing Query: CREATE TABLE jobeet_affiliate (id BIGINT
AUTO_INCREMENT, url VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL
UNIQUE, token VARCHAR(255) NOT NULL, is_active TINYINT(1) DEFAULT '0'
NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL,
PRIMARY KEY(id)) ENGINE = INNODB. Failing Query: CREATE TABLE
jobeet_affiliate (id BIGINT AUTO_INCREMENT, url VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE, token VARCHAR(255) NOT NULL,
is_active TINYINT(1) DEFAULT '0' NOT NULL, created_at DATETIME NOT
NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB

The preceding commands work fine:

doctrine:build --model
doctrine:build-sql

It's just the insert-sql bit that doesn't work.  I have been scouring
the internet all day (8 hours straight) trying to find a solution to
this.  Any help would be hugely appreciated.  I need to learn this
Framework asap and get started using it on an important project so the
pressure is really on.

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: isValid always showing false

2010-04-20 Thread kim
I want to validate my object cause these will not be given in by a
form but by URL (cause the frontend requires this)
so actualy i want a modelvalidation but i don't think this is possible
so i tried putting my object in the form and then
validate the form.  but it always returns false and i looked at it if
the form is shown it actualy shows the input is written in it
but still the valid doesn't return true (and al validation rules are
ok)

On 20 apr, 08:07, Gareth McCumskey gmccums...@gmail.com wrote:
 The isValid() method is a validation check on user input after a user
 has submitted a form based on the validators you create in the forms
 object. Its not used to see if the form structure itself is valid.





 On Mon, Apr 19, 2010 at 4:37 PM, kim thechosendra...@gmail.com wrote:
  hello,

  To see if a object is correct i put it in a form (but never show it)
  then i try the isValid() function but this always shows false
  i tried to check global errors, errors but all arrays are empty

  this is my code:

             $form = new paperForm($paper);
             $form-disableCSRFProtection();
             if($form-isValid()){
                 echo 'correct';
             }else{
                 echo 'incorrect';
             }

  PaperForm.Class

   public function configure()
   {
     $this-validatorSchema['email'] = new sfValidatorAnd(array($this-
 validatorSchema['email'], new sfValidatorEmail()));
   }

  it always shows incorrect. and when i echo $form-isValid(); it just
  shows nothing

  thanks
  Greetings

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

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

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] brackets in doctrine

2010-04-20 Thread kim
hi
i have to nest some or / and conditions
but i need brackets in my sql statement to do it in the right order
but how do you make this

is thould be in this form
(... OR ...) AND ...

thnx
greetings

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
I solved it now by doing this
... AND ...  OR ... AND ...

this works for now but i'm still wondering how you can do
functionality like with the brackets

On 20 apr, 15:24, kim thechosendra...@gmail.com wrote:
 hi
 i have to nest some or / and conditions
 but i need brackets in my sql statement to do it in the right order
 but how do you make this

 is thould be in this form
 (... OR ...) AND ...

 thnx
 greetings

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
oh sorry now i see i didn't mention it has to be done in doctrine
so this must be something like

createQuery()-where...-andWhere...-andAlso

of course your right to do this like you say in normal SQL but adding
this brackets is not possible in
doctrine (or at least i don't know the way to do this)

greetings

On 20 apr, 17:42, Daniel Lohse annismcken...@googlemail.com wrote:
 -where('column1 = ? AND (column2 = ? OR column3 = ?)', array(1, 2, 3));

 Just nest them inside one where clause. :)

 Sent from my iPhone

 On Apr 20, 2010, at 4:34 PM, kim thechosendra...@gmail.com wrote:





  I solved it now by doing this
  ... AND ...  OR ... AND ...

  this works for now but i'm still wondering how you can do
  functionality like with the brackets

  On 20 apr, 15:24, kim thechosendra...@gmail.com wrote:
  hi
  i have to nest some or / and conditions
  but i need brackets in my sql statement to do it in the right order
  but how do you make this

  is thould be in this form
  (... OR ...) AND ...

  thnx
  greetings

  --
  If you want to report a vulnerability issue on symfony, please send  
  it to security at symfony-project.com

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

  --
  If you want to report a vulnerability issue on symfony, please send  
  it to security at symfony-project.com

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

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: sort with paging

2010-04-19 Thread kim
alright this works
thanks a lot

but now i'm having another problem
i want to also sort on a variable that is first calculated in the
object and then returned (so this is not present in the database)
is there a way to sort the result from the pager?

greetings


On 16 apr, 13:43, Gareth McCumskey gmccums...@gmail.com wrote:
 Store the table parameters as a session variable with symfony's
 $this-getUser()-setAttribute() methods that can be called everytime
 you need to rebuild the table. We had to do this on our rather complex
 data table that has filtering by column values, sorting by column and
 pagination. It works really well.





 On Fri, Apr 16, 2010 at 2:40 PM, kim thechosendra...@gmail.com wrote:
  normaly that would be a good solution
  but in my case it isn't because you also have a search for this and
  the parameters are in a post
  but this is not in the same form and can't be in the same form so this
  will not work.

  On 16 apr, 12:09, Gareth McCumskey gmccums...@gmail.com wrote:
  I did mention this before on another question like this. Just create a
  link on the header to an action that then amends the criteria with an
  order by for the query each time and rerun the query with that new
  order by.

  On Fri, Apr 16, 2010 at 12:26 PM, kim thechosendra...@gmail.com wrote:
   oh yeah maybe i should also say it must be sorted by clicking the
   headers not just directly sort (cause this is just adding a order by
   and this is already done but i want them to be able by clicking the
   header it gets sorted on that table just like the standard admin does)

   On 16 apr, 11:21, kim thechosendra...@gmail.com wrote:
   thanks for you response
   i'm already using the sfDoctrinePager but i don't know how to use the
   addSortOrder?
   how do you use this?

   thanks :)
   greetings

   On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote:

use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
like : addSortOrder or, you can use a custom Query to solve the
problem.

On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com 
wrote:
 hi,

 I made a program with a table that you can search on and use
 pagination
 but now i want to sort it (like in the admin control but when i look
 at this code i can't finde the templates to see how it is done in
 there) and i couldn't use the admin because then i wouldn't have the
 liberty to change things and this is really needed for this project

 does anyone know how to do this sorting in symfony? i tried the 
 jquery
 sorter but this one only sorts the page that is shown but i need to
 sort everything.

 Thanks
 greetings

 --
 If you want to report a vulnerability issue on symfony, please send 
 it to security at symfony-project.com

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

--
Have a nice day!

Alecs
Certified ScrumMaster

There are no cannibals alive! I have ate the last one yesterday ...
I am on web:  http://www.alecslupu.ro/
I am on twitter:http://twitter.com/alecslupu
I am on linkedIn:http://www.linkedin.com/in/alecslupu
Tel: (+4)0722 621 280

--
If you want to report a vulnerability issue on symfony, please send 
it to security at symfony-project.com

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

- Tekst uit oorspronkelijk bericht weergeven -

   --
   If you want to report a vulnerability issue on symfony, please send it 
   to security at symfony-project.com

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

   - Tekst uit oorspronkelijk bericht weergeven -

   --
   If you want to report a vulnerability issue on symfony, please send it 
   to security at symfony-project.com

   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users

[symfony-users] isValid always showing false

2010-04-19 Thread kim
hello,

To see if a object is correct i put it in a form (but never show it)
then i try the isValid() function but this always shows false
i tried to check global errors, errors but all arrays are empty

this is my code:

$form = new paperForm($paper);
$form-disableCSRFProtection();
if($form-isValid()){
echo 'correct';
}else{
echo 'incorrect';
}

PaperForm.Class

  public function configure()
  {
$this-validatorSchema['email'] = new sfValidatorAnd(array($this-
validatorSchema['email'], new sfValidatorEmail()));
  }


it always shows incorrect. and when i echo $form-isValid(); it just
shows nothing

thanks
Greetings

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] call javascript from actionsclass

2010-04-16 Thread kim
hello

this should be a simple question but i really don't find the solution
on the internet

I want to start a javascript function from my actions class.
in my templates i can do this like
onChange=JavaScript:retrieve(this.options[this.selectedIndex].value);

but i want to do the same function in my actions class so when people
enter my page they directly see the result of this action without
having to click first on a listbox

thnx already
Greetings

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] sort with paging

2010-04-16 Thread kim
hi,

I made a program with a table that you can search on and use
pagination
but now i want to sort it (like in the admin control but when i look
at this code i can't finde the templates to see how it is done in
there) and i couldn't use the admin because then i wouldn't have the
liberty to change things and this is really needed for this project

does anyone know how to do this sorting in symfony? i tried the jquery
sorter but this one only sorts the page that is shown but i need to
sort everything.

Thanks
greetings

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: sort with paging

2010-04-16 Thread kim
thanks for you response
i'm already using the sfDoctrinePager but i don't know how to use the
addSortOrder?
how do you use this?

thanks :)
greetings

On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
 use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
 like : addSortOrder or, you can use a custom Query to solve the
 problem.





 On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com wrote:
  hi,

  I made a program with a table that you can search on and use
  pagination
  but now i want to sort it (like in the admin control but when i look
  at this code i can't finde the templates to see how it is done in
  there) and i couldn't use the admin because then i wouldn't have the
  liberty to change things and this is really needed for this project

  does anyone know how to do this sorting in symfony? i tried the jquery
  sorter but this one only sorts the page that is shown but i need to
  sort everything.

  Thanks
  greetings

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

 --
 Have a nice day!

 Alecs
 Certified ScrumMaster

 There are no cannibals alive! I have ate the last one yesterday ...
 I am on web:  http://www.alecslupu.ro/
 I am on twitter:http://twitter.com/alecslupu
 I am on linkedIn:http://www.linkedin.com/in/alecslupu
 Tel: (+4)0722 621 280

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: sort with paging

2010-04-16 Thread kim
oh yeah maybe i should also say it must be sorted by clicking the
headers not just directly sort (cause this is just adding a order by
and this is already done but i want them to be able by clicking the
header it gets sorted on that table just like the standard admin does)

On 16 apr, 11:21, kim thechosendra...@gmail.com wrote:
 thanks for you response
 i'm already using the sfDoctrinePager but i don't know how to use the
 addSortOrder?
 how do you use this?

 thanks :)
 greetings

 On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote:





  use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
  like : addSortOrder or, you can use a custom Query to solve the
  problem.

  On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com wrote:
   hi,

   I made a program with a table that you can search on and use
   pagination
   but now i want to sort it (like in the admin control but when i look
   at this code i can't finde the templates to see how it is done in
   there) and i couldn't use the admin because then i wouldn't have the
   liberty to change things and this is really needed for this project

   does anyone know how to do this sorting in symfony? i tried the jquery
   sorter but this one only sorts the page that is shown but i need to
   sort everything.

   Thanks
   greetings

   --
   If you want to report a vulnerability issue on symfony, please send it to 
   security at symfony-project.com

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

  --
  Have a nice day!

  Alecs
  Certified ScrumMaster

  There are no cannibals alive! I have ate the last one yesterday ...
  I am on web:  http://www.alecslupu.ro/
  I am on twitter:http://twitter.com/alecslupu
  I am on linkedIn:http://www.linkedin.com/in/alecslupu
  Tel: (+4)0722 621 280

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

  - Tekst uit oorspronkelijk bericht weergeven -

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: sort with paging

2010-04-16 Thread kim
normaly that would be a good solution
but in my case it isn't because you also have a search for this and
the parameters are in a post
but this is not in the same form and can't be in the same form so this
will not work.



On 16 apr, 12:09, Gareth McCumskey gmccums...@gmail.com wrote:
 I did mention this before on another question like this. Just create a
 link on the header to an action that then amends the criteria with an
 order by for the query each time and rerun the query with that new
 order by.





 On Fri, Apr 16, 2010 at 12:26 PM, kim thechosendra...@gmail.com wrote:
  oh yeah maybe i should also say it must be sorted by clicking the
  headers not just directly sort (cause this is just adding a order by
  and this is already done but i want them to be able by clicking the
  header it gets sorted on that table just like the standard admin does)

  On 16 apr, 11:21, kim thechosendra...@gmail.com wrote:
  thanks for you response
  i'm already using the sfDoctrinePager but i don't know how to use the
  addSortOrder?
  how do you use this?

  thanks :)
  greetings

  On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote:

   use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
   like : addSortOrder or, you can use a custom Query to solve the
   problem.

   On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com wrote:
hi,

I made a program with a table that you can search on and use
pagination
but now i want to sort it (like in the admin control but when i look
at this code i can't finde the templates to see how it is done in
there) and i couldn't use the admin because then i wouldn't have the
liberty to change things and this is really needed for this project

does anyone know how to do this sorting in symfony? i tried the jquery
sorter but this one only sorts the page that is shown but i need to
sort everything.

Thanks
greetings

--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.com

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

   --
   Have a nice day!

   Alecs
   Certified ScrumMaster

   There are no cannibals alive! I have ate the last one yesterday ...
   I am on web:  http://www.alecslupu.ro/
   I am on twitter:http://twitter.com/alecslupu
   I am on linkedIn:http://www.linkedin.com/in/alecslupu
   Tel: (+4)0722 621 280

   --
   If you want to report a vulnerability issue on symfony, please send it 
   to security at symfony-project.com

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

   - Tekst uit oorspronkelijk bericht weergeven -

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

  - Tekst uit oorspronkelijk bericht weergeven -

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

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

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit

[symfony-users] Re: call javascript from actionsclass

2010-04-16 Thread kim
no because there is code needed from the javascript (because i work
with AJAX) so i can only do this by calling that function in my
javascript
but i don't know how to do this



On 16 apr, 13:52, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
 Can you not just output the options with PHP as HTML in the first page call?





 On Fri, Apr 16, 2010 at 5:29 AM, kim thechosendra...@gmail.com wrote:
  hello

  this should be a simple question but i really don't find the solution
  on the internet

  I want to start a javascript function from my actions class.
  in my templates i can do this like
  onChange=JavaScript:retrieve(this.options[this.selectedIndex].value);

  but i want to do the same function in my actions class so when people
  enter my page they directly see the result of this action without
  having to click first on a listbox

  thnx already
  Greetings

  --
  If you want to report a vulnerability issue on symfony, please send it to 
  security at symfony-project.com

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

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

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

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: sort with paging

2010-04-16 Thread kim
now you mention it this should work.
I'll try it out
thnx a lot :)

On 16 apr, 13:43, Gareth McCumskey gmccums...@gmail.com wrote:
 Store the table parameters as a session variable with symfony's
 $this-getUser()-setAttribute() methods that can be called everytime
 you need to rebuild the table. We had to do this on our rather complex
 data table that has filtering by column values, sorting by column and
 pagination. It works really well.





 On Fri, Apr 16, 2010 at 2:40 PM, kim thechosendra...@gmail.com wrote:
  normaly that would be a good solution
  but in my case it isn't because you also have a search for this and
  the parameters are in a post
  but this is not in the same form and can't be in the same form so this
  will not work.

  On 16 apr, 12:09, Gareth McCumskey gmccums...@gmail.com wrote:
  I did mention this before on another question like this. Just create a
  link on the header to an action that then amends the criteria with an
  order by for the query each time and rerun the query with that new
  order by.

  On Fri, Apr 16, 2010 at 12:26 PM, kim thechosendra...@gmail.com wrote:
   oh yeah maybe i should also say it must be sorted by clicking the
   headers not just directly sort (cause this is just adding a order by
   and this is already done but i want them to be able by clicking the
   header it gets sorted on that table just like the standard admin does)

   On 16 apr, 11:21, kim thechosendra...@gmail.com wrote:
   thanks for you response
   i'm already using the sfDoctrinePager but i don't know how to use the
   addSortOrder?
   how do you use this?

   thanks :)
   greetings

   On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote:

use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
like : addSortOrder or, you can use a custom Query to solve the
problem.

On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com 
wrote:
 hi,

 I made a program with a table that you can search on and use
 pagination
 but now i want to sort it (like in the admin control but when i look
 at this code i can't finde the templates to see how it is done in
 there) and i couldn't use the admin because then i wouldn't have the
 liberty to change things and this is really needed for this project

 does anyone know how to do this sorting in symfony? i tried the 
 jquery
 sorter but this one only sorts the page that is shown but i need to
 sort everything.

 Thanks
 greetings

 --
 If you want to report a vulnerability issue on symfony, please send 
 it to security at symfony-project.com

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

--
Have a nice day!

Alecs
Certified ScrumMaster

There are no cannibals alive! I have ate the last one yesterday ...
I am on web:  http://www.alecslupu.ro/
I am on twitter:http://twitter.com/alecslupu
I am on linkedIn:http://www.linkedin.com/in/alecslupu
Tel: (+4)0722 621 280

--
If you want to report a vulnerability issue on symfony, please send 
it to security at symfony-project.com

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

- Tekst uit oorspronkelijk bericht weergeven -

   --
   If you want to report a vulnerability issue on symfony, please send it 
   to security at symfony-project.com

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

   - Tekst uit oorspronkelijk bericht weergeven -

   --
   If you want to report a vulnerability issue on symfony, please send it 
   to security at symfony-project.com

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

[symfony-users] error with the file() command

2010-04-12 Thread kim
hi,

i'm trying to ewport pictures as a zip file.
This works for local pictures but from the moment on i try to use it
on pictures from the server (or other sites)
it stops working and this is because the file() command doesn't work
on url's with me? after a minute my apache crashes

When i look at my logs i see an error complaining about php5ts.dll in
my httpd.exe.

Does anyone know how to solve this? or are there ways in symfony to do
this without using the file or fopen command?

greetz and thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: save xml php

2010-04-08 Thread kim
hmmm strange my symfony doesn't recognize the setHeader from
getResponse()

greetings

On 7 apr, 16:45, Stéphane stephane.er...@gmail.com wrote:
 $this-getReponse()-setHeader('Content-type', $documentMIMEType);
 in your action ($this is instance of sfActions)

 http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...

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



 On Wed, Apr 7, 2010 at 5:37 PM, kim thechosendra...@gmail.com wrote:
  thnanks this is indeed what i'm searching for but i was wondering how
  i can set this headers
  so that the user can select by himself where the file will be
  downloaded

  greetings

  On 7 apr, 15:31, Christopher Schnell ty...@mda.ch wrote:
   You have to set the http headers. Unfortunately I don't have an example
  at
   hand, but this should get you started.

   Don't forget to turn off layout.

   Regards,
   Christopher.

   -Ursprüngliche Nachricht-
   Von: symfony-users@googlegroups.com [mailto:
  symfony-us...@googlegroups.com]
   Im Auftrag von kim
   Gesendet: Mittwoch, 7. April 2010 12:57
   An: symfony users
   Betreff: [symfony-users] save xml php

   hello,

   i have parsed a xml from a string with the simplexml_load_string()
   function
   but now i want to show a save file dialog so the user can download the
   xml file
   but how do i have to do this?

   thanks

   --
   If you want to report a vulnerability issue on symfony, please send it to
   security at symfony-project.com

   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
   For more options, visit this group athttp://
  groups.google.com/group/symfony-users?hl=en

   To unsubscribe, reply using remove me as the subject.

  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com

  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en- Tekst uit oorspronkelijk 
 bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: save xml php

2010-04-08 Thread kim
I'm using symfony-1.4.3 and my php version is 5.3

On 8 apr, 09:31, Stéphane stephane.er...@gmail.com wrote:
 What is your symfony version ?

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



 On Thu, Apr 8, 2010 at 10:27 AM, kim thechosendra...@gmail.com wrote:
  hmmm strange my symfony doesn't recognize the setHeader from
  getResponse()

  greetings

  On 7 apr, 16:45, Stéphane stephane.er...@gmail.com wrote:
   $this-getReponse()-setHeader('Content-type', $documentMIMEType);
   in your action ($this is instance of sfActions)

  http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...

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

   On Wed, Apr 7, 2010 at 5:37 PM, kim thechosendra...@gmail.com wrote:
thnanks this is indeed what i'm searching for but i was wondering how
i can set this headers
so that the user can select by himself where the file will be
downloaded

greetings

On 7 apr, 15:31, Christopher Schnell ty...@mda.ch wrote:
 You have to set the http headers. Unfortunately I don't have an
  example
at
 hand, but this should get you started.

 Don't forget to turn off layout.

 Regards,
 Christopher.

 -Ursprüngliche Nachricht-
 Von: symfony-users@googlegroups.com [mailto:
symfony-us...@googlegroups.com]
 Im Auftrag von kim
 Gesendet: Mittwoch, 7. April 2010 12:57
 An: symfony users
 Betreff: [symfony-users] save xml php

 hello,

 i have parsed a xml from a string with the simplexml_load_string()
 function
 but now i want to show a save file dialog so the user can download
  the
 xml file
 but how do i have to do this?

 thanks

 --
 If you want to report a vulnerability issue on symfony, please send
  it to
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
  symfony-users%2bunsubscr...@goog­legroups.com
 For more options, visit this group athttp://
groups.google.com/group/symfony-users?hl=en

 To unsubscribe, reply using remove me as the subject.

--
If you want to report a vulnerability issue on symfony, please send it
  to
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
  symfony-users%2bunsubscr...@goog­legroups.com
For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en-Tekst uit
  oorspronkelijk bericht niet weergeven -

   - Tekst uit oorspronkelijk bericht weergeven -

  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com

  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­legroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en- Tekst uit oorspronkelijk 
 bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: save xml php

2010-04-08 Thread kim
then how do you let this code work if you by example press a button?
and i will probaly also need to fix the absolute path of the xml file
but i can solve this with an absolute path (so don't worry about that)

already thanks for your solution

On 8 apr, 11:19, Земсков Юрий y...@zemskov.name wrote:
 I'm using this code in view.yml file located in /config/ folder of the
 current module:

 webmoneyXmlSuccess:
   has_layout: false
   http_metas:
     content-description: File Transfer
     content-type: application/xml
     content-disposition: 'attachment; filename=payment.xml'

 Âû ïèñàëè 8 ?? 2010 ?., 13:02:01:





  I'm using symfony-1.4.3 and my php version is 5.3
  On 8 apr, 09:31, Stéphane stephane.er...@gmail.com wrote:
  What is your symfony version ?

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

  On Thu, Apr 8, 2010 at 10:27 AM, kim thechosendra...@gmail.com wrote:
   hmmm strange my symfony doesn't recognize the setHeader from
   getResponse()

   greetings

   On 7 apr, 16:45, Stéphane stephane.er...@gmail.com wrote:
$this-getReponse()-setHeader('Content-type', $documentMIMEType);
in your action ($this is instance of sfActions)

   http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...

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

On Wed, Apr 7, 2010 at 5:37 PM, kim thechosendra...@gmail.com wrote:
 thnanks this is indeed what i'm searching for but i was wondering how
 i can set this headers
 so that the user can select by himself where the file will be
 downloaded

 greetings

 On 7 apr, 15:31, Christopher Schnell ty...@mda.ch wrote:
  You have to set the http headers. Unfortunately I don't have an
   example
 at
  hand, but this should get you started.

  Don't forget to turn off layout.

  Regards,
  Christopher.

  -Ursprüngliche Nachricht-
  Von: symfony-users@googlegroups.com [mailto:
 symfony-us...@googlegroups.com]
  Im Auftrag von kim
  Gesendet: Mittwoch, 7. April 2010 12:57
  An: symfony users
  Betreff: [symfony-users] save xml php

  hello,

  i have parsed a xml from a string with the simplexml_load_string()
  function
  but now i want to show a save file dialog so the user can download
   the
  xml file
  but how do i have to do this?

  thanks

  --
  If you want to report a vulnerability issue on symfony, please send
   it to
  security at symfony-project.com

  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­­legroups.com
   symfony-users%2bunsubscr...@goog­legroups.com
  For more options, visit this group athttp://
 groups.google.com/group/symfony-users?hl=en

  To unsubscribe, reply using remove me as the subject.

 --
 If you want to report a vulnerability issue on symfony, please send 
 it
   to
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­­legroups.com
   symfony-users%2bunsubscr...@goog­legroups.com
 For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en-Tekstuit
   oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

   --
   If you want to report a vulnerability issue on symfony, please send it to
   security at symfony-project.com

   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog­­legroups.com
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en-Tekst uit 
  oorspronkelijk bericht niet weergeven -

  - Tekst uit oorspronkelijk bericht weergeven -

 --
 Ñ óâàæåíèåì,
  ???                           mailto:y...@zemskov.name- Tekst uit 
 oorspronkelijk bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users

[symfony-users] Re: save xml php

2010-04-08 Thread kim
thanks your code works
but still having one probleme
a sign like  get interpretted like lt;

On 8 apr, 12:20, Земсков Юрий y...@zemskov.name wrote:
 button points browser to (js) window.location='balance/webmoneyXml'

 action executeWebmoneyXml() retrieves data

 modules/balance/templates/webmoneyXmlSuccess.php just echos xml code.

 and  modules/balance/config/view.yml  setups  headers so xml code will
 not be displayed, but downloaded by the browser.

 Вы писали 8 апреля 2010 г., 14:49:04:





  then how do you let this code work if you by example press a button?
  and i will probaly also need to fix the absolute path of the xml file
  but i can solve this with an absolute path (so don't worry about that)
  already thanks for your solution
  On 8 apr, 11:19, Земсков Юрий y...@zemskov.name wrote:
  I'm using this code in view.yml file located in /config/ folder of the
  current module:

  webmoneyXmlSuccess:
has_layout: false
http_metas:
  content-description: File Transfer
  content-type: application/xml
  content-disposition: 'attachment; filename=payment.xml'

  Au ienaee 8 ?? 2010 ?., 13:02:01:

   I'm using symfony-1.4.3 and my php version is 5.3
   On 8 apr, 09:31, Stephane stephane.er...@gmail.com wrote:
   What is your symfony version ?

   Before Printing, Think about Your Environmental Responsibility!
   Avant d'Imprimer, Pensez a Votre Responsabilitee Environnementale!

   On Thu, Apr 8, 2010 at 10:27 AM, kim thechosendra...@gmail.com wrote:
hmmm strange my symfony doesn't recognize the setHeader from
getResponse()

greetings

On 7 apr, 16:45, Stephane stephane.er...@gmail.com wrote:
 $this-getReponse()-setHeader('Content-type', $documentMIMEType);
 in your action ($this is instance of sfActions)

http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...

 Before Printing, Think about Your Environmental Responsibility!
 Avant d'Imprimer, Pensez a Votre Responsabilitee Environnementale!

 On Wed, Apr 7, 2010 at 5:37 PM, kim thechosendra...@gmail.com 
 wrote:
  thnanks this is indeed what i'm searching for but i was wondering 
  how
  i can set this headers
  so that the user can select by himself where the file will be
  downloaded

  greetings

  On 7 apr, 15:31, Christopher Schnell ty...@mda.ch wrote:
   You have to set the http headers. Unfortunately I don't have an
example
  at
   hand, but this should get you started.

   Don't forget to turn off layout.

   Regards,
   Christopher.

   -Ursprungliche Nachricht-
   Von: symfony-users@googlegroups.com [mailto:
  symfony-us...@googlegroups.com]
   Im Auftrag von kim
   Gesendet: Mittwoch, 7. April 2010 12:57
   An: symfony users
   Betreff: [symfony-users] save xml php

   hello,

   i have parsed a xml from a string with the 
   simplexml_load_string()
   function
   but now i want to show a save file dialog so the user can 
   download
the
   xml file
   but how do i have to do this?

   thanks

   --
   If you want to report a vulnerability issue on symfony, please 
   send
it to
   security at symfony-project.com

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

   To unsubscribe, reply using remove me as the subject.

  --
  If you want to report a vulnerability issue on symfony, please 
  send it
to
  security at symfony-project.com

  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to 
  symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog---legroups.com
symfony-users%2bunsubscr...@goog-legroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en-Tekstuit
oorspronkelijk bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -

--
If you want to report a vulnerability issue on symfony, please send 
it to
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr

[symfony-users] save xml php

2010-04-07 Thread kim
hello,

i have parsed a xml from a string with the simplexml_load_string()
function
but now i want to show a save file dialog so the user can download the
xml file
but how do i have to do this?

thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Multiselect images for export

2010-03-31 Thread kim
Hello,

I was wondering how i can make next possible:

I want to be able to select images (that i got the URL from out of a
database) and when i'm done selecting the images i want i should be
able to press a button to write these URL's to a file

Does someone know how i can make a list of images that stores the
selected images in a ArrayList?

Thanks a lot for future answers :)

greetings
Kim

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: error installing sfDoctrineGuardPlugin

2010-03-19 Thread kim
I did already do research to it and in php5.3 some of the functions
are not supported any more
but the strange thing is afterwords he tells me the installation was
succesfull, but when I start
my form and i go to the login page then my login page is secured
(while this is nowhere turned on)
So it is kind of impossible to log in if you have to be logged in to
see the login page :s

or am I searching the fault in the wrong place?

On 19 mrt, 10:46, Marius Rugan mariusru...@gmail.com wrote:
 Hi,
 - sounds like a PEAR error so try to update PEAR
 if not
 - install sfDoctrineGuardPlugin by hand placing it in the plugins dir (or
 svn co/export it from trunk/branches - see readme of plugin)
 i would first try browsing around to see if php 5.3 is compatible with
 symfony
 unfortunately, i'm stuck into the 5.2 line so i can't answer that.

 have fun
 _
 Marius Rugan

 [image: Google Talk:] mariusrugan [image: Skype:] marius.rugan
 [image: Linkedin] http://www.linkedin.com/in/mariusrugan[image:
 del.icio.us] http://delicious.com/mrugan[image:
 Twitter]http://twitter.com/mariusrugan



 On Thu, Mar 18, 2010 at 5:13 PM, kim thechosendra...@gmail.com wrote:
  Hello,

  When i want to install sfDoctrineGuardPlugin I get following output

  C:\Users\Kimsymfony plugin:install sfDoctrineGuardPlugin
   plugin    installing plugin sfDoctrineGuardPlugin
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR

[symfony-users] Re: error installing sfDoctrineGuardPlugin

2010-03-19 Thread kim
I fixed these errors by downgrading my PHP but i still cant log in
so like the tutorial says in chapter 13 i installed sfDoctrineGuard
put the security right but when i click the login button i get to the
same page but when i take a better look i see it's actually the login
page but this page is also secures so i can't see the page cause it
is not public and even when i turn off all security, then still this
page
is secured?

So plz can you help me with that?  That would be great

On 19 mrt, 10:46, Marius Rugan mariusru...@gmail.com wrote:
 Hi,
 - sounds like a PEAR error so try to update PEAR
 if not
 - install sfDoctrineGuardPlugin by hand placing it in the plugins dir (or
 svn co/export it from trunk/branches - see readme of plugin)
 i would first try browsing around to see if php 5.3 is compatible with
 symfony
 unfortunately, i'm stuck into the 5.2 line so i can't answer that.

 have fun
 _
 Marius Rugan

 [image: Google Talk:] mariusrugan [image: Skype:] marius.rugan
 [image: Linkedin] http://www.linkedin.com/in/mariusrugan[image:
 del.icio.us] http://delicious.com/mrugan[image:
 Twitter]http://twitter.com/mariusrugan



 On Thu, Mar 18, 2010 at 5:13 PM, kim thechosendra...@gmail.com wrote:
  Hello,

  When i want to install sfDoctrineGuardPlugin I get following output

  C:\Users\Kimsymfony plugin:install sfDoctrineGuardPlugin
   plugin    installing plugin sfDoctrineGuardPlugin
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431
  PHP Deprecated:  Assigning the return value of new by reference is
  deprecated in
   C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439

  Deprecated: Assigning the return value of new by reference is
  deprecated in C:\w
  amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439
  PHP Deprecated:  Assigning the return value of new by reference

[symfony-users] Security: can't log in

2010-03-18 Thread kim
I'm getting this strange fault:

I'm using sfDoctrineGuardPlugin (like described in the book) and I
follow all steps.  When i test it, then indeed my backend page is
secured but when i press the Proceed to login link i come to the
login page but i don't get to see it because to see that page i have
to be logged in.  Even when i put all security out then still he is
asking me to be logged in to see the page (what is impossible because
I must log in on that page!)

does anyone know the solution for this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] error installing sfDoctrineGuardPlugin

2010-03-18 Thread kim
\php\php5.3.0\PEAR\PEAR\Installer.php on line 1697
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 243

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 243
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 259

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 259
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 799

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Downloader.php on line 799
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\REST\11.php on line 43

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\REST\11.php on line 43
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\REST\10.php on line 42

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\REST\10.php on line 42
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 199

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 199
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1491

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1491
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1503

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1503
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1511

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1511
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1514

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\ChannelFile.php on line 1514
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2\Validator.php on
line 1741

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2\Validator.php on line
1741
 sfSymfonyPluginManager Plugin is already installed


does anyone know how to solve this probleme?  I already fixed e few.

thanks

Greetings Kim

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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