[symfony-users] Re: cache invalidation on server cluster

2010-04-16 Thread pghoratiu
Hi

@alex - we need to cache partials and components mostly, so we will
probably override the caching methodology
used by symfony, memcache I don't think it's yet an option for us.
Will investigate it how to use it for caching pieces of
templates, we are currently using it to store shared counters and that
works fine for us.
Anyone has experience with centralized caching methodology +
invalidation?

@eno - Will probably will go by this route (cache manager). In this
case how do you communicate to other
servers that the cache should be deleted (requesting a web page?). I'm
thinking of creating a table that would list the
caches that should be invalidated and then each server should be
checking this table every 20 seconds for cache
invalidation purposes. What do you think?

I always liked the way one can set up caches in sqlite and delete them
by using a regex, has anyone used this?

   gabriel

On Apr 15, 9:42 pm, Eno symb...@gmail.com wrote:
 On Thu, 15 Apr 2010, pghoratiu wrote:
  My question is how do you deal with cache invalidation when deploying
  a symfony application across mutiple servers?
  Which solution would you choose to perform the cache invalidation
  (centralized cache vs. distributed cache manager)?

 We have a distributed web application with split web and image servers.
 We are using memcache for caching query results and routing. Each web
 server has local (file) cache for caching template fragments.

 We wrote a cache manager module that has actions for all the pieces of
 cache we want to manage. Requests to the cache module are filtered (so
 only traffic from our own servers can ever invalidate cache). For pages
 that need to be updated fairly frequently we set a small cache lifetime
 (like 15 or 30 mins).

 Of course, all of this is sitting behind a firewall and Cisco load
 balancers...

 --
 A

-- 
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: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
This happens with both Symfony 1.1 (old site), and Symfony 1.4
(upgrade).

With Symfony 1.4 the problem is worse, because the generated Base
class extends the fake plugin.

On Apr 12, 3:27 pm, Jo Carter goo...@jocarter.co.uk wrote:
 I have a bizarre problem with a YAML file creating two copies of a
 Plugin class (one in the Plugin, and one in the project).  It's only
 some tables in the YAML file, not all.

 The YAML file is as follows: (all line endings are UNIX)

 assetImage:  # This one works fine
   columns:
     id:                            { type: integer, primary: true,
 autoincrement: true }
     filename:                      { type: string(30) }
     alt:                           { type: string(255) }
     title:                         { type: string(255) }
     width:                         { type: integer }
     height:                        { type: integer }

   actAs:
     I18n:
       fields: [alt, title]
       # length 5 because the symfony cultures are 5 chars long
       length: 5

 assetDocument:  # This one has problems
   columns:
     id:                            { type: integer, primary: true,
 autoincrement: true }
     filename:                      { type: string(30) }
     original_filename:             { type: string(255) }
     title:                         { type: string(255) }
     size:                          { type: integer(2) }
     filetype:                      { type: string(5) }

   actAs:
     I18n:
       fields: [title]
       # length 5 because the symfony cultures are 5 chars long
       length: 5

 When I run ./doctrine:build-forms frontend in 1.1 and ./doctrine build
 --forms in 1.4 I get extra classes generated in my lib/forms folder.

 ?       lib/form/doctrine/base/BasePluginassetDocumentForm.class.php
 ?       lib/form/doctrine/base/
 BasePluginassetDocumentTranslationForm.class.php
 M       lib/form/doctrine/epifonyAssetPlugin/base/
 BaseassetDocumentTranslationForm.class.php
 M       lib/form/doctrine/assetPlugin/base/
 BaseassetDocumentForm.class.php
 M       lib/form/doctrine/epifonyAssetPlugin/base/
 BaseassetImageTranslationForm.class.php
 M       lib/form/doctrine/assetPlugin/base/
 BaseassetImageForm.class.php

 And the same with the models, and filter forms (1.4 only).

 The classes in the Plugin are set up correctly.

 Additionally, when I run the new migration task in 1.4, it adds the
 asset_document table to the list of things to be removed.

 I'm out of ideas.  Has anyone ever come across something like this
 before?

 Jo

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


Re: [symfony-users] sort with paging

2010-04-16 Thread Alexandru-Emil Lupu
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 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


Re: [symfony-users] Re: sort with paging

2010-04-16 Thread Gareth McCumskey
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-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




-- 
Gareth McCumskey
http://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 at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Jérémie

