[symfony-users] Extra var in route

2011-01-31 Thread HAUSa
Is it possible in an sfPropelRoute to include extra parameters in the
URL, that doesn't correspond to the object?

For example, my object:

item:
  id
  title
  slug
  message
  created_at
  updated_at

This is a correct sfPropelRoute url:

topic_show:
  url: /part1/:slug
  class:   sfPropelRoute
  options: { model: Item, type: object }
  param:   { module: item, action: show }

But now I want to include some random text, that can be different
every action.
Example of the URL:
/part1/here_random/:slug
/part1/random_here/:slug

These two must match the same route. Is it possible to include
something like that?

-- 
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] Output escaper in template

2011-01-21 Thread HAUSa
If I try to access a function in my User class (myUser.class.php), the
results is being escaped in a template.

This makes the code below a mess:
?php if(!in_array($topic-getId(), $sf_user-getTopics())): ?

I receive this error message:
Warning: in_array() expects parameter 2 to be array, object given in /
home/httpd/vhosts/krantcafe.nl/httpdocs/apps/community/modules/topic/
templates/_record.php on line 5

That is because my Array is an instance of
sfOutputEscaperArrayDecorator now.

How can I get the original array, that the $sf_user-getTopics()
returns?

-- 
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] Extra var in sfPropelRoute

2011-01-20 Thread HAUSa
Is it possible in an sfPropelRoute to include extra parameters in the
URL, that doesn't correspond to the object?

For example, my object:

item:
  id
  title
  slug
  message
  created_at
  updated_at

This is a correct sfPropelRoute url:

topic_show:
  url: /part1/:slug
  class:   sfPropelRoute
  options: { model: Item, type: object }
  param:   { module: item, action: show }

But now I want to include some random text, that can be different
every action.
Example of the URL:
/part1/here_random/:slug
/part1/random_here/:slug

These two must match the same route. Is it possible to include
something like that?

-- 
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] Routing: different character between vars

2011-01-20 Thread HAUSa
Is it possible to use other characters in a route, except only the
slash (/)?

For example, I want to use the dash (-):

This works: (1) /myroute/:slug/:id
Instead I want: (2) /myroute/:slug-:id

This results in:
(1) /myroute/my-item/56
(2) /myroute/my-item-56

-- 
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] Baan PHP Symfony programmeur

2011-01-11 Thread HAUSa
Because this is a job offer in Holland, please forgive me that I
continue in Dutch.

KiwiMedia (Utrecht) zoekt per direct een PHP Symfony programmeur!
Ben je zelf op zoek naar een fulltime baan of ken je iemand? Neem dan
contact met ons op!

Momenteel doen wij projecten voor de Rabobank, de Telegraaf en De
Alliantie (woningcorporatie). Zelf zal de nieuwe programmeur ook
werken aan projecten voor deze klanten.

Bel ons op 030 755 1507 voor meer informatie en interesse!

-- 
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] Special char in flash

2010-12-21 Thread HAUSa
How can I use a special char in a user flash message?

When I use krantcafé (the é), the flash is empty and displays an empty
error div.
When I set Krantcafé, is see exactly that in my website.

How can I just get the é character?
I use the UTF-8 charset

-- 
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: No embed form bind

2010-12-17 Thread HAUSa
Yes, the print_r() on $oForm-getValues() gives the exact same as on
$_POST. All values are there.
But when I do $oForm-getEmbeddedForm('facebook')-getValues(), it is
empty. Even though $_POST['facebook'] is an array...

Has it to do with that UserSocialNetworkLinksForm is not a form built
on a Propel model, and the embedded forms are?

Thanks for your help! :)

On 16 dec, 23:09, guiguiboy guillaume.bre...@gmail.com wrote:
 Hi,

 Have you tried doing a print_r on $oForm-getValues() ?

 Guillaume B.

 On 16 déc, 19:31, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
 wrote:

  Weird... when I bind my form, the embedded forms don't receive the
  values.

  This is my action:

                  $oForm = new UserSocialNetworkLinksForm(NULL, 
  array('linked' =
  $aLinked));
                  if($oRequest-isMethod('post')){

                          
  $oForm-bind($oRequest-getParameter($oForm-getName()), 
  $oRequest-getFiles($oForm-getName()));

                          if($oForm-isValid()){

                                  foreach($oForm-getEmbeddedForms() as 
  $oForm1){
                                          die(print_r($oForm1-getValues()));
                                          die(print_r($oForm1-getObject()));
                                  }
                                  $this-doRedirect('wizard_start');
                          }

                  }

  The print_r() of $oForm1-getValues() is empty.

  How can it?
  If I do a print_r() of $_POST, the values are actually there!

  Array
  (
      [social_network_links] = Array
          (
              [facebook] = Array
                  (
                      [status_updates] = on
                      [id] = 1
                  )

              [hyves] = Array
                  (
                      [id] = 2
                  )

              [_csrf_token] = 8c12ad89bd06f4190127ecb253370fb2
          )

  )

  Facebook and Hyves are the social networks here...



-- 
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] No embed form bind

2010-12-16 Thread HAUSa
Weird... when I bind my form, the embedded forms don't receive the
values.

This is my action:

$oForm = new UserSocialNetworkLinksForm(NULL, array('linked' =
$aLinked));
if($oRequest-isMethod('post')){


$oForm-bind($oRequest-getParameter($oForm-getName()), $oRequest-
getFiles($oForm-getName()));
if($oForm-isValid()){

foreach($oForm-getEmbeddedForms() as $oForm1){
die(print_r($oForm1-getValues()));
die(print_r($oForm1-getObject()));
}
$this-doRedirect('wizard_start');
}

}

The print_r() of $oForm1-getValues() is empty.

How can it?
If I do a print_r() of $_POST, the values are actually there!

Array
(
[social_network_links] = Array
(
[facebook] = Array
(
[status_updates] = on
[id] = 1
)

[hyves] = Array
(
[id] = 2
)

[_csrf_token] = 8c12ad89bd06f4190127ecb253370fb2
)

)

Facebook and Hyves are the social networks here...

-- 
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] Memory size in a task

2010-11-30 Thread HAUSa
If I run a task created in my lib/task folder, I get this error:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
(tried to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/
sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on line
100

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/
sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on line
100

In that task, a great batch of XML data gets synchronized in the
database.
How can I prevent this from happening?

-- 
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: Memory size in a task

2010-11-30 Thread HAUSa
Can I configure this in the .htaccess as well?

On 30 nov, 17:31, Macvek mac...@gmail.com wrote:
 Hi,

 You should edit 'memory_limit' in your php.ini. I've set it to 128M
 and every task works well.

 Regards,
 Maciej Aleksandrowicz

 2010/11/30 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com:

  If I run a task created in my lib/task folder, I get this error:

  PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
  (tried to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/
  sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on line
  100

  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
  to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/
  sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on line
  100

  In that task, a great batch of XML data gets synchronized in the
  database.
  How can I prevent this from happening?

  --
  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] class creation from plugin

2010-11-18 Thread HAUSa
In a plugin I have a schema.yml.
When I do propel:build all, a model is created in /lib/model/
Object.php

But, I already have that class!
In /plugins/myPlugin/lib/model/Object.php

How can I overwrite the normal class with my plugin class?
It would be very crappy if I have to extend it an make it class
PluginModel instead of just Model.

-- 
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] Create a social community for a large media company

2010-10-20 Thread HAUSa
KiwiMedia is recruiting a PHP Symfony developer for the development of
an online community.
Because we're searching for someone from Holland, the rest is in
Dutch:

KiwiMedia(.nl) zoekt een Symfony PHP programmeur voor 4 dagen in de
week! Het gaat om het ontwikkelen van een community voor de
medewerkers van een groot mediabedrijf met integratie van social
media!

Bij tevredenheid kan een vaste aanstelling volgen!
Meer informatie kan telefonisch besproken worden.

-- 
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] Clear cache in action

2010-10-07 Thread HAUSa
Is there a way to clear my cache in an action, using PHP?

-- 
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] Other in sfWidgetFormI18nChoiceCountry

2010-09-29 Thread HAUSa
Is there a way to define an other country in the
sfWidgetFormI18nChoiceCountry?
For example, I support 5 countries by choice. The last option is
always other.

-- 
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] Session won't last

2010-09-03 Thread HAUSa
My session won't hold! After 30 minutes, I'm logged out again!
I obvious must have gotten something wrong, but I cannot figure it
out...

This is my factories.yml:

test:
  storage:
class: sfSessionTestStorage
param:
  session_path: %SF_TEST_CACHE_DIR%/sessions

  response:
class: sfWebResponse
param:
  send_http_headers: false

  mailer:
param:
  delivery_strategy: none

dev:
  mailer:
param:
  delivery_strategy: none

all:
  routing:
class: sfPatternRouting
param:
  generate_shortest_url:true
  extra_parameters_as_query_string: true

  storage:
class: sfSessionStorage
param:
  session_name: f9bc38a4

  user:
class: myUser
param:
  timeout: 2592000

  view_cache_manager:
