[symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Parijat Kalia
Hey guys,

while traversing to one of the pages on my website, the frontend_dev.php
seems to disappear. It does exist when I traverse other pages, but the
moment I traverse to this specific page, it disappears, and from thereon, if
I traverse to any other page, it will not come back.

Off course, while I do this, I am on local host and not anything else.

Anyone with any leads on this?

Parijat

-- 
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: How to use framset with symfony?

2010-02-26 Thread Sameer Bhavsar
Hi All,
To display the template in one frame I have following line of code:
frame src=?php echo $sf_content ?/

But while accessing the page following error occurs:
Action StackWorkorder/h1NewStackworkorder does not exist.

My layout.php code is given below:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
  head
?php include_http_metas() ?
?php include_metas() ?
?php include_title() ?
link rel=shortcut icon href=/favicon.ico /
?php include_stylesheets() ?
?php include_javascripts() ?
  /head
frameset cols=20%,80%
frame src=files\leftnav.html/
frame src=?php echo $sf_content ?/
/frameset
/html

Can anybody tell me what I am doing wrong here ?

Thanks,
Sameer B.


On Thu, Feb 25, 2010 at 4:32 PM, SameerB sameerbhav...@gmail.com wrote:

 Hi All,
 I am creating an application containing 5 pages and I want to
 show some links at the left side for navigation. I tried adding
 framset in layout.php but it gives Action does not exits error
 message. Can anyone tell me or give me some example how to use
 frameset in symfony. Or if it is not supported/possible, what can use
 to display links at the left side which is common to all pages and
 hence should be included in layout.

 Thanks in advance,
 SameerB

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

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


Re: [symfony-users] Re: How to use framset with symfony?

2010-02-26 Thread Tarjei Huse
Hi,
On 02/26/2010 10:23 AM, Sameer Bhavsar wrote:
 Hi All,
 To display the template in one frame I have following line of code:
 frame src=?php echo $sf_content ?/
See:
http://www.w3.org/TR/REC-html40/present/frames.html#h-16.2.2

The src attribute of a frame element should be a URI , not the complete
output of your template.


 But while accessing the page following error occurs:
 Action StackWorkorder/h1NewStackworkorder does not exist.
AFAIK That is a routing issue.
T

 My layout.php code is given below:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
   head
 ?php include_http_metas() ?
 ?php include_metas() ?
 ?php include_title() ?
 link rel=shortcut icon href=/favicon.ico /
 ?php include_stylesheets() ?
 ?php include_javascripts() ?
   /head
 frameset cols=20%,80%
 frame src=files\leftnav.html/
 frame src=?php echo $sf_content ?/
 /frameset
 /html

 Can anybody tell me what I am doing wrong here ?

 Thanks,
 Sameer B.


 On Thu, Feb 25, 2010 at 4:32 PM, SameerB sameerbhav...@gmail.com
 mailto:sameerbhav...@gmail.com wrote:

 Hi All,
 I am creating an application containing 5 pages and I want to
 show some links at the left side for navigation. I tried adding
 framset in layout.php but it gives Action does not exits error
 message. Can anyone tell me or give me some example how to use
 frameset in symfony. Or if it is not supported/possible, what can use
 to display links at the left side which is common to all pages and
 hence should be included in layout.

 Thanks in advance,
 SameerB


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


-- 
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413

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

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


Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
Hello

So instead of $logger-info() I should write something like this?

 $this-getEventDispatcher()-notify(new sfEvent($this, 'blah.log', 
array('loglevel'='info', 'msg'='hello world'));

Well, that would not exactly be more elegant than: 

 $logger = BlahLogger::getInstance()-info(hello world);

bye,

-christian-


On Thu, 25 Feb 2010 10:21:00 -0800 (PST)
Richtermeister nex...@gmail.com wrote:

 Hey Chris,
 
 you don't need to interact with this logger directly. It just sits
 there and listens for your custom logging events.
 The dispatcher is what you need to worry about, since that's used to
 dispatch the events in the first place. You'll find that the
 dispatcher is more available throughout the application than the
 logger is, so stick with events to trigger logging.
 
 Daniel
 
 
 On Feb 25, 9:21 am, Christian Hammers c...@lathspell.de wrote:
  Hello
 
  But how do I get an instance of this class?
 
  Or maybe we have a misunderstanding: I do not want 
  $this-getLogger()-info()
  to log into the default logfile as well as into my custom logfile. I want
  separate logfile just for special notes which should also not appear in
  the regular log files.
 
  bye,
 
  -christian-
 
  On Wed, 24 Feb 2010 09:25:45 -0800 (PST)
 
  Richtermeister nex...@gmail.com wrote:
   Hey Christian,
 
   it's simpler than that.
   Look in your factories.yml at the bottom where the loggers are being
   set up.
   The main logger is an aggregate logger, and you can add your logger to
   this like so:
 
   (under loggers)
   my_logger:
     class: BlahLogger
     param:
       level: whateverlevel
       file:   path_to_file
 
   That starts this logger automatically, and since it only listens to
   your specialized events, it shouldn't get into the way..
 
   Daniel
 
   On Feb 24, 4:59 am, Christian Hammers c...@lathspell.de wrote:
Hello
 
Thanks for this hint!
 
I could not figure out how to use the factory.yml without interfering
with the standard logger as you apparently can't create arbitrary 
objects with it.
 
But after adding the following function:
  class BlahLogger {
    public static function getInstance() {
        return new NcLogger(
            sfContext::getInstance()-getEventDispatcher(),
            array('level'='debug', 'file'= 
sfConfig::get('sf_log_dir').'/nc.log'));
    }
        ... your initialize() ...
  }
 
I can now use it like this:
        $logger = BlahLogger::getInstance();
        $logger-info(hello world);
 
bye,
 
-christian-
 
On Tue, 23 Feb 2010 21:22:00 -0800 (PST)
 
Richtermeister nex...@gmail.com wrote:
 Hey Christian,
 
 yeah, I've had some trouble with that as well, but I think I found a
 good solution.
 First, I continue to use the regular event system to send log events,
 but I send events of type blah.log instead of application.log.
 Now, to catch those you have to implement a custom logger like so:
 
 class BlahLogger extends sfFileLogger
 {
   public function initialize(sfEventDispatcher $dispatcher, $options =
 array())
   {
     parent::initialize($dispatcher, $options);
     $dispatcher - disconnect('application.log', array($this,
 'listenToLogEvent'));
     $dispatcher - connect('blah.log', array($this,
 'listenToLogEvent'));
   }
 }
 
 You can then instantiate this logger anywhere (either by adding it to
 your factories.yml file, or instantiating it directly.)
 
 Hope this helps.
 
 Daniel
 
 On Feb 23, 9:14 am, Christian Hammers c...@lathspell.de wrote:
  Hello
 
  Is it possible to define a custom sfFileLogger() in factories.yml 
  that works
  completely independend from the standard frontend.log? It should be 
  accessed
  like e.g. sfContext::getLogger(myAppLog)-info(remember that);
  Just that getLogger() does not take an argument and I'm probably 
  trying it
  the completely wrong way again :)
 
  bye,
 
  -christian-
 

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

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


Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Daniel Lohse
It's longer perhaps but more elegant? You betcha! It doesn't create a new 
dependency in your code because your logger could also *not* be there and the 
code would still work.

Cheers, Daniel

On 26.02.2010, at 12:57, Christian Hammers wrote:

 Hello
 
 So instead of $logger-info() I should write something like this?
 
 $this-getEventDispatcher()-notify(new sfEvent($this, 'blah.log', 
 array('loglevel'='info', 'msg'='hello world'));
 
 Well, that would not exactly be more elegant than: 
 
 $logger = BlahLogger::getInstance()-info(hello world);
 
 bye,
 
 -christian-
 
 
 On Thu, 25 Feb 2010 10:21:00 -0800 (PST)
 Richtermeister nex...@gmail.com wrote:
 
 Hey Chris,
 
 you don't need to interact with this logger directly. It just sits
 there and listens for your custom logging events.
 The dispatcher is what you need to worry about, since that's used to
 dispatch the events in the first place. You'll find that the
 dispatcher is more available throughout the application than the
 logger is, so stick with events to trigger logging.
 
 Daniel
 
 
 On Feb 25, 9:21 am, Christian Hammers c...@lathspell.de wrote:
 Hello
 
 But how do I get an instance of this class?
 
 Or maybe we have a misunderstanding: I do not want 
 $this-getLogger()-info()
 to log into the default logfile as well as into my custom logfile. I want
 separate logfile just for special notes which should also not appear in
 the regular log files.
 
 bye,
 
 -christian-
 
 On Wed, 24 Feb 2010 09:25:45 -0800 (PST)
 
 Richtermeister nex...@gmail.com wrote:
 Hey Christian,
 
 it's simpler than that.
 Look in your factories.yml at the bottom where the loggers are being
 set up.
 The main logger is an aggregate logger, and you can add your logger to
 this like so:
 
 (under loggers)
 my_logger:
   class: BlahLogger
   param:
 level: whateverlevel
 file:   path_to_file
 
 That starts this logger automatically, and since it only listens to
 your specialized events, it shouldn't get into the way..
 
 Daniel
 
 On Feb 24, 4:59 am, Christian Hammers c...@lathspell.de wrote:
 Hello
 
 Thanks for this hint!
 
 I could not figure out how to use the factory.yml without interfering
 with the standard logger as you apparently can't create arbitrary objects 
 with it.
 
 But after adding the following function:
   class BlahLogger {
 public static function getInstance() {
 return new NcLogger(
 sfContext::getInstance()-getEventDispatcher(),
 array('level'='debug', 'file'= 
 sfConfig::get('sf_log_dir').'/nc.log'));
 }
 ... your initialize() ...
   }
 
 I can now use it like this:
 $logger = BlahLogger::getInstance();
 $logger-info(hello world);
 
 bye,
 
 -christian-
 
 On Tue, 23 Feb 2010 21:22:00 -0800 (PST)
 
 Richtermeister nex...@gmail.com wrote:
 Hey Christian,
 
 yeah, I've had some trouble with that as well, but I think I found a
 good solution.
 First, I continue to use the regular event system to send log events,
 but I send events of type blah.log instead of application.log.
 Now, to catch those you have to implement a custom logger like so:
 
 class BlahLogger extends sfFileLogger
 {
   public function initialize(sfEventDispatcher $dispatcher, $options =
 array())
   {
 parent::initialize($dispatcher, $options);
 $dispatcher - disconnect('application.log', array($this,
 'listenToLogEvent'));
 $dispatcher - connect('blah.log', array($this,
 'listenToLogEvent'));
   }
 }
 
 You can then instantiate this logger anywhere (either by adding it to
 your factories.yml file, or instantiating it directly.)
 
 Hope this helps.
 
 Daniel
 
 On Feb 23, 9:14 am, Christian Hammers c...@lathspell.de wrote:
 Hello
 
 Is it possible to define a custom sfFileLogger() in factories.yml that 
 works
 completely independend from the standard frontend.log? It should be 
 accessed
 like e.g. sfContext::getLogger(myAppLog)-info(remember that);
 Just that getLogger() does not take an argument and I'm probably trying 
 it
 the completely wrong way again :)
 
 bye,
 
 -christian-
 
 
 -- 
 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: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Massimiliano Arione
view.yml is deprecated in favors of helpers used directly in the
templates or methods called from actions.
You can use a conditional helper that checks for sf_debug config
variable (that's even better than rely on environments)

cheers
Massimiliano

On 26 Feb, 00:43, Bruno Reis bruno.p.r...@gmail.com wrote:
 Hi all,

 We are working here to deploy a new site done with symfony. We still working
 with 1.2, but plan to upgrade soon.
 One thing that is being hard to do here is to config different javascripts
 for production ( to use a minified one ).

 Does 1.4 or any plugin allow this to be done in a clean and simple way ?

 I´m using a workaroud here, setting up the js array in app.yml and then
 using this on view.yml, but it´s pretty ugly. And is quite limited either
 since app.yml cannot be extended on modules.

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

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


Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
Oh, if the logging does not work because classes go lost, I'd rather want the 
programm to terminate :)

But thanks anyway, the event handling does not sound uninteresting, maybe I can
use it for something else somewhen.

bye,

-christian-


On Fri, 26 Feb 2010 13:42:08 +0100
Daniel Lohse annismcken...@googlemail.com wrote:

 It's longer perhaps but more elegant? You betcha! It doesn't create a new 
 dependency in your code because your logger could also *not* be there and the 
 code would still work.
 
 Cheers, Daniel
 
 On 26.02.2010, at 12:57, Christian Hammers wrote:
 
  Hello
  
  So instead of $logger-info() I should write something like this?
  
  $this-getEventDispatcher()-notify(new sfEvent($this, 'blah.log', 
  array('loglevel'='info', 'msg'='hello world'));
  
  Well, that would not exactly be more elegant than: 
  
  $logger = BlahLogger::getInstance()-info(hello world);
  
  bye,
  
  -christian-
  
  
  On Thu, 25 Feb 2010 10:21:00 -0800 (PST)
  Richtermeister nex...@gmail.com wrote:
  
  Hey Chris,
  
  you don't need to interact with this logger directly. It just sits
  there and listens for your custom logging events.
  The dispatcher is what you need to worry about, since that's used to
  dispatch the events in the first place. You'll find that the
  dispatcher is more available throughout the application than the
  logger is, so stick with events to trigger logging.
  
  Daniel
  
  
  On Feb 25, 9:21 am, Christian Hammers c...@lathspell.de wrote:
  Hello
  
  But how do I get an instance of this class?
  
  Or maybe we have a misunderstanding: I do not want 
  $this-getLogger()-info()
  to log into the default logfile as well as into my custom logfile. I want
  separate logfile just for special notes which should also not appear in
  the regular log files.
  
  bye,
  
  -christian-
  
  On Wed, 24 Feb 2010 09:25:45 -0800 (PST)
  
  Richtermeister nex...@gmail.com wrote:
  Hey Christian,
  
  it's simpler than that.
  Look in your factories.yml at the bottom where the loggers are being
  set up.
  The main logger is an aggregate logger, and you can add your logger to
  this like so:
  
  (under loggers)
  my_logger:
class: BlahLogger
param:
  level: whateverlevel
  file:   path_to_file
  
  That starts this logger automatically, and since it only listens to
  your specialized events, it shouldn't get into the way..
  
  Daniel
  
  On Feb 24, 4:59 am, Christian Hammers c...@lathspell.de wrote:
  Hello
  
  Thanks for this hint!
  
  I could not figure out how to use the factory.yml without interfering
  with the standard logger as you apparently can't create arbitrary 
  objects with it.
  
  But after adding the following function:
class BlahLogger {
  public static function getInstance() {
  return new NcLogger(
  sfContext::getInstance()-getEventDispatcher(),
  array('level'='debug', 'file'= 
  sfConfig::get('sf_log_dir').'/nc.log'));
  }
  ... your initialize() ...
}
  
  I can now use it like this:
  $logger = BlahLogger::getInstance();
  $logger-info(hello world);
  
  bye,
  
  -christian-
  
  On Tue, 23 Feb 2010 21:22:00 -0800 (PST)
  
  Richtermeister nex...@gmail.com wrote:
  Hey Christian,
  
  yeah, I've had some trouble with that as well, but I think I found a
  good solution.
  First, I continue to use the regular event system to send log events,
  but I send events of type blah.log instead of application.log.
  Now, to catch those you have to implement a custom logger like so:
  
  class BlahLogger extends sfFileLogger
  {
public function initialize(sfEventDispatcher $dispatcher, $options =
  array())
{
  parent::initialize($dispatcher, $options);
  $dispatcher - disconnect('application.log', array($this,
  'listenToLogEvent'));
  $dispatcher - connect('blah.log', array($this,
  'listenToLogEvent'));
}
  }
  
  You can then instantiate this logger anywhere (either by adding it to
  your factories.yml file, or instantiating it directly.)
  
  Hope this helps.
  
  Daniel
  
  On Feb 23, 9:14 am, Christian Hammers c...@lathspell.de wrote:
  Hello
  
  Is it possible to define a custom sfFileLogger() in factories.yml 
  that works
  completely independend from the standard frontend.log? It should be 
  accessed
  like e.g. sfContext::getLogger(myAppLog)-info(remember that);
  Just that getLogger() does not take an argument and I'm probably 
  trying it
  the completely wrong way again :)
  
  bye,
  
  -christian-
  
  
  -- 
  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
  

[symfony-users] Re: handle processForm()

2010-02-26 Thread verox
Anybody?

-- 
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] database logging