Hi there,
I just watched a video of Fabien doing his presentation of SF2.0. He 
explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD mypwd to 
give the application the database pwd.

My question is: what do I have to write in the config.yml file?

doctrine.dbal:
driver: PDOMySql
dbname: mydb
user:   myuser
password: ???

Thanks
Jérémie

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

Re: [symfony-users] Re: sort with paging

2010-04-16 Thread Gareth McCumskey
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-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 

Re: [symfony-users] call javascript from actionsclass

2010-04-16 Thread Tom Haskins-Vaughan
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 at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] symfony 1.4 install

2010-04-16 Thread Angel
When I run this command from the sfproject directory:
php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME

I receive this error:
Could not open input file: lib/vendor/symfony/data/bin/symfony

I performed this checkout:
svn checkout http://svn.symfony-project.com/branches/1.4/

OS fedora 12 (constantine)
php -v
PHP 5.3.2 (cli) (built: Mar  6 2010 08:33:02)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

I also ran the same command of the install on a web server and
received the same error.

Any ideas? Please advise.

Thank you.

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

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


Re: [symfony-users] symfony 1.4 install

2010-04-16 Thread Gábor Fási
It means the file is not there. Did you check it?

On Fri, Apr 16, 2010 at 04:33, Angel angel.marq...@gmail.com wrote:
 When I run this command from the sfproject directory:
 php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME

 I receive this error:
 Could not open input file: lib/vendor/symfony/data/bin/symfony

 I performed this checkout:
 svn checkout http://svn.symfony-project.com/branches/1.4/

 OS fedora 12 (constantine)
 php -v
 PHP 5.3.2 (cli) (built: Mar  6 2010 08:33:02)
 Copyright (c) 1997-2010 The PHP Group
 Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

 I also ran the same command of the install on a web server and
 received the same error.

 Any ideas? Please advise.

 Thank you.

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

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


-- 
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: 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: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
The plugin class wasn't declared as abstract.  Problem solved

On Apr 16, 9:37 am, Jo Carter goo...@jocarter.co.uk wrote:
 This happens with both Symfony 1.1 (old site), and Symfony 1.4
 (upgrade).

 With Symfony 1.4 the problem is worse, because the generated Base
 class extends the fake plugin.

 On Apr 12, 3:27 pm, Jo Carter goo...@jocarter.co.uk wrote:





  I have a bizarre problem with a YAML file creating two copies of a
  Plugin class (one in the Plugin, and one in the project).  It's only
  some tables in the YAML file, not all.

  The YAML file is as follows: (all line endings are UNIX)

  assetImage:  # This one works fine
    columns:
      id:                            { type: integer, primary: true,
  autoincrement: true }
      filename:                      { type: string(30) }
      alt:                           { type: string(255) }
      title:                         { type: string(255) }
      width:                         { type: integer }
      height:                        { type: integer }

    actAs:
      I18n:
        fields: [alt, title]
        # length 5 because the symfony cultures are 5 chars long
        length: 5

  assetDocument:  # This one has problems
    columns:
      id:                            { type: integer, primary: true,
  autoincrement: true }
      filename:                      { type: string(30) }
      original_filename:             { type: string(255) }
      title:                         { type: string(255) }
      size:                          { type: integer(2) }
      filetype:                      { type: string(5) }

    actAs:
      I18n:
        fields: [title]
        # length 5 because the symfony cultures are 5 chars long
        length: 5

  When I run ./doctrine:build-forms frontend in 1.1 and ./doctrine build
  --forms in 1.4 I get extra classes generated in my lib/forms folder.

  ?       lib/form/doctrine/base/BasePluginassetDocumentForm.class.php
  ?       lib/form/doctrine/base/
  BasePluginassetDocumentTranslationForm.class.php
  M       lib/form/doctrine/epifonyAssetPlugin/base/
  BaseassetDocumentTranslationForm.class.php
  M       lib/form/doctrine/assetPlugin/base/
  BaseassetDocumentForm.class.php
  M       lib/form/doctrine/epifonyAssetPlugin/base/
  BaseassetImageTranslationForm.class.php
  M       lib/form/doctrine/assetPlugin/base/
  BaseassetImageForm.class.php

  And the same with the models, and filter forms (1.4 only).

  The classes in the Plugin are set up correctly.

  Additionally, when I run the new migration task in 1.4, it adds the
  asset_document table to the list of things to be removed.

  I'm out of ideas.  Has anyone ever come across something like this
  before?

  Jo

 --
 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] Question about routing