class: sfViewCacheManager
param:
  cache_key_use_vary_headers: true
  cache_key_use_host_name:true

-- 
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] Session won't last

2010-09-03 Thread HAUSa
Why won't my session last longer than 30 minutes?
This is my factories.yml:

test:
  storage:
class: sfSessionTestStorage
param:
  session_path: %SF_TEST_CACHE_DIR%/sessions

  response:
class: sfWebResponse
param:
  send_http_headers: false

  mailer:
param:
  delivery_strategy: none

dev:
  mailer:
param:
  delivery_strategy: none

all:
  routing:
class: sfPatternRouting
param:
  generate_shortest_url:true
  extra_parameters_as_query_string: true

  storage:
class: sfSessionStorage
param:
  session_name: f9ab618d

  user:
class: myUser
param:
  timeout: 2592000

  view_cache_manager:
class: sfViewCacheManager
param:
  cache_key_use_vary_headers: true
  cache_key_use_host_name:true

-- 
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: IE8 and isXmlHttpRequest

2010-09-02 Thread HAUSa
Can you make something out of this?

On 1 sep, 16:14, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 Thx :)

 I've been using:
 * Symfony 1.4.9
 * jQuery 1.4.2

 My call in my HTML template:
 setTimeout(ajax('div_javascript_ajax', '/en/world');, 1);

 The JS function:
 function ajax(sId, sUrl){
         $('#' + sId).load(sUrl);

 }

 On 1 sep, 14:34, Gustavo Adrian comfortablynum...@gmail.com wrote:

  I use Symfony with jQuery in my last app where I've made every functionality
  available via AJAX and it works perfectly on IE8.

  Can you give us more information abour your app so we can help you more?
  version of Symfony, jQuery and the code you're using to receive the AJAX
  request?

  On Wed, Sep 1, 2010 at 9:25 AM, HAUSa 

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   I use jQuery...

   function ajax(sId, sUrl){
          $('#' + sId).load(sUrl);
   }

   On 1 sep, 13:50, Gábor Fási maerl...@gmail.com wrote:
Correct - jquery, prototype, mootols - all major ones do. If you use
plain JS, you have to add it yourself.

This is definitely not a symfony bug, if it only fails in ie8.

On Wed, Sep 1, 2010 at 13:49, Benoit Montuelle

benoit.montue...@gmail.com wrote:
 I think most javascript frameworks add this header to the request
   automatically, I don't know if its done using plain javascript.

 I once had this issue using mootools but it was a bug in our JS code
   overwriting all http header instead of adding the needed one, and not a
   symfony bug.

 Regards

 -Original Message-
 From: Gábor Fási maerl...@gmail.com
 Sent: mercredi 1 septembre 2010 12:25
 To: symfony-users@googlegroups.com
 Subject: Re: [symfony-users] Re: IE8 and isXmlHttpRequest

 If you check the code of isXmlHttpRequest, you'll see it is very
   simple:

    return ($this-getHttpHeader('X_REQUESTED_WITH') ==
   'XMLHttpRequest');

 So check if your javascript code sets that header, also check if it
 actually gets sent.

 On Wed, Sep 1, 2010 at 12:11, HAUSa
 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 Yes, but is there someone who can reproduce this?
 Seems like a Symfony bug...!

 On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
 Compare the http request headers of the firefox's xhr over the ie8's
   one

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

 On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  In IE8, my isXmlHttpRequest function doesn't work.
  In my template, I use ?php if(!$sf_request-isXmlHttpRequest()):
   ?
  to hide content if it is an AJAX call.
  Firefox handles this okay, but IE8 shows the entire template, as
   well
  as the complete layout again!

  How is this possible? Bug?
  Anyone who knows a fix?

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

[symfony-users] Re: Timers in prod

2010-09-02 Thread HAUSa
Nobody?

On 1 sep, 12:11, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 In my prod environment, the timers are empty
 (sfTimerManager::getTimers())
 How can I turn these on in prod?

-- 
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: IE8 and isXmlHttpRequest

2010-09-02 Thread HAUSa
Damn... it indeed was a cache problem.
God I hate IE

Thank you!

On 2 sep, 15:18, Gustavo Adrian comfortablynum...@gmail.com wrote:
 Could you post the code of the action that receives the AJAX request? and
 the headers that is receiving from IE. Also, try to embed a variable with a
 random number (like the actual timestamp) in the URL, in your ajax JS
 function, to check if it's a cache problem.

 On Thu, Sep 2, 2010 at 9:03 AM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  Can you make something out of this?

  On 1 sep, 16:14, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
  wrote:
   Thx :)

   I've been using:
   * Symfony 1.4.9
   * jQuery 1.4.2

   My call in my HTML template:
   setTimeout(ajax('div_javascript_ajax', '/en/world');, 1);

   The JS function:
   function ajax(sId, sUrl){
           $('#' + sId).load(sUrl);

   }

   On 1 sep, 14:34, Gustavo Adrian comfortablynum...@gmail.com wrote:

I use Symfony with jQuery in my last app where I've made every
  functionality
available via AJAX and it works perfectly on IE8.

Can you give us more information abour your app so we can help you
  more?
version of Symfony, jQuery and the code you're using to receive the
  AJAX
request?

On Wed, Sep 1, 2010 at 9:25 AM, HAUSa 

jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 I use jQuery...

 function ajax(sId, sUrl){
        $('#' + sId).load(sUrl);
 }

 On 1 sep, 13:50, Gábor Fási maerl...@gmail.com wrote:
  Correct - jquery, prototype, mootols - all major ones do. If you
  use
  plain JS, you have to add it yourself.

  This is definitely not a symfony bug, if it only fails in ie8.

  On Wed, Sep 1, 2010 at 13:49, Benoit Montuelle

  benoit.montue...@gmail.com wrote:
   I think most javascript frameworks add this header to the request
 automatically, I don't know if its done using plain javascript.

   I once had this issue using mootools but it was a bug in our JS
  code
 overwriting all http header instead of adding the needed one, and not
  a
 symfony bug.

   Regards

   -Original Message-
   From: Gábor Fási maerl...@gmail.com
   Sent: mercredi 1 septembre 2010 12:25
   To: symfony-users@googlegroups.com
   Subject: Re: [symfony-users] Re: IE8 and isXmlHttpRequest

   If you check the code of isXmlHttpRequest, you'll see it is very
 simple:

      return ($this-getHttpHeader('X_REQUESTED_WITH') ==
 'XMLHttpRequest');

   So check if your javascript code sets that header, also check if
  it
   actually gets sent.

   On Wed, Sep 1, 2010 at 12:11, HAUSa
   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   Yes, but is there someone who can reproduce this?
   Seems like a Symfony bug...!

   On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
   Compare the http request headers of the firefox's xhr over the
  ie8's
 one

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

   On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
In IE8, my isXmlHttpRequest function doesn't work.
In my template, I use ?php
  if(!$sf_request-isXmlHttpRequest()):
 ?
to hide content if it is an AJAX call.
Firefox handles this okay, but IE8 shows the entire template,
  as
 well
as the complete layout again!

How is this possible? Bug?
Anyone who knows a fix?

--
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
  symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com

 symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com
  symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@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
  symfony-users%2bunsubscr

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
Yes, but is there someone who can reproduce this?
Seems like a Symfony bug...!

On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
 Compare the http request headers of the firefox's xhr over the ie8's one

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

 On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  In IE8, my isXmlHttpRequest function doesn't work.
  In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ?
  to hide content if it is an AJAX call.
  Firefox handles this okay, but IE8 shows the entire template, as well
  as the complete layout again!

  How is this possible? Bug?
  Anyone who knows a fix?

  --
  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] Timers in prod

2010-09-01 Thread HAUSa
In my prod environment, the timers are empty
(sfTimerManager::getTimers())
How can I turn these on in prod?

-- 
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: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
I use jQuery...

function ajax(sId, sUrl){
$('#' + sId).load(sUrl);
}


On 1 sep, 13:50, Gábor Fási maerl...@gmail.com wrote:
 Correct - jquery, prototype, mootols - all major ones do. If you use
 plain JS, you have to add it yourself.

 This is definitely not a symfony bug, if it only fails in ie8.

 On Wed, Sep 1, 2010 at 13:49, Benoit Montuelle

 benoit.montue...@gmail.com wrote:
  I think most javascript frameworks add this header to the request 
  automatically, I don't know if its done using plain javascript.

  I once had this issue using mootools but it was a bug in our JS code 
  overwriting all http header instead of adding the needed one, and not a 
  symfony bug.

  Regards

  -Original Message-
  From: Gábor Fási maerl...@gmail.com
  Sent: mercredi 1 septembre 2010 12:25
  To: symfony-users@googlegroups.com
  Subject: Re: [symfony-users] Re: IE8 and isXmlHttpRequest

  If you check the code of isXmlHttpRequest, you'll see it is very simple:

     return ($this-getHttpHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');

  So check if your javascript code sets that header, also check if it
  actually gets sent.

  On Wed, Sep 1, 2010 at 12:11, HAUSa
  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  Yes, but is there someone who can reproduce this?
  Seems like a Symfony bug...!

  On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
  Compare the http request headers of the firefox's xhr over the ie8's one

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

  On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   In IE8, my isXmlHttpRequest function doesn't work.
   In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ?
   to hide content if it is an AJAX call.
   Firefox handles this okay, but IE8 shows the entire template, as well
   as the complete layout again!

   How is this possible? Bug?
   Anyone who knows a fix?

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

  --
  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: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
Thx :)