2010-02-26 Thread Ámon Tamás
Hello,

I like to log every user activity to log database table. Is there any
solution for it? Or how can I make it?

Thanks

-- 
Ámon Tamás

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

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


Re: [symfony-users] Re: sfAction Different In 1.4?

2010-02-26 Thread Земсков Юрий
He is extending sfAction, no sfActionS - so this is (was?) correct.

Âû ïèñàëè 25 ??? 2010 ?., 23:08:36:

 Function name should be like executeIndex, but not just execute.

 On Feb 25, 7:07 pm, Darren884 darren...@gmail.com wrote:
 I get this error:
 Fatal error: Declaration of homeAction::execute() must be compatible
 with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/
 symfony/apps/frontend/modules/pages/actions/homeAction.class.php  on
 line 11

 When I use this code:
 ?php

 /**
  * home action.
  *
  * @packageBlack Hawk Tobacco
  * @subpackage pages
  * @author Darren Labey
  * @versionSVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
 Kris.Wallsmith $
  */
 class homeAction extends sfAction
 {
   public function execute(sfWebRequest $request)
   {
   }

 }

 My action is named homeAction.class.php

 Am I forgetting something in 1.4? Or has this changed or somethign?
 Does anyone know?

 Thanks,
 Darren



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

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

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


Re: [symfony-users] Re: Filtering a list from the action