2010-04-16 Thread Javier Garcia

Hi,

i've installed sfDoctrineGuardExtraPlugin.

I don't know what i touched exactly but now when i ask for 
sfGuardRegister/register this is showed:


The route sf_guard_register does not exist.


To debug my problem I have installed sfDGEP in another project, and i 
found out that if i remove the line below in 
plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I 
get the same error.


class sfGuardExtraRouting
{
  static public function listenToRoutingLoadConfigurationEvent(sfEvent 
$event)

  {

$r-prependRoute('sf_guard_register', new sfRoute('/register', 
array('module' = 'sfGuardRegister', 'action' = 'register')));


  }
}

So... if in my first project i have that line, what is happening exactly?


Javi

Ubuntu 8.04

--
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] IE shows errors related to Prototype in Symfony 1.2.12

2010-04-16 Thread Peter Peltonen
I am maintaining an application using Symfony 1.2.12.

I noticed that on one page IE  shows an error message related to Prototype:

  Object required prototype.js line 3936 character 5

Both IE6 and IE8 complain about the page.

How to resolve this? Would updating Prototype help (can I just replace
the directory with a new one)?
Or should I consider updating to 1.3 (is that a lot of work)?

Best,
Peter

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

Re: [symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Fabien Potencier

On 4/16/10 1:12 PM, Jérémie wrote:

Hi there,
I just watched a video of Fabien doing his presentation of SF2.0. He
explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD mypwd to
give the application the database pwd.
My question is: what do I have to write in the config.yml file?

doctrine.dbal:
driver: PDOMySql
dbname: mydb
user: myuser
password: ???


Nothing. You just don't provide the field, or put anything, it will be 
overridden.


Fabien



Thanks
Jérémie



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

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


Re: [symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Jérémie

Fabien Potencier wrote:

On 4/16/10 1:12 PM, Jérémie wrote:

Hi there,
I just watched a video of Fabien doing his presentation of SF2.0. He
explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD mypwd to
give the application the database pwd.
My question is: what do I have to write in the config.yml file?

doctrine.dbal:
driver: PDOMySql
dbname: mydb
user: myuser
password: ???


Nothing. You just don't provide the field, or put anything, it will be 
overridden.
Thanks for your answer, but if I do so, I get an Access denied for user 
'root'@'localhost' (using password: NO)
(BTW, I don't know why it's using root as a user name, it's not what I 
wrote in the config.yml file)


The SYMFONY_...PASSWORD is ok, I can see it when I use phpinfo()

Jérémie

--
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] Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread WallTearer
Hello group.

I'm reading symfony docs, but can't get what is the difference between
sfFormDoctrine methods:
doSave()
save()
updateObject()

What is the order of their execution?

Thanks a lot

-- 
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: Handle form error in the action

2010-04-16 Thread WallTearer
Oh, missed your message.
Thank you very much, I'll give a try for this approach.

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: Question about routing

2010-04-16 Thread Javier Garcia
I don't know if it's related, but i'm gettin also this error after
clicking on 'Register' button:

Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/
rs/apps/frontend/modules/sfGuardRegister/actions/actions.class.php

But that class is inside plugins/sfDoctrineGuardExtraPlugin/lib/
sfGuardExtraMail.class.php.

I cleaned the cache.

Javi


On Apr 16, 3:09 pm, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 i've installed sfDoctrineGuardExtraPlugin.

 I don't know what i touched exactly but now when i ask for
 sfGuardRegister/register this is showed:

 The route sf_guard_register does not exist.

 To debug my problem I have installed sfDGEP in another project, and i
 found out that if i remove the line below in
 plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I
 get the same error.

 class sfGuardExtraRouting
 {
    static public function listenToRoutingLoadConfigurationEvent(sfEvent
 $event)
    {

 $r-prependRoute('sf_guard_register', new sfRoute('/register',
 array('module' = 'sfGuardRegister', 'action' = 'register')));

    }

 }

 So... if in my first project i have that line, what is happening exactly?

 Javi

 Ubuntu 8.04

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


Re: [symfony-users] symfony 1.4 install

2010-04-16 Thread Angel Robert Marquez
Hi Gabor,
Yes, I did check it and moved things around and was able to perfrom the
install. BUT now I have a new issue. I set up the virtual host in the
httpd.conf file and after restarting mysql and checking the  url(s)

*htttpd.conf file edited*
/etc/httpd/conf/httpd.conf
# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080

# This is the configuration for your project
Listen 127.0.0.1:8080

VirtualHost 127.0.0.1:8080
ServerName www.jobeet.com.localhost
 DocumentRoot /home/sfprojects/jobeet/web
  DirectoryIndex index.php
  Directory /home/sfprojects/jobeet/web
AllowOverride All
Allow from All
  /Directory

  Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
  Directory /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
AllowOverride All
Allow from All
  /Directory
/VirtualHost


*hosts file *
/etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
127.0.0.1 www.jobeet.com.localhost

*mysql restart*
/etc/init.d/mysqld restart

*errors*
http://localhost:8080/index.php/
Oops! Google Chrome could not connect to localhost:8080
http://www.jobeet.com.localhost/index.php/
Oops! This link appears to be broken.

My local system is set up and working. The web root being here:
/var/www/html

Any ideas? Thank you for the assistance.

On Fri, Apr 16, 2010 at 5:58 AM, Gábor Fási maerl...@gmail.com wrote:

 It means the file is not there. Did you check it?

 On Fri, Apr 16, 2010 at 04:33, Angel angel.marq...@gmail.com wrote:
  When I run this command from the sfproject directory:
  php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME
 
  I receive this error:
  Could not open input file: lib/vendor/symfony/data/bin/symfony
 
  I performed this checkout:
  svn checkout http://svn.symfony-project.com/branches/1.4/
 
  OS fedora 12 (constantine)
  php -v
  PHP 5.3.2 (cli) (built: Mar  6 2010 08:33:02)
  Copyright (c) 1997-2010 The PHP Group
  Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
 
  I also ran the same command of the install on a web server and
  received the same error.
 
  Any ideas? Please advise.
 
  Thank you.
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


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

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


[symfony-users] does setflash() work with redirect() in Symfony 1.0?

2010-04-16 Thread jake barnes
In Symfony 1.0, I can forward to another action/page, and my setFlash
messages appear correctly. However, if I use redirect, then the
setFlash message does not appear:

  $this-setFlash('notice', 'That course is no longer
available.');
  $this-redirect('wss/courseIndex');

Can anyone tell me why?


-- 
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] Add symfony to svn project

2010-04-16 Thread Pau Peris
Hi,
i'm trying to integrate symfony into a personal svn project. I would
like to do something like svn import
http://svn.symfony-project.com/branches/1.4
myproject/lib/vendor/symfony  so i could be able to update symfony and
also to commit the project to my private svn. The goal is to integrate
symfony from the svn to be able to update it while i'm also able to
commit and update the whole private project. Do someone know how
should i proceed? Is there any svn command which does the trick?
Thanks in advanced :)