I've been using:
* Symfony 1.4.9
* jQuery 1.4.2

My call in my HTML template:
setTimeout(ajax('div_javascript_ajax', '/en/world');, 1);

The JS function:
function ajax(sId, sUrl){
$('#' + sId).load(sUrl);
}


On 1 sep, 14:34, Gustavo Adrian comfortablynum...@gmail.com wrote:
 I use Symfony with jQuery in my last app where I've made every functionality
 available via AJAX and it works perfectly on IE8.

 Can you give us more information abour your app so we can help you more?
 version of Symfony, jQuery and the code you're using to receive the AJAX
 request?

 On Wed, Sep 1, 2010 at 9:25 AM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  I use jQuery...

  function ajax(sId, sUrl){
         $('#' + sId).load(sUrl);
  }

  On 1 sep, 13:50, Gábor Fási maerl...@gmail.com wrote:
   Correct - jquery, prototype, mootols - all major ones do. If you use
   plain JS, you have to add it yourself.

   This is definitely not a symfony bug, if it only fails in ie8.

   On Wed, Sep 1, 2010 at 13:49, Benoit Montuelle

   benoit.montue...@gmail.com wrote:
I think most javascript frameworks add this header to the request
  automatically, I don't know if its done using plain javascript.

I once had this issue using mootools but it was a bug in our JS code
  overwriting all http header instead of adding the needed one, and not a
  symfony bug.

Regards

-Original Message-
From: Gábor Fási maerl...@gmail.com
Sent: mercredi 1 septembre 2010 12:25
To: symfony-users@googlegroups.com
Subject: Re: [symfony-users] Re: IE8 and isXmlHttpRequest

If you check the code of isXmlHttpRequest, you'll see it is very
  simple:

   return ($this-getHttpHeader('X_REQUESTED_WITH') ==
  'XMLHttpRequest');

So check if your javascript code sets that header, also check if it
actually gets sent.

On Wed, Sep 1, 2010 at 12:11, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
Yes, but is there someone who can reproduce this?
Seems like a Symfony bug...!

On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
Compare the http request headers of the firefox's xhr over the ie8's
  one

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

On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 In IE8, my isXmlHttpRequest function doesn't work.
 In my template, I use ?php if(!$sf_request-isXmlHttpRequest()):
  ?
 to hide content if it is an AJAX call.
 Firefox handles this okay, but IE8 shows the entire template, as
  well
 as the complete layout again!

 How is this possible? Bug?
 Anyone who knows a fix?

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

[symfony-users] IE8 and isXmlHttpRequest

2010-08-31 Thread HAUSa
In IE8, my isXmlHttpRequest function doesn't work.
In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ?
to hide content if it is an AJAX call.
Firefox handles this okay, but IE8 shows the entire template, as well
as the complete layout again!

How is this possible? Bug?
Anyone who knows a fix?

-- 
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] Check culture in i18n form

2010-08-19 Thread HAUSa
When I'm in the i18n form class (example: PageI18nForm.class.php), how
can I see for which culture it is?
Because in the PageForm.class.php, the PageI18nForm.class.php is
called for each culture I embed it for. So, I need to retrieve that in
the i18n form itself.

-- 
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: IF() in Propel query

2010-07-19 Thread HAUSa
Thanks, this answer gave me a start where to look.

You still can hydrate, if you do it like this:

ProductPeer::addSelectColumns($oCriteria);
$oCriteria-addAsColumn('current_price', 'IF(MAX(' . BidPeer::BID . ')
 ' . ProductPeer::PRICE . ', MAX(' . BidPeer::BID . '), ' .
ProductPeer::PRICE . ')');

Then all the normal table columns are added, after that the custom
column is.


On 19 jul, 00:17, xplo xplo...@gmail.com wrote:
 Hello,

 you probably can call raw sql on select clause with addAsColumn on
 your criteria but it wont be hydrated in your result objects so you
 should try propel 1.5 with the new with method that add custom
 select statement and hydrate them in the object.

 On Jul 18, 7:58 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
 wrote:

  If everything goes well, a SQL file is created in your /data/sql
  folder.
  I don't know why that does not happen, it should :)
  Otherwise try build-all. Beware, this creates the model files as well
  and replaces the database.

  Please back to topic! Feel free to open a new discussion for this one.

  I'm eager to use the IF() SQL statement, but I can't find anything
  about it in the Propel documentation.
  Anyone who knows how that is possible?

  On 18 jul, 19:36, Richard Zulu richard.z...@time.co.ug wrote:

   Hi,

   I installed symfony 1.4.6. However, whenever i run the propel:build-sql
   command it doesn't generate my schema.sql file in the data directory. Am
   using Ubuntu and have phing active too. It gives me this output:

   php symfony propel:build-sql

schema    converting /home/zulu/sfprojects/config/schema.yml to XML
schema    putting /home/zulu/sfprojects/config/generated-schema.xml
propel    Running sql phing task
file-     /home/zulu/sfprojects/config/generated-schema.xml
file-     /home/zulu/sfprojects/config/generated-schema-transformed.xml

   then after this i cannot find my schema.sql file

   Anyone know why

   --
   Richard Zulu
   Managing Director
   Time Information Company
   P.O Box 31842
   Clock Tower
   Kampala, Ugandawww.time.co.ug



-- 
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] IF() in Propel query

2010-07-18 Thread HAUSa
Hi all,

Is it possible to use IF() in a Propel query?

I want a query like this:

SELECT product.*, IF(MAX(bids.bid)  product.price, MAX(bids.bid),
product.price) as current_price FROM product LEFT JOIN bids ON
(product.id = bids.product_id)

Thank, hope that someone can help me.
Looked everywhere on Google, but Propel is not that well
documentated...

-- 
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: genUrl with object

2010-07-18 Thread HAUSa
It says:

The /:sf_culture/advertisement/show/:id/:slug route has some missing
mandatory parameters (:id, :slug).

This means it doesn't receive the object.
While I actually do give it (and url_for would accept it this way):

genUrl('advertisement_show', $oAdvertisement, true)


Thanks for thinking with me!