2010-02-26 Thread Javier Garcia

I finally get it works with this:

$this-filter = new 
BirthdayFormFilter(array('name'=array('text'='Peter')));


Javi


On 02/16/2010 05:35 PM, Javier Garcia wrote:
I give you more code: I have this code below in the index template. 
The filter form (without Peter as default value, of course..) and 
Peter are showed.



?php use_helper('Form'); ?.

?php echo form_tag('birthday/filtrar') ?

?php echo $filter; ?

div?php echo submit_tag('Filter') ?/div
/form

?php echo $filter-getDefault('name'); ?



And this is the action:


class birthdayActions extends sfActions {

public function executeIndex(sfWebRequest $request) {

$this-filter = new BirthdayFormFilter();
$this-filter-setDefault('name', 'Peter');

}


Javi


On 02/15/2010 07:28 PM, Florian wrote:

Hello,

To my mind, you should use this method:

{{{

$this-filter-setDefault('name', 'Peter');

}}}

It's more correct, because semantically, you want set a default value
to your form, not to your model object!

But if you want to set use the contructor of the sfFormFilter
BaseForm  sfFormSymfony, see it's signature:

   public function __construct($defaults = array(), $options = array(),
$CSRFSecret = null);

So you can pass an *array* of default values as first argument.

It's different from your Birthday form, which inherits from
sfFormDoctrine, see it's signature:

   public function __construct($object = null, $options = array(),
$CSRFSecret = null)

here, the first argument has to be null OR a Doctrine ActiveRecord /
Object.

Hope it helps!

/Florian

On 15 fév, 16:49, NOOVEO - Christophe Brunc.b...@nooveo.fr  wrote:

I am working on the 'list' view of a module.
The filtered list is displayed via a call to the executeFilter() 
method, as usual.


Now, I create a route and the appropriate method myModuleActions :

public function executeUseMyFilter(sfWebRequest $request) {
 $id = $this-getRoute()-getObject()-getId();

 // force the filter value to myotherobj_id = #the id in the 
route //

 // ?? //

  return $this-executeFilter($request);

}

But I can't find the way to modify the filters and to force the 
exceuteFilter() method to display only the list of objects having 
myotherobj_id = $id.




De : symfony-users@googlegroups.com 
[mailto:symfony-us...@googlegroups.com] De la part de Javier Garcia

Envoyé : lundi 15 février 2010 14:23
À : symfony-users@googlegroups.com
Objet : [symfony-users] Trying to give a default value to a filter form

Hi,

im trying to give a default value to a field of a filter.

I have no problems giving a default value to a form this way:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayForm($m);

But when i try this:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayFormFilter($m);

this error appears:

Warning: array_merge() 
[function.array-mergehttp://rs.localhost/frontend_dev.php/function.array-merge  
]: Argument #2 is not an array in 
/opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on 
line 1023


Any idea?

Javi

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

To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/symfony-users?hl=en.




--
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: sfAction Different In 1.4?

2010-02-26 Thread Tom Ptacnik
You probably want to extends sfActions (not sfAction)


On 25 ún, 19:07, Darren884 darren...@gmail.com wrote:
 I get this error:
 Fatal error: Declaration of homeAction::execute() must be compatible
 with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/
 symfony/apps/frontend/modules/pages/actions/homeAction.class.php  on
 line 11

 When I use this code:
 ?php

 /**
  * home action.
  *
  * @package    Black Hawk Tobacco
  * @subpackage pages
  * @author     Darren Labey
  * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
 Kris.Wallsmith $
  */
 class homeAction extends sfAction
 {
   public function execute(sfWebRequest $request)
   {
   }

 }

 My action is named homeAction.class.php

 Am I forgetting something in 1.4? Or has this changed or somethign?
 Does anyone know?

 Thanks,
 Darren

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

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


[symfony-users] Re: handle processForm()

2010-02-26 Thread Tom Ptacnik
Are you trying to do this while creating a new object, or editing an
object? or both?

In which method do you have this code?


On 25 ún, 11:22, verox pawel.rz...@gmail.com wrote:
 Hello,
 Got some problem,
 Have name and letter in table, both string.
 I've generate admin page, now I'm trying to set letter (first letter
 of name)
 Tried this:
  $form-getObject()-setLetter(strtoupper(substr($form-getObject()-getName(),
  0, 1)));

 should work for me, but getName() returns NULL, inspite of saving good
 in database.
 Is it some kind of protected data or something? How to overwrite this?

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

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


[symfony-users] Re: symfony1.4 autoload : how does it work

2010-02-26 Thread Tom Ptacnik
Try to read this:
- http://php.net/manual/en/language.oop5.autoload.php
- 
http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files
(Extending the Autoloading Feature)

and after that it should be more clear, hope this help (hope I'm
right :)


On 25 ún, 15:16, samuel zoulil...@gmail.com wrote:
 hello,
 I don't understand how work the symfony classes autoload, are every classes
 listed in a file ?

-- 
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: need help on sfGuardPlugin

2010-02-26 Thread Tom Ptacnik
Do you want to use this plugin in one application for backend and
frontend?, with different tables, or the same tables for both?



On 26 ún, 06:27, Javier Garcia tirengar...@gmail.com wrote:
 On 02/25/2010 11:45 AM, ram wrote:

  Hi Fabien,

  I'm Ram from India. I'm using sfGuardPlugin in one of my project. Can
  you please tell me how to use the same plugin for user registration at
  front end. Is it possible to use for register the user? Please help
  me.

  Thanks in advance,

 Tryhttp://www.symfony-project.org/plugins/sfDoctrineGuardExtraPlugin

 Javi

-- 
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: frontend_dev.php dissapears

2010-02-26 Thread Tom Ptacnik
disappearing and appearing of the frontend_dev.php? must be magic ;)

No, serriously where it dissapears? is it not on the disk?


On 26 ún, 09:34, Parijat Kalia kaliapari...@gmail.com wrote:
 Hey guys,

 while traversing to one of the pages on my website, the frontend_dev.php
 seems to disappear. It does exist when I traverse other pages, but the
 moment I traverse to this specific page, it disappears, and from thereon, if
 I traverse to any other page, it will not come back.

 Off course, while I do this, I am on local host and not anything else.

 Anyone with any leads on this?

 Parijat