-- 
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] Query alias problems with Doctrine

2010-04-16 Thread ahugas
Hi,

I'm using Symfony 1.4 with Doctrine.

I have a table named ExchServer, and I defined this functions to get
only the registers that has de active field set.

class ExchServerTable extends PluginExchServerTable
{
  public function getActive( Doctrine_Query $q = null )
  {
return $this-addActiveQuery( $q )-execute();
  }

  public Function addActiveQuery( Doctrine_Query $q = null )
  {
if (is_null($q))
{
  $q = $this-createQuery('a');
}
$alias = $q-getRootAlias();
$q-andWhere($alias.'.active');
return $q;
  }
}

In the module actions call:

class exch_serverActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
$this-exch_servers = Doctrine::getTable('ExchServer')-
getActive();
  }
}

When I run the aplication, i've got the next error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'a.active' in
'where clause'. Failing Query: SELECT e.id AS e__id, e.name AS
e__name, e.dn AS e__dn, e.exchdn AS e__exchdn, e.created_at AS
e__created_at, e.updated_at AS e__updated_at, e.active AS e__active
FROM exch_server e WHERE (a.active)

You could use any alias for the query 'a', 'b', .., all except 'e'
fails.
And 'e' works because is the initial of the table name. ( Check
Doctrine/Query.php line #500 )

Is this a bug, or I'm doing anything wrong ?

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

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


Re: [symfony-users] Re: Question about routing

2010-04-16 Thread Tom Haskins-Vaughan
Did you enable the plugin in the Project config?

On Fri, Apr 16, 2010 at 11:52 AM, Javier Garcia tirengar...@gmail.com wrote:
 I don't know if it's related, but i'm gettin also this error after
 clicking on 'Register' button:

 Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/
 rs/apps/frontend/modules/sfGuardRegister/actions/actions.class.php

 But that class is inside plugins/sfDoctrineGuardExtraPlugin/lib/
 sfGuardExtraMail.class.php.

 I cleaned the cache.

 Javi


 On Apr 16, 3:09 pm, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 i've installed sfDoctrineGuardExtraPlugin.

 I don't know what i touched exactly but now when i ask for
 sfGuardRegister/register this is showed:

 The route sf_guard_register does not exist.

 To debug my problem I have installed sfDGEP in another project, and i
 found out that if i remove the line below in
 plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I
 get the same error.

 class sfGuardExtraRouting
 {
    static public function listenToRoutingLoadConfigurationEvent(sfEvent
 $event)
    {

 $r-prependRoute('sf_guard_register', new sfRoute('/register',
 array('module' = 'sfGuardRegister', 'action' = 'register')));

    }

 }

 So... if in my first project i have that line, what is happening exactly?

 Javi

 Ubuntu 8.04

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

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

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

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


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

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


[symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Andro Fumero
Schema.yml Im just new to Symfony. please help.--- wasted whole day 
fixing this.
-
Profile:
  connection: doctrine
  tableName: profile
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: true
profileid:
  type: string(50)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: false
  relations:
User:
  local: profileid
  foreign: profileid
  type: many
User:
  connection: doctrine
  tableName: user
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: true
userid:
  type: string(50)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: false
profileid:
  type: string(50)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: false
  relations:
Profile:
  local: profileid
  foreign: profileid
  type: one
query--
$q = Doctrine_Query::create() 
-select('u.userid,u.profileid')
-from('Profile p')
-leftJoin('p.user')
-where('u.profileid=?', 'profile-01');
Gives me out error (try using aliases but it doesnt work foreignAlias: user)

Unknown relation alias user


  

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

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


Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Tom Haskins-Vaughan
Try:

...
  -leftJoin('p.User u')
...

Tom

On Fri, Apr 16, 2010 at 2:46 PM, Andro Fumero fugitive...@yahoo.com wrote:
 Schema.yml Im just new to Symfony. please help.--- wasted whole day
 fixing this.
 -
 Profile:
   connection: doctrine
   tableName: profile
   columns:
     id:
   type: integer(4)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: true
     profileid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: true
   autoincrement: false
   relations:
     User:
   local: profileid
   foreign: profileid
   type: many
 User:
   connection: doctrine
   tableName: user
   columns:
     id:
   type: integer(4)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: true
     userid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: true
   autoincrement: false
     profileid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: false
   relations:
     Profile:
   local: profileid
   foreign: profileid
   type: one
 query--
 $q = Doctrine_Query::create()
     -select('u.userid,u.profileid')
     -from('Profile p')
     -leftJoin('p.user')
     -where('u.profileid=?', 'profile-01');
 Gives me out error (try using aliases but it doesnt work foreignAlias:
 user)

 Unknown relation alias user

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

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


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

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


[symfony-users] primary key with 2 values

2010-04-16 Thread Vitor
I´m trying to make a project that needs a table with a PRIMARY KEY
with 2 values INT. That values are also FOREIGN KEY.I did the table at
MySQL, and the project at symfony, and everything is fine.

But, when I insert a value, selecting by the Combo with the values
(because its foreign key), thats an error at the Index page. The error
is

The /autoria/:Array/edit.:sf_format route has some missing mandatory
parameters (:Array).

I had work well with Foreign Keys, but the problem is with the 2
primary keys and its important to be that way.

I hope can make myself clear, and tanx for any help.

Vitor S.
Instrueng








-- 
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: does setflash() work with redirect() in Symfony 1.0?

2010-04-16 Thread pghoratiu
It should work fine, how do you display the flash value in your
template?
You can check also in the web debug bar the user data that is saved
for your current session.

   gabriel

On Apr 16, 7:48 pm, jake barnes lkrub...@geocities.com wrote:
 In Symfony 1.0, I can forward to another action/page, and my setFlash
 messages appear correctly. However, if I use redirect, then the
 setFlash message does not appear:

       $this-setFlash('notice', 'That course is no longer
 available.');
       $this-redirect('wss/courseIndex');

 Can anyone tell me why?

 --
 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: symfony 1.4 install

2010-04-16 Thread pghoratiu
On Apr 16, 7:29 pm, Angel Robert Marquez angel.marq...@gmail.com
wrote:
 Hi Gabor,
 Yes, I did check it and moved things around and was able to perfrom the
 install. BUT now I have a new issue. I set up the virtual host in the
 httpd.conf file and after restarting mysql and checking the  url(s)

 *htttpd.conf file edited*
 /etc/httpd/conf/httpd.conf
 # Be sure to only have this line once in your configuration
 NameVirtualHost 127.0.0.1:8080

 # This is the configuration for your project
 Listen 127.0.0.1:8080

 VirtualHost 127.0.0.1:8080
 ServerNamewww.jobeet.com.localhost
  DocumentRoot /home/sfprojects/jobeet/web
   DirectoryIndex index.php
   Directory /home/sfprojects/jobeet/web
     AllowOverride All
     Allow from All
   /Directory

   Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
   Directory /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
     AllowOverride All
     Allow from All
   /Directory
 /VirtualHost

 *hosts file *
 /etc/hosts
 127.0.0.1   localhost localhost.localdomain localhost4
 localhost4.localdomain4
 ::1         localhost localhost.localdomain localhost6
 localhost6.localdomain6
 127.0.0.1www.jobeet.com.localhost

 *mysql restart*
 /etc/init.d/mysqld restart

 *errors*http://localhost:8080/index.php/
 Oops! Google Chrome could not connect to 
 localhost:8080http://www.jobeet.com.localhost/index.php/
 Oops! This link appears to be broken.

 My local system is set up and working. The web root being here:
 /var/www/html

 Any ideas? Thank you for the assistance.
Does:
http://www.jobeet.com.localhost:8080/index.php/
work?

Try first a test by telnet-ing to port 8080 or using netstat -tlnp to
check if the web server process is listening
to port 8080.

gabriel









 On Fri, Apr 16, 2010 at 5:58 AM, Gábor Fási maerl...@gmail.com wrote:
  It means the file is not there. Did you check it?

  On Fri, Apr 16, 2010 at 04:33, Angel angel.marq...@gmail.com wrote:
   When I run this command from the sfproject directory:
   php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME

   I receive this error:
   Could not open input file: lib/vendor/symfony/data/bin/symfony

   I performed this checkout:
   svn checkouthttp://svn.symfony-project.com/branches/1.4/

   OS fedora 12 (constantine)
   php -v
   PHP 5.3.2 (cli) (built: Mar  6 2010 08:33:02)
   Copyright (c) 1997-2010 The PHP Group
   Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

   I also ran the same command of the install on a web server and
   received the same error.

   Any ideas? Please advise.

   Thank you.

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

   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog
legroups.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.comsymfony-users%2bunsubscr...@goog 
  legroups.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

-- 
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: Add symfony to svn project

2010-04-16 Thread pghoratiu
You need to use svn:externals Subversion property
.
Initialize your repository with the following directory:
lib/vendor
than after you have the project checked out from SVN:
cd lib/vendor
svn propedit svn:externals .
Here you have to add the path to the symfony repository you want to
use and the name of the directory. This way you will be up to date.

Best regards,

gabriel

On Apr 16, 8:12 pm, Pau Peris sibok1...@gmail.com wrote:
 Hi,
 i'm trying to integrate symfony into a personal svn project. I would
 like to do something like svn 
 importhttp://svn.symfony-project.com/branches/1.4
 myproject/lib/vendor/symfony  so i could be able to update symfony and
 also to commit the project to my private svn. The goal is to integrate
 symfony from the svn to be able to update it while i'm also able to
 commit and update the whole private project. Do someone know how
 should i proceed? Is there any svn command which does the trick?
 Thanks in advanced :)

 --
 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] organizing partials in folders

2010-04-16 Thread Joshua
include_partial(headline_news);

How can I do this with partial _headline_news.php inside a folder
within templates? If I try
include_partial(folder/headline_news);

The template _headline_news.php does not exist or is unreadable in
.

-- 
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: organizing partials in folders

2010-04-16 Thread Joshua
I'm doing this from a module. I would want the partial directory to be
something like
project_root/apps/frontend/modules/templates/folder/_headline_news.php

On Apr 16, 5:51 pm, Joshua houseaddi...@gmail.com wrote:
 include_partial(headline_news);

 How can I do this with partial _headline_news.php inside a folder
 within templates? If I try
 include_partial(folder/headline_news);

 The template _headline_news.php does not exist or is unreadable in
 .

 --
 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: organizing partials in folders

2010-04-16 Thread Joshua
god i freaken hate these group nonsense. why can't symfony guys spring
for a real forum?

mistake in directory, should be
project_root/apps/frontend/modules/some_module/templates/folder/
_headline_news.php

On Apr 16, 5:53 pm, Joshua houseaddi...@gmail.com wrote:
 I'm doing this from a module. I would want the partial directory to be
 something like
 project_root/apps/frontend/modules/templates/folder/_headline_news.php

 On Apr 16, 5:51 pm, Joshua houseaddi...@gmail.com wrote:



  include_partial(headline_news);

  How can I do this with partial _headline_news.php inside a folder
  within templates? If I try
  include_partial(folder/headline_news);

  The template _headline_news.php does not exist or is unreadable in
  .

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


Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Andro Fumero
Thank you so much. i don't know that symfony is this sensitive. 





From: Tom Haskins-Vaughan t...@templestreetmedia.com
To: symfony-users@googlegroups.com
Sent: Fri, April 16, 2010 2:57:41 PM
Subject: Re: [symfony-users] schema query problem-- 2 tables only generated  
from mysql- please help

Try:

...
  -leftJoin('p.User u')
...

Tom

On Fri, Apr 16, 2010 at 2:46 PM, Andro Fumero fugitive...@yahoo.com wrote:
 Schema.yml Im just new to Symfony. please help.--- wasted whole day
 fixing this.
 -
 Profile:
   connection: doctrine
   tableName: profile
   columns:
 id:
   type: integer(4)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: true
 profileid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: true
   autoincrement: false
   relations:
 User:
   local: profileid
   foreign: profileid
   type: many
 User:
   connection: doctrine
   tableName: user
   columns:
 id:
   type: integer(4)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: true
 userid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: true
   autoincrement: false
 profileid:
   type: string(50)
   fixed: false
   unsigned: false
   primary: false
   notnull: true
   autoincrement: false
   relations:
 Profile:
   local: profileid
   foreign: profileid
   type: one
 query--
 $q = Doctrine_Query::create()
 -select('u.userid,u.profileid')
 -from('Profile p')
 -leftJoin('p.user')
 -where('u.profileid=?', 'profile-01');
 Gives me out error (try using aliases but it doesnt work foreignAlias:
 user)

 Unknown relation alias user

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

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


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

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



  

-- 
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: Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread rooster (Russ)
A quick check of the source code will tell you all you need to know...

save() is a wrapper function, that runs doSave() inside a transaction

doSave() first calls updateObject() then calls save() on the object
itself.

updateObject() is a method called just before the object is actually
saved, it's somewhere you can throw in some last minute object
manipulation before it is saved to the db.

http://trac.symfony-project.org/browser/branches/1.4/lib/form/addon/sfFormObject.class.php

Russ

On Apr 16, 5:17 pm, WallTearer walltea...@gmail.com wrote:
 Hello group.

 I'm reading symfony docs, but can't get what is the difference between
 sfFormDoctrine methods:
 doSave()
 save()
 updateObject()

 What is the order of their execution?

 Thanks a lot

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


Re: [symfony-users] Re: Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread Alan Bem
Every do*() method is kind of hook which you can overwrite without much
impact on other parts form framework.
Of course you have to know what are you doing, but this is safest way to
extend/add your own logic.

Read 
this.http://giorgiosironi.blogspot.com/2010/04/practical-php-patterns-template-method.html

On Sat, Apr 17, 2010 at 1:46 AM, rooster (Russ) russmon...@gmail.com
wrote:
 A quick check of the source code will tell you all you need to know...

 save() is a wrapper function, that runs doSave() inside a transaction

 doSave() first calls updateObject() then calls save() on the object
 itself.

 updateObject() is a method called just before the object is actually
 saved, it's somewhere you can throw in some last minute object
 manipulation before it is saved to the db.


http://trac.symfony-project.org/browser/branches/1.4/lib/form/addon/sfFormObject.class.php

 Russ

 On Apr 16, 5:17 pm, WallTearer walltea...@gmail.com wrote:
 Hello group.

 I'm reading symfony docs, but can't get what is the difference between
 sfFormDoctrine methods:
 doSave()
 save()
 updateObject()

 What is the order of their execution?

 Thanks a lot

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


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

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