On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote:
 What's the error message? Did you try removing the *?

 On Fri, Jul 16, 2010 at 10:19, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  Anyone?

  On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
  wrote:
  Yes:

  advertisement_show:
    url:     /:sf_culture/advertisement/show/:id/:slug/*
    class:   sfPropelRoute
    options: { model: Advertisement, type: object }
    param:   { module: advertisement, action: show }
    requirements:
      sf_method:  [get, post]
      sf_culture: (?:en|es|de|fr|nl)

  On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote:

   Is your route declared as sfPropelRoute/sfDoctrineRoute?

   On Wed, Jul 14, 2010 at 15:23, HAUSa

   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
I can't use genUrl like this:
genUrl('advertisement_show', $Advertisement)
where $Advertisement is the object for the sfObjectRoute

The only way to do so is to call it like this:
genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' .
$Advertisement-getSlug())

But that, ofcourse, kills the flexibility of the routing system!
How can I do the top solution with getUrl?

--
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: IF() in Propel query

2010-07-18 Thread HAUSa
If everything goes well, a SQL file is created in your /data/sql
folder.
I don't know why that does not happen, it should :)
Otherwise try build-all. Beware, this creates the model files as well
and replaces the database.

Please back to topic! Feel free to open a new discussion for this one.

I'm eager to use the IF() SQL statement, but I can't find anything
about it in the Propel documentation.
Anyone who knows how that is possible?


On 18 jul, 19:36, Richard Zulu richard.z...@time.co.ug wrote:
 Hi,

 I installed symfony 1.4.6. However, whenever i run the propel:build-sql
 command it doesn't generate my schema.sql file in the data directory. Am
 using Ubuntu and have phing active too. It gives me this output:

 php symfony propel:build-sql

  schema    converting /home/zulu/sfprojects/config/schema.yml to XML
  schema    putting /home/zulu/sfprojects/config/generated-schema.xml
  propel    Running sql phing task
  file-     /home/zulu/sfprojects/config/generated-schema.xml
  file-     /home/zulu/sfprojects/config/generated-schema-transformed.xml

 then after this i cannot find my schema.sql file

 Anyone know why

 --
 Richard Zulu
 Managing Director
 Time Information Company
 P.O Box 31842
 Clock Tower
 Kampala, Ugandawww.time.co.ug

-- 
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: genUrl with object

2010-07-18 Thread HAUSa
Yes, I'm sure.
Did a print_r($oAdvertisement) check just now to confirm.

On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote:
 Are you sure $oAdvertisement is not null? Can you call its getId and
 getSlug methods?

 On Sun, Jul 18, 2010 at 19:42, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  It says:

  The /:sf_culture/advertisement/show/:id/:slug route has some missing
  mandatory parameters (:id, :slug).

  This means it doesn't receive the object.
  While I actually do give it (and url_for would accept it this way):

  genUrl('advertisement_show', $oAdvertisement, true)

  Thanks for thinking with me!

  On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote:
  What's the error message? Did you try removing the *?

  On Fri, Jul 16, 2010 at 10:19, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   Anyone?

   On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
   wrote:
   Yes:

   advertisement_show:
     url:     /:sf_culture/advertisement/show/:id/:slug/*
     class:   sfPropelRoute
     options: { model: Advertisement, type: object }
     param:   { module: advertisement, action: show }
     requirements:
       sf_method:  [get, post]
       sf_culture: (?:en|es|de|fr|nl)

   On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote:

Is your route declared as sfPropelRoute/sfDoctrineRoute?

On Wed, Jul 14, 2010 at 15:23, HAUSa

jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 I can't use genUrl like this:
 genUrl('advertisement_show', $Advertisement)
 where $Advertisement is the object for the sfObjectRoute

 The only way to do so is to call it like this:
 genUrl('advertisement_show?id=' . $Advertisement-getId() . 
 'slug=' .
 $Advertisement-getSlug())

 But that, ofcourse, kills the flexibility of the routing system!
 How can I do the top solution with getUrl?

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



-- 
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: genUrl with object

2010-07-18 Thread HAUSa
It's official: you are my hero.
Thanks!

On 18 jul, 20:14, Gábor Fási maerl...@gmail.com wrote:
 Try generateUrl instead of genUrl

  public function generateUrl($route, $params = array(), $absolute = false)

 On Sun, Jul 18, 2010 at 20:00, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  Yes, I'm sure.
  Did a print_r($oAdvertisement) check just now to confirm.

  On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote:
  Are you sure $oAdvertisement is not null? Can you call its getId and
  getSlug methods?

  On Sun, Jul 18, 2010 at 19:42, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   It says:

   The /:sf_culture/advertisement/show/:id/:slug route has some missing
   mandatory parameters (:id, :slug).

   This means it doesn't receive the object.
   While I actually do give it (and url_for would accept it this way):

   genUrl('advertisement_show', $oAdvertisement, true)

   Thanks for thinking with me!

   On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote:
   What's the error message? Did you try removing the *?

   On Fri, Jul 16, 2010 at 10:19, HAUSa

   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
Anyone?

On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
Yes:

advertisement_show:
  url:     /:sf_culture/advertisement/show/:id/:slug/*
  class:   sfPropelRoute
  options: { model: Advertisement, type: object }
  param:   { module: advertisement, action: show }
  requirements:
    sf_method:  [get, post]
    sf_culture: (?:en|es|de|fr|nl)

On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote:

 Is your route declared as sfPropelRoute/sfDoctrineRoute?

 On Wed, Jul 14, 2010 at 15:23, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  I can't use genUrl like this:
  genUrl('advertisement_show', $Advertisement)
  where $Advertisement is the object for the sfObjectRoute

  The only way to do so is to call it like this:
  genUrl('advertisement_show?id=' . $Advertisement-getId() . 
  'slug=' .
  $Advertisement-getSlug())

  But that, ofcourse, kills the flexibility of the routing system!
  How can I do the top solution with getUrl?

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

  --
  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: genUrl with object

2010-07-16 Thread HAUSa
Anyone?

On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 Yes:

 advertisement_show:
   url:     /:sf_culture/advertisement/show/:id/:slug/*
   class:   sfPropelRoute
   options: { model: Advertisement, type: object }
   param:   { module: advertisement, action: show }
   requirements:
     sf_method:  [get, post]
     sf_culture: (?:en|es|de|fr|nl)

 On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote:

  Is your route declared as sfPropelRoute/sfDoctrineRoute?

  On Wed, Jul 14, 2010 at 15:23, HAUSa

  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
   I can't use genUrl like this:
   genUrl('advertisement_show', $Advertisement)
   where $Advertisement is the object for the sfObjectRoute

   The only way to do so is to call it like this:
   genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' .
   $Advertisement-getSlug())

   But that, ofcourse, kills the flexibility of the routing system!
   How can I do the top solution with getUrl?

   --
   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] Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
I got a feeling that my method option is ignored:

advertisement_show:
  url: /:sf_culture/advertisement/show/:id/:slug/*
  class:   sfPropelRoute
  options: { model: Advertisement, type: object, method: adsasdgas }
  param:   { module: advertisement, action: show }
  requirements:
sf_method:  [get, post]
sf_culture: (?:en|es|de|fr|nl)

I gave it on purpose a name that doesn't exist in order to test it.
Because I don't get an error screen, it confirms my theory that the
method option is ignored.

How can I set a method name from my AdvertisementPeer with which my
object is picked?

-- 
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] genUrl with object

2010-07-14 Thread HAUSa
I can't use genUrl like this:
genUrl('advertisement_show', $Advertisement)
where $Advertisement is the object for the sfObjectRoute

The only way to do so is to call it like this:
genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' .
$Advertisement-getSlug())

But that, ofcourse, kills the flexibility of the routing system!
How can I do the top solution with getUrl?

-- 
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: Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
Doesn't work either, gets ignored as well

On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote:
 http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10...

 :)

 On 14.07.2010, at 13:20, HAUSa wrote:

  I got a feeling that my method option is ignored:

  advertisement_show:
   url:     /:sf_culture/advertisement/show/:id/:slug/*
   class:   sfPropelRoute
   options: { model: Advertisement, type: object, method: adsasdgas }
   param:   { module: advertisement, action: show }
   requirements:
     sf_method:  [get, post]
     sf_culture: (?:en|es|de|fr|nl)

  I gave it on purpose a name that doesn't exist in order to test it.
  Because I don't get an error screen, it confirms my theory that the
  method option is ignored.

  How can I set a method name from my AdvertisementPeer with which my
  object is picked?

  --
  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: genUrl with object

2010-07-14 Thread HAUSa
Yes:

advertisement_show:
  url: /:sf_culture/advertisement/show/:id/:slug/*
  class:   sfPropelRoute
  options: { model: Advertisement, type: object }
  param:   { module: advertisement, action: show }
  requirements:
sf_method:  [get, post]
sf_culture: (?:en|es|de|fr|nl)

On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote:
 Is your route declared as sfPropelRoute/sfDoctrineRoute?

 On Wed, Jul 14, 2010 at 15:23, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  I can't use genUrl like this:
  genUrl('advertisement_show', $Advertisement)
  where $Advertisement is the object for the sfObjectRoute

  The only way to do so is to call it like this:
  genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' .
  $Advertisement-getSlug())

  But that, ofcourse, kills the flexibility of the routing system!
  How can I do the top solution with getUrl?

  --
  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: Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
Ow now it does... hmmm weird.
Thanks, it all works fine now!

On 14 jul, 15:38, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 Doesn't work either, gets ignored as well

 On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote:

 http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10...

  :)

  On 14.07.2010, at 13:20, HAUSa wrote:

   I got a feeling that my method option is ignored:

   advertisement_show:
    url:     /:sf_culture/advertisement/show/:id/:slug/*
    class:   sfPropelRoute
    options: { model: Advertisement, type: object, method: adsasdgas }
    param:   { module: advertisement, action: show }
    requirements:
      sf_method:  [get, post]
      sf_culture: (?:en|es|de|fr|nl)

   I gave it on purpose a name that doesn't exist in order to test it.
   Because I don't get an error screen, it confirms my theory that the
   method option is ignored.

   How can I set a method name from my AdvertisementPeer with which my
   object is picked?

   --
   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] i18n doesn't save

2010-07-05 Thread HAUSa
I got two classes, user and user_i18n.
In my UserForm.class.php, I embed two UserI18nForm.class.php.

When I print my form, it looks all okay. But something strange happens
when I try to save the form ($form-save()).
If the records in the user_i18n database table don't exist yet, saving
goes well.
If the records already exist, and so it is an update, the new form
data is not saved.

Somebody who knows how this is possible? I'm using Propel with sf1.4

-- 
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: Use database in app.yml

2010-07-04 Thread HAUSa
I want to use this because I have some system setting which should
really belong in that app.yml file. But the admins which I am
developing it for want to change those settings in an admin panel.
Think for example the lifetime of a post, how many credits for a quick
respons / answer, etc. All settings I want to access by using
sfConfig::get()

The use op PHP in app.yml is possible I've seen, the only thing
missing is the database connection. No connection information in your
runtime configuration file for datasource [propel] How can I get that
connection there?


On 2 jul, 12:29, Daniel Lohse annismcken...@googlemail.com wrote:
 I'd probably go with a plugin that handles dynamic and configurable settings 
 that live in a database, like csSettingsPlugin. :)

 Cheers, Daniel

 On 02.07.2010, at 11:41, Tom Ptacnik wrote:

  I'm not sure it's possible to do it this way.

  Why do you want to insert some configuration into the app.yml from
  database? For what do you need this configuration setting?

  On 1 čnc, 14:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
  wrote:
  I want to use some configuration settings from the database in my
  app.yml configuration file.
  This is my code now:

  all:
  ?php foreach(SettingPeer::getIndex() as $oSetting): ?
    ?php echo $oSetting-getSlug() . ': ' . $oSetting-getValue() ?
  ?php endforeach; ?

  But the error I receive says No connection information in your
  runtime configuration file for datasource [propel]

  What should I do to make this happen?
  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

-- 
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] Use database in app.yml

2010-07-01 Thread HAUSa
I want to use some configuration settings from the database in my
app.yml configuration file.
This is my code now:

all:
?php foreach(SettingPeer::getIndex() as $oSetting): ?
  ?php echo $oSetting-getSlug() . ': ' . $oSetting-getValue() ?
?php endforeach; ?

But the error I receive says No connection information in your
runtime configuration file for datasource [propel]

What should I do to make this happen?
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] I18n in form filter

2010-06-23 Thread HAUSa
Is it possible to use fields from the i18n object table in the form
filter?
So can I embed the UserI18nFormFilter class in my UserFormFilter?

The normal embedI18n function from the sfForm class doesn't work...

-- 
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] PHP in admin generator generator.yml

2010-06-21 Thread HAUSa
Is it possible to use PHP code in the .yml generator files of the
admin generator?

-- 
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] Translation in form class

2010-06-21 Thread HAUSa
How can I get a I18n translation in my form class?
I want to use the __() function in my UserForm.class.php.

-- 
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] IP address

2010-06-15 Thread HAUSa
How do I lookup the users IP address?

-- 
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] sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
In form I use the sfWidgetFormI18nLanguageChoice.
But, when I try to load the page, it says the
sfWidgetFormI18nLanguageChoice class cannot be found.

How is that possible?

-- 
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: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
By the way, I use Symfony 1.4 :)


On 25 mei, 17:32, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 In form I use the sfWidgetFormI18nLanguageChoice.
 But, when I try to load the page, it says the
 sfWidgetFormI18nLanguageChoice class cannot be found.

 How is that possible?

 --
 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: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
Ah that's it!
The new docs are wrong!

On 25 mei, 17:38, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
 Try sfWidgetFormI18nChoiceLanguage

 On Tue, May 25, 2010 at 11:33 AM, HAUSa



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  By the way, I use Symfony 1.4 :)

  On 25 mei, 17:32, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
  wrote:
  In form I use the sfWidgetFormI18nLanguageChoice.
  But, when I try to load the page, it says the
  sfWidgetFormI18nLanguageChoice class cannot be found.

  How is that possible?

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

-- 
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] project reserved

2010-05-17 Thread HAUSa
Is project a special reserved word in your data model for Symfony /
Propel?
I know MySQL accepts it as a table name. Is there a hack for still
using it?

-- 
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] Compatibility PHP 5.3

2010-05-15 Thread HAUSa
Anyone who has experienced using Symfony on PHP 5.3?
Did it all run fine? No compatibility errors / bugs?

The Symfony versions 1.1, 1.2, 1.4?

-- 
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] Check object relations

2010-04-19 Thread HAUSa
Is it possible to check for an object if there are any foreign key
restrictions in effect? So deletion of that object is not possible?

-- 
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: Partial in component

2010-04-01 Thread HAUSa
I want to use it in my component (not template) because I have the e-
mail layout in there.
And the e-mail has to be sent from the component with the Mailer.


On 1 apr, 15:19, Manel mmongui...@quesabesde.com wrote:
 Is not a good idea to get a partial in an action, is better in the
 template.

 In a component you can include a partial in the template like this:
 ?php echo include_partial('module/partial', $params)?
 I use in several components without problem.

 Manel

 On 31 mar, 17:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
 wrote:

  In an action I can use $this-getPartial('system/email_template'), but
  that doesn't work in an component.
  How can I do this in a component?

-- 
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] Partial in component

2010-03-31 Thread HAUSa
In an action I can use $this-getPartial('system/email_template'), but
that doesn't work in an component.
How can I do this in a component?

-- 
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] Propel extend Criteria different functions

2010-03-15 Thread HAUSa
If you want to make OR term in Propel, you need to make a Criterion
object that adds the OR terms to the Criteria object.

Now I build my Criteria by use of several functions. This is the
first:

public static function getAttentionCriteria(Criteria $oCriteria =
NULL){
if($oCriteria == NULL) $oCriteria = new Criteria();
else $oCriteria = clone $oCriteria;

$oCriteria-setDistinct(self::ID);
$oCriterion = $oCriteria-getNewCriterion(self::ADDRESS, '',
Criteria::EQUAL);
$oCriterion-addOr($oCriteria-getNewCriterion(self::CITY,
'',
Criteria::EQUAL));
$oCriteria-add($oCriterion);

return $oCriteria;
}

Another function needs to use the very same Criteria, but with an
extra OR term added. This is the function:

public static function getExtendedAttentionCriteria(Criteria
$oCriteria = NULL){
if($oCriteria == NULL) $oCriteria = new Criteria();
else $oCriteria = clone $oCriteria;

$oCriteria = self::getAttentionCriteria($oCriteria);

$oCriterion = $oCriteria -getNewCriterion(self::IMAGE_ID, NULL,
Criteria::EQUAL);
$oCriteria-addOr($oCriterion);

return $oCriteria;
}

But the last extra OR term (self::IMAGE_ID is equal to NULL) is always
only added in an AND term.
How can I extend the first Criteria from getAttentionCriteria and add
the self::IMAGE_ID is equal to NULL as an OR term?

-- 
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] Check for a non-existing relation in Propel

2010-03-11 Thread HAUSa
I have a multi-multi relation in my model:

  zipcode:
id:{ type: integer, required: true, primaryKey: true,
autoIncrement: true }
region_id: { type: integer, foreignTable: region,
foreignReference: id, required: true, onDelete: cascade }
slug:  { type: varchar, required: true, index: unique }
address:   { type: varchar, required: true }
zipcode:   { type: varchar, required: true }
city:  { type: varchar, required: true }

  theme:
id:{ type: integer, required: true, primaryKey: true,
autoIncrement: true }
title: { type: varchar, required: true }
slug:  { type: varchar, required: true, index: unique }

  link_zipcode_theme:
zipcode_id: { type: integer, foreignTable: zipcode,
foreignReference: id, primaryKey: true, required: true, onDelete:
cascade }
theme_id:   { type: integer, foreignTable: theme,
foreignReference: id, primaryKey: true, required: true, onDelete:
cascade }

How do I build a Criteria for Propel where it takes al zipcodes which
are NOT related to a theme?

-- 
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] Propel double join

2010-03-04 Thread HAUSa
In Propel I have a double JOIN: the Zipcode table is joined in a query
on the User table.

Now I have two functions which both join the Zipcode table:
* addSortCriteria()
* addFilterCriteria()

When a user sorts on a record from the Zipcode table
(addSortCriteria), the Zipcode table is joined, as well as a user
filters on a record from the Zipcode table (addFilterCriteria).

The problem is, when a user sorts ánd filters on a record from the
Zipcode table, the table is joined twice. And that gives an SQL error,
ofcourse.
I cannot change this situation. Maybe the both functions do not
require the Zipcode join (both use User table columns), or just one of
them uses it, or both. If none of them uses it, the table shouldn't be
joined.

Is there some sort of method to check if a table is already joined?

-- 
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] Number range in AdminGen

2010-03-03 Thread HAUSa
Hi all,

I'm using the Admin Generator and as you all might know, it contains a
filter form in the index action to filter the displayed list results.

Now I see that for dates, it has a date range filter widget. Users can
select a from and to date, which shows results in between those dates.
As far as I can see, there is not such an option for number fields
(integers, decimals, floats). That would be very helpful for
filtering, for example if you want to filter products between the 50
and 75 euro's.

Does somebody know a plugin or way to easily accomplish a number range
filter?

Thx, HAUSa

-- 
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: Number range in AdminGen

2010-03-03 Thread HAUSa
http://svn.symfony-project.com/plugins/sfGenExtraPlugin/trunk/

On 3 mrt, 14:21, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 Hi all,

 I'm using the Admin Generator and as you all might know, it contains a
 filter form in the index action to filter the displayed list results.

 Now I see that for dates, it has a date range filter widget. Users can
 select a from and to date, which shows results in between those dates.
 As far as I can see, there is not such an option for number fields
 (integers, decimals, floats). That would be very helpful for
 filtering, for example if you want to filter products between the 50
 and 75 euro's.

 Does somebody know a plugin or way to easily accomplish a number range
 filter?

 Thx, HAUSa

-- 
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] Check if partial exists

2010-03-01 Thread HAUSa
Is there a way to check if a partial exists in the template?
I've looked around in Google, but it doesn't give very useful
results...

-- 
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] updateObject() or save()

2010-02-25 Thread HAUSa
When a Propel form is submitted, I want some values to be set manually
by the system. So I have to extend the form object like I do with a
normal object class.

For example, when a User is saved, the extended class looks like this:
public function save(){
   $this-setRandom(rand(1,99));
   return parent::save();
}

Now I want to do the same when a form is submitted. The question is,
where should I do this? Because the form has two possible functions to
do this: updateObject() and save(). What is best?

-- 
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] url_for with extra parameters

2010-02-12 Thread HAUSa
I'm using the url_for helper to generate a link in my template. The
link has to go to an object detail page (sfPropelRoute) and has send
some GET parameters as well.

This is my route:
article_route:
  url: /:sf_culture/article/:id/:slug/*
  class:   sfPropelRoute
  options: { model: Article, type: object }
  param:   { module: article, action: show }
  requirements:
sf_method:  [get, post]
sf_culture: (?:en|nl|de|fr)

The correct use for an object detail page is url_for('article_route',
$oArticle) in which $oArticle ofcourse is the correct article object.
But not I have to create some additional GET parameter which, as far
as I can see, is not possible with this helper. I tried
url_for('article_route?param=test', $oArticle), but then I receive an
exception.
I also checked the API to see if I could use a third parameter, but
that also is not possible.

I know I could use url_for('@article_route?id=' . $oArticle-getId() .
'slug=' . $oArticle-getSlug() . 'param=test'), but that would give
me quite some work if I wanted to change the route (an extra object
parameter in the url for example).

Has someone found a workaround?

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



[symfony-users] AJAX form fields

2010-02-05 Thread HAUSa
Right now I have two form widgets which are of the class
sfWidgetFormPropelChoice.
The second field has about 20 choices, but can be filtered by the
first one.
Is it possible in a quick and neat way to replace the all the options
of the second form field by the filtered options (about 5) when a
choice is being made in the first one?

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



[symfony-users] CSRF attach with admin generator

2010-02-04 Thread HAUSa
For some reason, I _always_ get a CSRF attack error message when I use
the admin generator and want to execute a batch action. I can't fix it
as well, I don't know where that error is coming from.
Is there anyone who ran into the same problem or can help me?

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



[symfony-users] Re: CSRF attach with admin generator

2010-02-04 Thread HAUSa
It is disabled, I test via the dev environment.
I also tried to clear the cache several times

On 4 feb, 12:56, Tyler tyler.gr...@gmail.com wrote:
 check cache for your app, is it enabled?

 On 4 фев, 13:52, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
 wrote:

  For some reason, I _always_ get a CSRF attack error message when I use
  the admin generator and want to execute a batch action. I can't fix it
  as well, I don't know where that error is coming from.
  Is there anyone who ran into the same problem or can help me?

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



[symfony-users] Date validator problem

2010-01-19 Thread HAUSa
I use a date input widget, which is configured as below:
$this-widgetSchema['birth_date']= new 
sfWidgetFormDate(array(
'format' = '%day%-%month%-%year%',
'years'  = range(date('Y') - 15, date('Y') - 4)
));

My validator is configured as below:
$this-validatorSchema['birth_date'] = new 
sfValidatorDate(array(),
array(
'required' = 'Er is geen geboortedatum geselecteerd.',
'invalid'  = 'De geboortedatum is ongeldig.'
));

The problem is, when I select the date 22 may 1995, it says the
birth_date is invalid. When I select another date, the form is
processed, but the database value is 0001-05-22.

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




[symfony-users] Base GeneratorConfiguration not found

2010-01-15 Thread HAUSa
When I go to my application, it says only this:
Fatal error: Class 'BasePageGeneratorConfiguration' not found in /srv/
www/vhosts/startersspecialist.nl/httpdocs/apps/controlpanel/modules/
page/lib/pageGeneratorConfiguration.class.php on line 11

I think it has something to do with the admin generator, but what? I
cannot recall the class and don't know where I should find it.
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Weird url_for bug

2009-12-11 Thread HAUSa
When I use the url_for() function, the output is without the
controller prefix.

Example, on controlpanel_dev.php/system/sign_in_form I place the form,
and I use
echo url_for('system/sign_in')
The output now is /system/sign_in, while it should be
controlpanel_dev.php/system/sign_in!

Anyone who knows how that might come?

--

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




[symfony-users] Re: Weird url_for bug

2009-12-11 Thread HAUSa
prod:
  .settings:
no_script_name: true
logging_enabled:false

dev:
  .settings:
error_reporting:?php echo (E_ALL | E_STRICT).\n ?
web_debug:  true
cache:  false
no_script_name: false
etag:   false

It was true for the prod environment, false for the dev environment.
The weird thing is, if I change it to false in the prod settings, it
all works. If I change it tot true in the prod settings, also in the
dev environment the .php file prefix is missing.

On 11 dec, 13:09, Gábor Fási maerl...@gmail.com wrote:
 Check your no_script_name setting.

 On Fri, Dec 11, 2009 at 12:41, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  When I use the url_for() function, the output is without the
  controller prefix.

  Example, on controlpanel_dev.php/system/sign_in_form I place the form,
  and I use
  echo url_for('system/sign_in')
  The output now is /system/sign_in, while it should be
  controlpanel_dev.php/system/sign_in!

  Anyone who knows how that might come?

  --

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

--

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




[symfony-users] i18n:extract for the forms

2009-12-07 Thread HAUSa
Is there a method like the php symfony i18n:extract frontend en
command to automatically generate the language XML for the forms?

--

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




[symfony-users] Join with multiple primary keys

2009-11-23 Thread HAUSa
How can I set a join table with propel for a i18n table?
That table has to be joined by the id and culture field, but as far as
I know the Criteria::addJoin() function only supports just one join
criteria.

--

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




[symfony-users] Different main template

2009-11-23 Thread HAUSa
I need to have a different main template for just one action. Is that
possible, or do I have to create a complete seperate app for that?

--

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




[symfony-users] Unset embedded form

2009-11-08 Thread HAUSa

I have two classes: UserForm and UserSimpleForm. UserSimpleForm
extends UserForm.
In UserForm are several other forms embedded, like PhotoForm and
AddressForm.

For the simple version of the form, UserSimpleForm, I want to unset
these embedded forms. Say unembed (is that an existing word?) them.

How can I do that?
--~--~-~--~~~---~--~~
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: a menu for my project

2009-11-08 Thread HAUSa

Build one in HTML / CSS in a special component / partial?

On 8 nov, 21:37, Relez relvis.gonza...@gmail.com wrote:
 Hey guys, I need a horizontal menu for my application, this menu need
 to be integrated with sfGuardPlugin to manage permissions. Any idea?
--~--~-~--~~~---~--~~
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] Force empty input field

2009-11-08 Thread HAUSa

Is it possible to force an empty input field?
Because when I use setDefault(), the field still has default values
from the object when you edit is (object not new)...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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] Pager without database

2009-11-08 Thread HAUSa

Is it possible to make a pager that doesn't use the database?
In that case I make an array of objects myself and pass it on to the
pager.
--~--~-~--~~~---~--~~
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] Join i18n table

2009-11-04 Thread HAUSa

When I make a relation between two tables, it is possible to use a
automatic join select.

Example:

message:
* id
* user_id

message_i18n:
* id
* culture
* subject
* message

user:
* id
* name

Now I can use MessagePeer::doSelectJoinUser()

Is it also possible to use MessagePeer::doSelectJoinI18n() or
something? That would help me reduce the number of queries!
--~--~-~--~~~---~--~~
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] Bug in PropelForm?

2009-11-04 Thread HAUSa

I think I ran into a bug in the PropelForm class. It's quite some
story with a lot of large code fragments in it, that's why I think
it's easier to read it on a forum:

http://forum.symfony-project.org/index.php/m/87845/#msg_87845
--~--~-~--~~~---~--~~
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: Delete is not work in admin generator

2009-11-04 Thread HAUSa

Are you sure the routing.yml is configured correctly?
It seems to me, the URL has to be photolibrary/delete/82

On 2 nov, 11:13, saturngod saturn...@gmail.com wrote:
 I write generator.yml like that

 generator:
   class:              sfPropelAdminGenerator

   param:
     model_class:      Photolibrary
     theme:            default

     config:
     list:
       title:  Photo Library Management
       display:  [=username,name,thumbnail_image,date]
       max_per_page:  10
       sort:  [userid,asc]
       filters: [userid,name]
       object_actions:
         _delete: -
       batch_actions:
         _delete: -

       fields:
          username: { name: User Name, params: width=300}
          name: { name: Picture}
          thumbnail_image: {name: Image, type: image_tag}

 Delete button appear and but I can't delete it. It show

 Action photolibrary/82 does not exist.

 So, How to write for delete ?
--~--~-~--~~~---~--~~
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: Define model inside of apps folder

2009-11-04 Thread HAUSa

Yes, that is possible. the apps/[app name]/lib folder is automatically
included.

On 3 nov, 05:49, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote:
 Hi!

 By default, all the models are defined inside of project_root/lib/
 model/doctrine/.
 That makes the model accessible for every applications inside of apps.

 What about if i want to make one model accessible only for one app ?
 (for example a model User with some special methods which should be
 accessible only in the backend application).

 Is it possible to move some model definition inside of project_root/
 apps/backend/lib/doctrine... ?
 If not, what would be the best way to implement that i described
 above ?

 Thanks in advance for your answers!
--~--~-~--~~~---~--~~
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] Enabling modules

2009-11-03 Thread HAUSa

Is it necessary to enable plugin modules in sf1.3?
--~--~-~--~~~---~--~~
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: Enabling modules

2009-11-03 Thread HAUSa

Okay weird.

Because I installed a plugin, enabled the modules, but I keep
receiving this error message:
Fatal error: Class 'sfJqueryFormValidationFilter' not found in /home/
snuber/domains/snuber.net/public_html/cache/website/dev/config/
modules_user_config_filters.yml.php on line 22

/plugins/sfJqueryFormValidationPlugin/lib/filter/
sfJqueryFormValidationFilter.class.php is there!


On 3 nov, 09:57, Sid Ferreira sid@gmail.com wrote:
 yup

 On Tue, Nov 3, 2009 at 06:55, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  Is it necessary to enable plugin modules in sf1.3?

 --
 Sidney G B Ferreira
 Desenvolvedor Web
--~--~-~--~~~---~--~~
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: Embed form layout

2009-11-03 Thread HAUSa

The only way is to do not use echo $form, but make your own template.
You can use a foreach loop to discover each widget.

On 3 nov, 11:04, cosmy c.zec...@gmail.com wrote:
 Hi again.. I have a stupid question whithout answer.
 I don't want to display the embedded form name in my forms, but i
 can't find the way to hide it.
 It's placed in a th tag and i can't disable all the th in my layout..
 anyone can help me?

 Thank's
 Cosimo
--~--~-~--~~~---~--~~
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] URL transform

2009-11-03 Thread HAUSa

When I use url_for('advertisement/index?category=' . $subcategory-
getId()), the URL output is /advertisement?category=2

How can I make the URL look like /advertisement/index/category/2 ?
--~--~-~--~~~---~--~~
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: URL transform

2009-11-03 Thread HAUSa

It's not a sfPropelRoute, it has to be a request parameter.
The category id is a parameter, it is a advertisement object.

On 3 nov, 14:23, Gábor Fási maerl...@gmail.com wrote:
 url: /advertisement/index/category/:id
 class: sfPropelRoute

 I'll leave the rest to you :P

 On Tue, Nov 3, 2009 at 12:43, HAUSa

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  When I use url_for('advertisement/index?category=' . $subcategory-
 getId()), the URL output is /advertisement?category=2

  How can I make the URL look like /advertisement/index/category/2 ?
--~--~-~--~~~---~--~~
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] Discover i18n fields in form

2009-11-02 Thread HAUSa

I embedded two UserI18nForms in my UserForm.
$this-embedI18n(array('de', 'en'));

This is my action:
$this-form = new UserForm();

Now I want to display the forms seperately in my template. So echo
$form is no option for me.
Is it possible to retrieve an array of all embedded forms from the
UserForm?
--~--~-~--~~~---~--~~
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] Check fields without submit

2009-11-02 Thread HAUSa

Is it possible to check form values without the user submitting it?
It seems that the validators set in the form class only work when you
submit.

I want to have that when a user completes a field (onblur), the
entered value is checked immediately.
I know I can do this with AJAX, but how do I make the call to find the
corresponding validator?
--~--~-~--~~~---~--~~
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: Check fields without submit

2009-11-02 Thread HAUSa

Yeah, but it is not in my profit as a developer to develop the
validation twice (in JS and PHP).
That's why I want to check the value by use of AJAX from the sf Form
validator.

On 2 nov, 15:16, David Ashwood da...@inspiredthinking.co.uk wrote:
 When you generate the field - you'd need to annotate with some kind of
 markup - which then js could work with for validating in the browser.

 A simple but crude approach would be to use the class of the element:

 input ...class=displayClass numeric-30

 Then with js - obtain a collection of all classes starting with numeric
 and parse it's full name for the extra data.

 On Mon, 2009-11-02 at 06:01 -0800, HAUSa wrote:
  Is it possible to check form values without the user submitting it?
  It seems that the validators set in the form class only work when you
  submit.

  I want to have that when a user completes a field (onblur), the
  entered value is checked immediately.
  I know I can do this with AJAX, but how do I make the call to find the
  corresponding validator?
--~--~-~--~~~---~--~~
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] Configuration file for whole project

2009-10-30 Thread HAUSa

In every application is a app.yml in the config directory.
Is there also a way to create one for a whole project where all config
settings are available in all applications and the model?
--~--~-~--~~~---~--~~
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] Redirect from component

2009-10-26 Thread HAUSa

Is it possible to redirect from a component?
Because the redirect() function doesn't work (Call to undefined method
systemComponents::redirect)
--~--~-~--~~~---~--~~
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] Multiple cultures

2009-10-26 Thread HAUSa

Is it possible to set multiple cultures for users? For example first
the culture FR, then the culture EN.
When a Propel object is not available in FR, it automatically takes
the EN value.
--~--~-~--~~~---~--~~
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: Multiple cultures

2009-10-26 Thread HAUSa

That is not what I mean. When a user submits an advertisement, he/she
must enter it in his own local language (for example FR) and for EN.
When a dutch user (language NL) views the advertisement, there will
ofcourse be no NL i18n content be submitted. So then Symfony has to
display the EN info.
But when another French (FR) user visits the same advertisement, the
FR info is available so it has to show the FR content.


On 26 okt, 12:51, david da...@inspiredthinking.co.uk wrote:
 The trick with cultures is knowing what happens when, the reasons why -  
 and understanding where your code fits into the cycle.

 There's a negotiation that happens between the browser and the server -  
 where they quiz each other about what cultures the browser has been  
 configured with - and what the server can provide.
 Note: Often users don't know how to change or set the culture - so if they  
 have installed their browser from a default, non-locale aware source,  
 it'll report the wrong culture.  ie: Many browsers have en_US as a default  
 (because it was installed from a fast US server an a en_US package) - even  
 though the user is actually on a es_AR culture OS somewhere in Argentina.

 The site will also have a list of cultures that it supports (you don't  
 often have every language available).

 sf can auto-magically workout which culture to use using negotiation  
 between what the site supports and what the user understands - checkout  
 http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_s... 
 for more info.

 You will however still need to provide a way for users to change culture  
 due to the inaccuracy of browser cultures.

 On Mon, 26 Oct 2009 11:21:42 +0100, HAUSa  

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  Is it possible to set multiple cultures for users? For example first
  the culture FR, then the culture EN.
  When a Propel object is not available in FR, it automatically takes
  the EN value.

 --
 Using Opera's revolutionary e-mail client:http://www.opera.com/mail/
--~--~-~--~~~---~--~~
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: Multiple cultures

2009-10-26 Thread HAUSa

Hmm, I don't think you understand me. Or I just don't get it yet :)

Two users: one from France (language FR), one from Holland (language
NL)
The website supports three languages: EN, FR and NL

FR guy submits his advertisement in EN and FR
Now the NL guy wants to view this advert. Because his culture is NL,
the system tries to obtain the NL i18n data of the advert. But that is
not available since the FR guy only submitted it in FR and EN.

Now I want the system to show the NL user the EN advert data, without
him changing his culture (the website user interface is still shown in
NL, but only the advert data is shown in EN because there is no NL
data for that)

How can I do this?


On 26 okt, 21:45, david da...@inspiredthinking.co.uk wrote:
 Which means that the list of preferred cultures comes from the advert -  
 rather than from the site

 On Mon, 26 Oct 2009 21:12:56 +0100, HAUSa  



 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

  That is not what I mean. When a user submits an advertisement, he/she
  must enter it in his own local language (for example FR) and for EN.
  When a dutch user (language NL) views the advertisement, there will
  ofcourse be no NL i18n content be submitted. So then Symfony has to
  display the EN info.
  But when another French (FR) user visits the same advertisement, the
  FR info is available so it has to show the FR content.

  On 26 okt, 12:51, david da...@inspiredthinking.co.uk wrote:
  The trick with cultures is knowing what happens when, the reasons why -  
   and understanding where your code fits into the cycle.

  There's a negotiation that happens between the browser and the server -  
   where they quiz each other about what cultures the browser has been  
  configured with - and what the server can provide.
  Note: Often users don't know how to change or set the culture - so if  
  they have installed their browser from a default, non-locale aware  
  source, it'll report the wrong culture.  ie: Many browsers have en_US  
  as a default (because it was installed from a fast US server an a en_US  
  package) - even though the user is actually on a es_AR culture OS  
  somewhere in Argentina.

  The site will also have a list of cultures that it supports (you don't  
  often have every language available).

  sf can auto-magically workout which culture to use using negotiation  
  between what the site supports and what the user understands - checkout  
   http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_s...
  for more info.

  You will however still need to provide a way for users to change  
  culture due to the inaccuracy of browser cultures.

  On Mon, 26 Oct 2009 11:21:42 +0100, HAUSa  
  jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

   Is it possible to set multiple cultures for users? For example first
   the culture FR, then the culture EN.
   When a Propel object is not available in FR, it automatically takes
   the EN value.

  --
  Using Opera's revolutionary e-mail client:http://www.opera.com/mail/

 --
 Using Opera's revolutionary e-mail client:http://www.opera.com/mail/
--~--~-~--~~~---~--~~
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] i18n get other language

2009-10-25 Thread HAUSa

I have several i18n fields in my advertisement model, for example
title and description.

When a user submits an advertisement, he / she has to complete those
fields in their own foreign language and in English. For example: if a
German user submits, he / she has to complete it in DE and EN. A
French user has to submit in FR and EN, an English user only in EN.

But now I have a problem. When a Dutch user (with language NL) views
an advertisement submitted by a French user (FR and EN submitted), the
Dutch user sees no title and description. That's because no NL title
and description are submitted.

Here comes my question:
How can I say to Symfony that if the chosen language (NL) is not
available, it automatically has to take the submitted values for EN?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@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: i18n get other language

2009-10-25 Thread HAUSa

I use Propel.
How can I create my own i18n template? Not really heard of it
before :)

On 25 okt, 16:54, Alexandre SALOME alexandre.sal...@gmail.com wrote:
 Hi,

   You should create your own I18N template, inspired from the I18N Doctrine
 Template.

 2009/10/25 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com





  I have several i18n fields in my advertisement model, for example
  title and description.

  When a user submits an advertisement, he / she has to complete those
  fields in their own foreign language and in English. For example: if a
  German user submits, he / she has to complete it in DE and EN. A
  French user has to submit in FR and EN, an English user only in EN.

  But now I have a problem. When a Dutch user (with language NL) views
  an advertisement submitted by a French user (FR and EN submitted), the
  Dutch user sees no title and description. That's because no NL title
  and description are submitted.

  Here comes my question:
  How can I say to Symfony that if the chosen language (NL) is not
  available, it automatically has to take the submitted values for EN?

 --
 Alexandre Salomé -- alexandre.sal...@gmail.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] Required fields i18n

2009-10-23 Thread HAUSa

In my ObjectI18nForm I made several fields required.
I embedded the ObjectI18nForm for two languages in my ObjectForm.

Ofcourse, in both languages the fields are required. But I want my
user to be able to submit only one language, he / she is not required
to complete the fields for both languages.

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



[symfony-users] Put action in cache

2009-10-23 Thread HAUSa

I have a recursive category overview. Example:

Category 1
 *  Category 1.1
 *  Category 1.2
 *  Category 1.3
Category 2
Category 3
 *  Category 3.1
 *  Category 3.2

I also created a function in CategoryPeer.class.php named
generateSelect. The output of this function is going to be:
select
  option value=[id]Category 1/option
  option value=[id]-- Category 1.1/option
  option value=[id]-- Category 1.2/option
  option value=[id]-- Category 1.3/option
  option value=[id]Category 2/option
  [etc]
/select

My problem is that every time I use that select box, 9 queries are
being executed. One for the retrieval of the main categories and then
for every category to check if there are subcategories. I don't want
all these queries to be executed every time.

So, is it possible to cache the return value of this Peer function?
That the output will only be renewed every hour?
How do I do that?
--~--~-~--~~~---~--~~
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: Required fields i18n

2009-10-23 Thread HAUSa

Exactly. I want to be 100% sure that one language is completed. But
the user may choose for himself if he wants to make his content
available in other languages.

On 23 okt, 14:44, michael.pie...@googlemail.com
michael.pie...@googlemail.com wrote:
 I'm not sure i understand you ...

 This works for me when i want the 'name' field in my i18n form to be
 'required', but only for the 'en' language (in this example). So if i
 have 3 cultures and submit the main form, i get an error beside the
 empty 'name' widget, but only for the specified language.

 On 23 Okt., 13:36, Alexandre SALOME alexandre.sal...@gmail.com
 wrote:

  Well, i think you mean : fill all the required, or none ?

  Because this is good for en, but what if 2 objects of the same class does
  not fill the same language...

  2009/10/23 michael.pie...@googlemail.com michael.pie...@googlemail.com

   I solved it this way:
   In your form configure method (i18n form):

   /* set required if object culture is 'en' */
   $required = ($this-getObject()-getCulture() === 'en') ? true :
   false;

   $this-setValidators(array(
        'name'    = new sfValidatorString(array('required' =
   $required)),
   ));

   Hope this helps ...
   Michael

   On 23 Okt., 10:49, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
   wrote:
In my ObjectI18nForm I made several fields required.
I embedded the ObjectI18nForm for two languages in my ObjectForm.

Ofcourse, in both languages the fields are required. But I want my
user to be able to submit only one language, he / she is not required
to complete the fields for both languages.

Anyone who knows how I can handle this?

  --
  Alexandre Salomé -- alexandre.sal...@gmail.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: Help me for writing criteria

2009-10-21 Thread HAUSa

Maybe this helps?

http://propel.jondh.me.uk/


On 21 okt, 09:45, Avani avani.v.puj...@gmail.com wrote:
 ya.. it's working

 Thanks Gareth..  :)

 On Oct 21, 12:12 pm, Gareth McCumskey gmccums...@gmail.com wrote:

  $exploded_query = explode( , $this-query);

  $k-getNewCriterion(
  sfGuardUserProfilePeer::FIRST_NAME,%.$exploded_query[0].%,Criteria::LIK­E)

  $k-getNewCriterion(
  sfGuardUserProfilePeer::LAST_NAME,%.$exploded_query[1].%,Criteria::LIKE­)

  On Wed, Oct 21, 2009 at 5:25 AM, Avani avani.v.puj...@gmail.com wrote:

   Hi

   I have 1 table in my project, called sf_guard_user_profile. In
   which, there are 2 fields,

   1. first_name
   2. last_name

   I m working on search module

   in table, suppose there is 1 entry

   firstname = 'John'
   lastname = 'Lee'

   In search if any body searches for  'john lee', how to match ?

   bcoz query should be like..

   first_name+' '+last_name = 'john lee'

   If user searches for john   or   lee  than I can display records,

   $k-getNewCriterion(sfGuardUserProfilePeer::FIRST_NAME,%.$this-
   query.%,Criteria::LIKE)

   $k-getNewCriterion(sfGuardUserProfilePeer::LAST_NAME,%.$this-
   query.%,Criteria::LIKE)

   but I dont know how to write for 'first_name' + ' ' + 'last_name'

   Pls help me...

   Thanks.

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

  - Show quoted text -