-- 
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: Custom logger via factory.yml?

2010-02-26 Thread Richtermeister
What Daniel said..

Plus, for convenience you can always create a local log method on
whatever object you're logging from that wraps the calls to the event-
dispatcher. Then you have elegant and short.

Daniel


On Feb 26, 5:34 am, Christian Hammers c...@lathspell.de wrote:
 Oh, if the logging does not work because classes go lost, I'd rather want the
 programm to terminate :)

 But thanks anyway, the event handling does not sound uninteresting, maybe I 
 can
 use it for something else somewhen.

 bye,

 -christian-

 On Fri, 26 Feb 2010 13:42:08 +0100

 Daniel Lohse annismcken...@googlemail.com wrote:
  It's longer perhaps but more elegant? You betcha! It doesn't create a new 
  dependency in your code because your logger could also *not* be there and 
  the code would still work.

  Cheers, Daniel

  On 26.02.2010, at 12:57, Christian Hammers wrote:

   Hello

   So instead of $logger-info() I should write something like this?

   $this-getEventDispatcher()-notify(new sfEvent($this, 'blah.log', 
   array('loglevel'='info', 'msg'='hello world'));

   Well, that would not exactly be more elegant than:

   $logger = BlahLogger::getInstance()-info(hello world);

   bye,

   -christian-

   On Thu, 25 Feb 2010 10:21:00 -0800 (PST)
   Richtermeister nex...@gmail.com wrote:

   Hey Chris,

   you don't need to interact with this logger directly. It just sits
   there and listens for your custom logging events.
   The dispatcher is what you need to worry about, since that's used to
   dispatch the events in the first place. You'll find that the
   dispatcher is more available throughout the application than the
   logger is, so stick with events to trigger logging.

   Daniel

   On Feb 25, 9:21 am, Christian Hammers c...@lathspell.de wrote:
   Hello

   But how do I get an instance of this class?

   Or maybe we have a misunderstanding: I do not want 
   $this-getLogger()-info()
   to log into the default logfile as well as into my custom logfile. I 
   want
   separate logfile just for special notes which should also not appear in
   the regular log files.

   bye,

   -christian-

   On Wed, 24 Feb 2010 09:25:45 -0800 (PST)

   Richtermeister nex...@gmail.com wrote:
   Hey Christian,

   it's simpler than that.
   Look in your factories.yml at the bottom where the loggers are being
   set up.
   The main logger is an aggregate logger, and you can add your logger to
   this like so:

   (under loggers)
   my_logger:
     class: BlahLogger
     param:
       level: whateverlevel
       file:   path_to_file

   That starts this logger automatically, and since it only listens to
   your specialized events, it shouldn't get into the way..

   Daniel

   On Feb 24, 4:59 am, Christian Hammers c...@lathspell.de wrote:
   Hello

   Thanks for this hint!

   I could not figure out how to use the factory.yml without interfering
   with the standard logger as you apparently can't create arbitrary 
   objects with it.

   But after adding the following function:
     class BlahLogger {
       public static function getInstance() {
           return new NcLogger(
               sfContext::getInstance()-getEventDispatcher(),
               array('level'='debug', 'file'= 
   sfConfig::get('sf_log_dir').'/nc.log'));
       }
           ... your initialize() ...
     }

   I can now use it like this:
           $logger = BlahLogger::getInstance();
           $logger-info(hello world);

   bye,

   -christian-

   On Tue, 23 Feb 2010 21:22:00 -0800 (PST)

   Richtermeister nex...@gmail.com wrote:
   Hey Christian,

   yeah, I've had some trouble with that as well, but I think I found a
   good solution.
   First, I continue to use the regular event system to send log events,
   but I send events of type blah.log instead of application.log.
   Now, to catch those you have to implement a custom logger like so:

   class BlahLogger extends sfFileLogger
   {
     public function initialize(sfEventDispatcher $dispatcher, $options 
   =
   array())
     {
       parent::initialize($dispatcher, $options);
       $dispatcher - disconnect('application.log', array($this,
   'listenToLogEvent'));
       $dispatcher - connect('blah.log', array($this,
   'listenToLogEvent'));
     }
   }

   You can then instantiate this logger anywhere (either by adding it to
   your factories.yml file, or instantiating it directly.)

   Hope this helps.

   Daniel

   On Feb 23, 9:14 am, Christian Hammers c...@lathspell.de wrote:
   Hello

   Is it possible to define a custom sfFileLogger() in factories.yml 
   that works
   completely independend from the standard frontend.log? It should be 
   accessed
   like e.g. sfContext::getLogger(myAppLog)-info(remember that);
   Just that getLogger() does not take an argument and I'm probably 
   trying it
   the completely wrong way again :)

   bye,

   -christian-

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

   You received this 

Re: [symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Bruno Reis
Thanks a Lot Massimiliano,

Can you send me a link to where I can read more informations about it?

2010/2/26 Massimiliano Arione garak...@gmail.com

 view.yml is deprecated in favors of helpers used directly in the
 templates or methods called from actions.
 You can use a conditional helper that checks for sf_debug config
 variable (that's even better than rely on environments)

 cheers
 Massimiliano

 On 26 Feb, 00:43, Bruno Reis bruno.p.r...@gmail.com wrote:
  Hi all,
 
  We are working here to deploy a new site done with symfony. We still
 working
  with 1.2, but plan to upgrade soon.
  One thing that is being hard to do here is to config different
 javascripts
  for production ( to use a minified one ).
 
  Does 1.4 or any plugin allow this to be done in a clean and simple way ?
 
  I´m using a workaroud here, setting up the js array in app.yml and then
  using this on view.yml, but it´s pretty ugly. And is quite limited either
  since app.yml cannot be extended on modules.

 --
 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] Re: Doctrine Inheritance and Forms

2010-02-26 Thread Tom Ptacnik
I'm not sure, but I think you'll have to make a list of inherited/
child classes by yourself.


On 24 ún, 11:11, m.s. marco.schierh...@googlemail.com wrote:
 I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 +
 Propel a lot before).
 I thought to give Doctrine a try, because of the fast and huge
 Development process in the past.
 Thanks to jwage ;-)

 Im using Table Inheritance. This is a small portion of my schema.yml:

 Articles:
   columns:
     id:
       type: integer(4)
       primary: true
       notnull: true
       autoincrement: true
     marken_id:
       type: integer(4)
       notnull: false
     user_id:
       type: integer(4)
       notnull: false
     address_id:
       type: integer(4)
       notnull: false
 ...
 Vehicles:
   inheritance:
     extends: Articles
     type: concrete

 Rennfahrzeuge:
   columns:
     stvo:
       type: boolean
       notnull: false
       default: false
   inheritance:
     extends: Vehicles
     type: concrete
 Tourenwagen:
   inheritance:
     extends: Rennfahrzeuge
     type: column_aggregation
     keyField: type
     keyValue: 1
 ...
 Sonstige:
   inheritance:
     extends: Rennfahrzeuge
     type: column_aggregation
     keyField: type
     keyValue: 6

 Karts:
   inheritance:
     extends: Vehicles
     type: concrete
 TonyKart:
   inheritance:
     extends: Karts
     type: column_aggregation
     keyField: type
     keyValue: 1
 ...
 Sonstige:
   inheritance:
     extends: Karts
     type: column_aggregation
     keyField: type
     keyValue: 9

 Im now thinking of using a simple way to create a the right form.
 The user should have to select fields at the top of the form (like you
 can see here  :http://msm-esv.dyndns.org/frontend_dev.php/fahrzeuge/insert
 )

 You should choose the parent class like Rennfahrzeuge or Karts and
 so on.
 After that the user should choose the child class like Tourenwagen or
 Sonstige.
 Then the page should reload and display the right form.

 Is there any function in Doctrine to get the inheritated/child classes
 for displaying them in the second select field?
 (e.g. Rennfahrzeuge has Tourenwagen,..,..., Sonstige and Karts has
 TonyKart,...,...,Sonstige)

 After that i could create dynamically the assigned form class like:

 $chooseMode      = $request-getParameter('chooseMode').'Form';
 $modeFormClass = new $chooseMode();

 or i have thought about just setting the right model in the parent
 form class.

 What are your thoughts? I would really appreciate any suggestions and
 help :-)

 Thanks a lot,
 Marco

-- 
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: Error on Exception Handling using Event Notifications

2010-02-26 Thread Tom Ptacnik
Try to show us the exception..


On 24 ún, 17:59, Bruno Reis bruno.p.r...@gmail.com wrote:
 I figured out it has nothing to do with the event handler.
 I´s happening on every page.

 On my error_404_action, I redirect to the homepage and it shows the
 uncaught exception message.
 Anybody knows why?

 2010/2/24 Bruno Reis bruno.p.r...@gmail.com



  Hi,

  I´m connecting the application.throw_exception event to my exception
  handler class.

  public function configure() {
          $this-dispatcher-connect(
              'application.throw_exception',
              array('MyExceptionHandler', 'listenToApplicationException')
          );
      }

  On the end of the listener method I return true. When symfony handles a 404
  it redirects succesfully, but show an exception at the end of the page shown
  after the redirect (sfStopException). This exception comes from the end of
  the sfAction::forward method.

  What can I do to prevent this?

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

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


Re: [symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-26 Thread Bruno Reis
I found some threads saying it´s related to a bug on a windows component.
Since we only use windows on dev environments, I´ve tested on other envs and
it worked. So it´s ok now. Thanks.

2010/2/26 Tom Ptacnik to...@tomor.cz

 Try to show us the exception..


 On 24 ún, 17:59, Bruno Reis bruno.p.r...@gmail.com wrote:
  I figured out it has nothing to do with the event handler.
  I´s happening on every page.
 
  On my error_404_action, I redirect to the homepage and it shows the
  uncaught exception message.
  Anybody knows why?
 
  2010/2/24 Bruno Reis bruno.p.r...@gmail.com
 
 
 
   Hi,
 
   I´m connecting the application.throw_exception event to my exception
   handler class.
 
   public function configure() {
   $this-dispatcher-connect(
   'application.throw_exception',
   array('MyExceptionHandler', 'listenToApplicationException')
   );
   }
 
   On the end of the listener method I return true. When symfony handles a
 404
   it redirects succesfully, but show an exception at the end of the page
 shown
   after the redirect (sfStopException). This exception comes from the end
 of
   the sfAction::forward method.
 
   What can I do to prevent this?

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.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] Re: How does the local field for relation work ?

2010-02-26 Thread Tom Ptacnik
I don't know how do you understand, but this schema isn't correct at
all.

If you have some relation with local .( local: dinner_id ), you have
to have a dinner_id in this table where the relation is specified

 Dinner:
  columns:
dinner_id
date: { type: timestamp, notnull: true }
nb_presents: { type: integer, notnull: true }
  relations:
Marks:
  local:dinner_id
  foreign:  criteria_id

But you want to create a many-to-many relation.. read readme how to do
this
http://www.doctrine-project.org/documentation/manual/1_2/hu/yaml-schema-files

Example from the readme:

User:
  columns:
id:
  type: integer(4)
  autoincrement: true
  primary: true
username:
  type: string(255)
password:
  type: string(255)
  attributes:
export: all
validate: true

Group:
  tableName: group_table
  columns:
id:
  type: integer(4)
  autoincrement: true
  primary: true
name:
  type: string(255)
  relations:
Users:
  foreignAlias: Groups
  class: User
  refClass: GroupUser

GroupUser:
  columns:
group_id:
  type: integer(4)
  primary: true
user_id:
  type: integer(4)
  primary: true
  relations:
Group:
  foreignAlias: GroupUsers
User:
  foreignAlias: GroupUsers