--~--~-~--~~~---~--~~
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] Access extended I18n form class

2009-10-21 Thread HAUSa

I embedded the UserI18nForm.class.php in my UserForm.class.php:
class UserForm extends BaseUserForm{
  public function configure(){
$this-embedI18n('nl', 'en'));
  }
}

Now I created a new form, MyUserForm.class.php, that extends the
UserForm.class.php. In that form I unset several form widgets. But
from there I'm not able to unset any widgets which come with the
UserI18nForm.class.php!

How can I unset UserI18nForm.class.php form widgets which were
embedded in the UserForm.class.php from the MyUserForm.class.php which
extends the UserForm.class.php?
--~--~-~--~~~---~--~~
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: Unset i18n field

2009-10-20 Thread HAUSa

Okay thx! But how do I use that when I extended the form class?

I got these forms:

ObjectForm extends BaseObjectForm
ObjectI18nForm extends BaseObjectI18nForm

Then in my app lib I created these forms:

MyObjectForm extends ObjectForm
MyObjectI18nForm extends ObjectI18nForm

Ofcourse, the form still takes the ObjectI18nForm object instead of
the MyObjectI18nForm object for the i18n fields. How can I make
Symfony use the MyObjectI18nForm instead of the ObjectI18nForm in
MyObjectForm?


On 19 okt, 23:49, Alexandre SALOME alexandre.sal...@gmail.com wrote:
 I18n fields are not in the form, the in the i18nform.

 Example :

 CmsPageForm has embed CmsPageI18nForm

 So go to your CmsPageI18nForm and unset title or content field.

 Alexandre

 2009/10/19 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com



  In my form class, I can unset several fields.
  But how can I unset an i18n field?

 --
 Alexandre Salomé -- alexandre.sal...@gmail.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: i18n in forms

2009-10-20 Thread HAUSa

Someone who has experience with this?

On 19 okt, 10:37, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 When I have some i18n fields in my form, it is displayed like this:

 price:  field
 rank:  field
 en:
 -- title: field
 -- description: field
 nl:
 -- title: field
 -- description: field

 But, is it also possible to display it like this:

 title:
 -- en: field
 -- nl: field
 price: field
 rank: field
 description:
 -- en: field
 -- nl: field
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   3   >