On 25 ún, 06:32, SymfonyNewbie shore.cl...@gmail.com wrote:
     Dinner:
       columns:
         date: { type: timestamp, notnull: true }
         nb_presents: { type: integer, notnull: true }
       relations:
         Marks:
           class:    Criteria
           local:    dinner_id
           foreign:  criteria_id
           refClass: Mark
           type: many

     Criteria:
       columns:
         name: { type: string(50), notnull: true }
      relation:
        Marks:
          class:    Dinner
          local:    criteria_id
          foreign:  dinner_id
          refClass: Mark
          type: many

     Mark:
       columns:
         criteria_id: { type: integer, primary: true }
         dinner_id: { type: integer, primary: true }
         value: { type: integer, notnull: true }
       relations:
         Dinner:
           local:    dinner_id
           foreign:  id
         Criteria:
           local:    criteria_id
           foreign:  id

 My question is why can `local` refer to a column which is not in the
 class itself.

 Take the `Dinner` as example,its `local` is `dinner_id` but the column
 is not within `Dinner`,but `Mark`.Or maybe I'm understanding the
 `local` wrongly ?

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

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


Re: [symfony-users] sfAction Different In 1.4?

2010-02-26 Thread Gábor Fási
This is the header of sfComponent's execute():

abstract function execute($request);

So drop the sfWebRequest, and it'll be fine. And by the way: it did
not change, it is the exact same in 1.2.

On Thu, Feb 25, 2010 at 19:07, Darren884 darren...@gmail.com wrote:
 I get this error:
 Fatal error: Declaration of homeAction::execute() must be compatible
 with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/
 symfony/apps/frontend/modules/pages/actions/homeAction.class.php  on
 line 11

 When I use this code:
 ?php

 /**
  * home action.
  *
  * @package    Black Hawk Tobacco
  * @subpackage pages
  * @author     Darren Labey
  * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
 Kris.Wallsmith $
  */
 class homeAction extends sfAction
 {
  public function execute(sfWebRequest $request)
  {
  }
 }

 My action is named homeAction.class.php

 Am I forgetting something in 1.4? Or has this changed or somethign?
 Does anyone know?

 Thanks,
 Darren

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


Re: [symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Gábor Fási
Check the referer, you probably have an incorrect url echoed there.

On Fri, Feb 26, 2010 at 09:34, Parijat Kalia kaliapari...@gmail.com wrote:
 Hey guys,

 while traversing to one of the pages on my website, the frontend_dev.php
 seems to disappear. It does exist when I traverse other pages, but the
 moment I traverse to this specific page, it disappears, and from thereon, if
 I traverse to any other page, it will not come back.

 Off course, while I do this, I am on local host and not anything else.

 Anyone with any leads on this?

 Parijat

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


Re: [symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Alexandru-Emil Lupu
maybe in the url ...
check the no_script_name and see if is set true / on / 1

On Fri, Feb 26, 2010 at 8:42 PM, Gábor Fási maerl...@gmail.com wrote:

 Check the referer, you probably have an incorrect url echoed there.

 On Fri, Feb 26, 2010 at 09:34, Parijat Kalia kaliapari...@gmail.com
 wrote:
  Hey guys,
 
  while traversing to one of the pages on my website, the frontend_dev.php
  seems to disappear. It does exist when I traverse other pages, but the
  moment I traverse to this specific page, it disappears, and from thereon,
 if
  I traverse to any other page, it will not come back.
 
  Off course, while I do this, I am on local host and not anything else.
 
  Anyone with any leads on this?
 
  Parijat
 
  --
  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




-- 
Have a nice day!

Alecs
Certified ScrumMaster

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

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

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


Re: [symfony-users] Lime 2 Suggestion

2010-02-26 Thread Gareth McCumskey
I'm not sure if Lime 2 develop[ment will continue. Fabien just
announced on Twitter that Symfony 2 will no longer use Lime but PHP
Unit instead.

On Fri, Feb 26, 2010 at 4:35 AM, Brandon Turner btur...@bltweb.net wrote:
 Bernhard (or anyone else),

 I have been playing around with Lime 2 Alpha and loving it, especially the
 expected exception stuff.  May I make one suggestion (so far).  Would it be
 possible to pass a custom message to the LimeTest-verify() method?  This
 would make it behave more like other test methods.

 Just a thought.  Lime 2 is looking awesome!

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

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




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

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

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


Re: [symfony-users] Re: How does the local field for relation work ?

2010-02-26 Thread Mr Shore
It's quoted from here(an accepted answer):

http://stackoverflow.com/questions/1603252/many-to-many-relation-with-attributes-in-refclass/1610399#1610399

2010/2/27 Tom Ptacnik to...@tomor.cz

 I don't know how do you understand, but this schema isn't correct at
 all.



 If you have some relation with local .( local: dinner_id ), you have
 to have a dinner_id in this table where the relation is specified
 I thought alike,but later on I saw there are many examples that don't
 follow this,like this one.
  Dinner:
  columns:
dinner_id
 date: { type: timestamp, notnull: true }
nb_presents: { type: integer, notnull: true }
  relations:
Marks:
   local:dinner_id
  foreign:  criteria_id

 But you want to create a many-to-many relation.. read readme how to do
 this

 http://www.doctrine-project.org/documentation/manual/1_2/hu/yaml-schema-files

 Example from the readme:

 User:
  columns:
id:
  type: integer(4)
  autoincrement: true
  primary: true
username:
  type: string(255)
password:
  type: string(255)
  attributes:
export: all
validate: true

 Group:
  tableName: group_table
  columns:
id:
  type: integer(4)
  autoincrement: true
  primary: true
name:
  type: string(255)
  relations:
Users:
  foreignAlias: Groups
  class: User
  refClass: GroupUser

 GroupUser:
  columns:
group_id:
  type: integer(4)
  primary: true
user_id:
  type: integer(4)
  primary: true
  relations:
Group:
  foreignAlias: GroupUsers
User:
  foreignAlias: GroupUsers


 On 25 ún, 06:32, SymfonyNewbie shore.cl...@gmail.com wrote:
  Dinner:
columns:
  date: { type: timestamp, notnull: true }
  nb_presents: { type: integer, notnull: true }
relations:
  Marks:
class:Criteria
local:dinner_id
foreign:  criteria_id
refClass: Mark
type: many
 
  Criteria:
columns:
  name: { type: string(50), notnull: true }
   relation:
 Marks:
   class:Dinner
   local:criteria_id
   foreign:  dinner_id
   refClass: Mark
   type: many
 
  Mark:
columns:
  criteria_id: { type: integer, primary: true }
  dinner_id: { type: integer, primary: true }
  value: { type: integer, notnull: true }
relations:
  Dinner:
local:dinner_id
foreign:  id
  Criteria:
local:criteria_id
foreign:  id
 
  My question is why can `local` refer to a column which is not in the
  class itself.
 
  Take the `Dinner` as example,its `local` is `dinner_id` but the column
  is not within `Dinner`,but `Mark`.Or maybe I'm understanding the
  `local` wrongly ?

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




-- 
http://51hired.com/

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

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


RE: [symfony-users] How to use framset with symfony?

2010-02-26 Thread Sameer Bhavsar
Hi,
To display the template in one frame I have following line of code:
frame src=?php echo $sf_content ?/

But while accessing the page following error occurs:
Action StackWorkorder/h1NewStackworkorder does not exist.

My layout.php code is given below:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
  head
?php include_http_metas() ?
?php include_metas() ?
?php include_title() ?
link rel=shortcut icon href=/favicon.ico /
?php include_stylesheets() ?
?php include_javascripts() ?
  /head
frameset cols=20%,80%
frame src=files\leftnav.html/
frame src=?php echo $sf_content ?/
/frameset
/html

Can anybody tell me what I am doing wrong here ?

Thanks,
Sameer B.

-Original Message-
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Gábor Fási
Sent: Friday, February 26, 2010 12:09 PM
To: symfony-users@googlegroups.com
Subject: Re: [symfony-users] How to use framset with symfony?

There is no reason why it should not work - it should. Double-check
that you echoed the correct urls in your layout.

On Thu, Feb 25, 2010 at 12:02, SameerB sameerbhav...@gmail.com wrote:
 Hi All,
         I am creating an application containing 5 pages and I want to
 show some links at the left side for navigation. I tried adding
 framset in layout.php but it gives Action does not exits error
 message. Can anyone tell me or give me some example how to use
 frameset in symfony. Or if it is not supported/possible, what can use
 to display links at the left side which is common to all pages and
 hence should be included in layout.

 Thanks in advance,
 SameerB

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


Re: [symfony-users] Re: Possible SQL injection

2010-02-26 Thread Peter Peltonen
On Thu, Feb 25, 2010 at 12:50 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 Hi Fabien,

 I am using Symfony 1.1 in which we are to create a session timeout of 4
 hours but it is not working by changing in factories.yml.

 Regards

 Deepak Bhatia

 On Thu, Feb 25, 2010 at 3:58 PM, Fabien Potencier
 fabien.potenc...@symfony-project.com wrote:

 This has been fixed three hours ago, and available in the latest symfony
 release. More information here:


 http://www.symfony-project.org/blog/2010/02/25/security-release-1-3-3-and-1-4-3

And I just got a symfony 1.2 application to be maintained.

I'm not an experienced symfony admin yet, so what should I do to secure the app?

Best,
Peter

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

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


[symfony-users] Symfony developer role available at SANParks, South Africa

2010-02-26 Thread Midiane
SANParks needs experienced Symfony PHP developer, based in
Johannesburg or Pretoria, available to start immediately on mobile
project. Email mi...@sanparks.org if you qualify.

Thanks

Midiane.

-- 
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] Difficulty with setDefault() for sfWidgetFormDoctrineChoice()

2010-02-26 Thread Susan
Hello,

I have an sfWidgetDoctrineChoice() form that I am trying to set the
default value for. The value I have is the id (primary key) of the row
I want to set to the default. It's being passed in as an option to the
form.

Here is my code:

 public function configure()
  {

   

 $preselect_review_id = $this-
getOption('preselect_review_id');


 $this-widgetSchema['review_id'] = new
sfWidgetFormDoctrineChoice(array('model' = 'ReviewsSimpleView',
'add_empty' = false, 'order_by'= array('review_name','asc')));

if ($preselect_review_id != NULL){
$this-setDefault('review_id', $preselect_review_id);
}
...

   }

I've been able to see that $preselect_review_id is correctly defined
as an integer and has the right value. I've tried changing the form to
multiple = false and also encapsulating $preselect_review_id in an
array, but neither seemed to work well.

I would welcome any insight,

Thank you,

Susan

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

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


Re: [symfony-users] Re: Possible SQL injection

2010-02-26 Thread Daniel Lohse
Just update to the latest symfony version, which is 1.2.12 in your case, and 
clear your cache. That's all. :)

Daniel

On 26.02.2010, at 15:37, Peter Peltonen wrote:

 On Thu, Feb 25, 2010 at 12:50 PM, DEEPAK BHATIA toreachdee...@gmail.com 
 wrote:
 Hi Fabien,
 
 I am using Symfony 1.1 in which we are to create a session timeout of 4
 hours but it is not working by changing in factories.yml.
 
 Regards
 
 Deepak Bhatia
 
 On Thu, Feb 25, 2010 at 3:58 PM, Fabien Potencier
 fabien.potenc...@symfony-project.com wrote:
 
 This has been fixed three hours ago, and available in the latest symfony
 release. More information here:
 
 
 http://www.symfony-project.org/blog/2010/02/25/security-release-1-3-3-and-1-4-3
 
 And I just got a symfony 1.2 application to be maintained.
 
 I'm not an experienced symfony admin yet, so what should I do to secure the 
 app?
 
 Best,
 Peter
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

-- 
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] Only one model per module for doctrine-generate-crud?

2010-02-26 Thread Roland Cruse
Hi

symfony doctrine-generate-crud seems to build a module for each model
(database table) with actions edit, delete, create etc.Using this task
you can not add another model to the same module. The task will over
write the edit, delete etc. actions. I see no options in the task for
prefixing action names, which stop the crud functions from being
overwritten.  Or would that mess things up for a routing collection
come form submission time?

Is there no way around this, using the crud generator?

Or does conventional symfony wisdom say each model must have its own module?

Any tips or hints would be greatly appreciated.

signed: confused.

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