[symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
LinkedIn
Welington Veiga requested to add you as a connection on LinkedIn:
--

Sammi,

I'd like to add you to my professional network on LinkedIn.

- Welington

Accept invitation from Welington Veiga
http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVc3sVczwVcPp9bRZvp65pslZDbPoQd3gUdP0Qcz4LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Welington Veiga
http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/0PnPAMdPAOe3APdAALqnpPbOYWrSlI/svi/


 
--
(c) 2010, LinkedIn Corporation

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email 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] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
Sorry.

2010/4/21 Welington Veiga welington.ve...@gmail.com

  LinkedIn

 Welington Veiga requested to add you as a connection on LinkedIn:

 Sammi,

 I'd like to add you to my professional network on LinkedIn.

 - Welington

   
 Accepthttp://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVc3sVczwVcPp9bRZvp65pslZDbPoQd3gUdP0Qcz4LrCBxbOYWrSlI/EML_comm_afe/
   View
 invitation from Welington 
 Veigahttp://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/0PnPAMdPAOe3APdAALqnpPbOYWrSlI/S2_svi/


  © 2010, LinkedIn Corporation

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 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




-- 
Welington da Veiga Silva
---
Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol.
( Pablo Picasso )

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email 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] Jquery and AJAX symfony 1.4

2010-04-19 Thread Welington Veiga
Well, it's very easy, use ajax like a single php file.

View:
Use a the helper ?php echo url_for('YOUR_MODULE/index'); ? to decide for
what URL to send, inside your script tag, assign to a javascript variable

Controller (action)
$this-getResponse()-setHttpHeader('Content-type','text/json');
return $this-renderText('SOMETHING VERY USEFULLY);

All the other interactions will be equal,





2010/4/19 trankh juliend1...@gmail.com

 Hello,

 I want to call a simple action without passing any argument inside a
 jquery function.
 No argument because a random function is called inside the action.

 The routing (in input and output) is this:
 plantyourtree:
  url:   /tree/plantyourtree
  param: { module: tree, action: new }

 the js file looks like this:

 $(document).ready(function()
 {

 $('#change').click(function(){

 ?
});

 });


 The action associated with is:

  public function executeNew(sfWebRequest $request)
  {

   $this-zulu_tree_sample = Doctrine::getTable('ZuluTree')-
 find(rand(1,Doctrine::getTable('ZuluTree')-count()));


$this-form = new ZuluTreeForm();

  if ($request-isXmlHttpRequest())
  {
  ?
  }


  }

 In the template newSuccess.php, there is a form and a div where we
 display information relative to zulu_tree_sample and which needs to be
 refreshed each time we push the change button.

 The template associated with is:

 div id=left_column
 ?php echo $zulu_tree_sample-getName() ?
 /div

 input type=submit id=change value=Change



 div id=right_column
 ?php include_partial('form', array('form' = $form)) ?
 /div




 I dont' know what to put instead of ??

 Thank you

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

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




-- 
Welington da Veiga Silva
---
Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol.
( Pablo Picasso )

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email 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 sfActions to solve scalability problems. It's Possible?

2010-04-07 Thread Welington Veiga
In this doc page  chapter
6http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_alternative_action_class_syntaxare
an alternative way to write action: one per file.
I think this isn't the best solution. I can add a new deep level in the
route and use the parameter to decide what method  must be invoked on three
or four sfAction classes but I will need to rewrite secure issues.

Anyone can help me?

2010/4/7 Welington Veiga welington.ve...@gmail.com

 I have  a problem with a big application what we are writing under
 symfony.
 It's our first contact with this fantastic framework, but we have a
 lot of code in a single action file. Our modules are big, with three
 crud:

 Like company has employers, groups  and customers.
 All in a application.

 I need a new deep level.


 The solution, I think, is use three sfActions class for each module.
 But maybe you have any experience with another solution, or another
 pattern for  this situatuation.

 PS: I dont know how to configure  new actions under 'app/myapp/modules/
 mymodule/actions' folder.




-- 
Welington da Veiga Silva
---
Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol.
( Pablo Picasso )

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email 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] Multiple sfActions to solve scalability problems. It's Possible?

2010-04-07 Thread Welington Veiga
I have  a problem with a big application what we are writing under
symfony.
It's our first contact with this fantastic framework, but we have a
lot of code in a single action file. Our modules are big, with three
crud:

Like company has employers, groups  and customers.
All in a application.

I need a new deep level.


The solution, I think, is use three sfActions class for each module.
But maybe you have any experience with another solution, or another
pattern for  this situatuation.

PS: I dont know how to configure  new actions under 'app/myapp/modules/
mymodule/actions' folder.

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

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


Re: [symfony-users] Re: Multiple sfActions to solve scalability problems. It's Possible?

2010-04-07 Thread Welington Veiga
This is my problem!
I need a third deep level to keep a good design.


like:

company/customer/new


but in the symfony structure company is not a application. It's
authentication, credentials, user etc are common.

I also have:
calendar/tasks/view/5

A beautifully solution maybe is:

company/
..actions/
customerActions.class.php
employeersActions.class.php
groupsActions.class.php
calendar/
...
news/
...

Thank u.




2010/4/7 Daniel Lohse annismcken...@googlemail.com

 Too many actions are often a sign of code duplication and/or shortcomings
 in separation of concerns. You want fat models and slim controllers. Your
 controller is either doing too much or you are putting actions into modules
 where they don't belong or fit.

 Care to share all your action names (just the names of the methods) in a
 particular big actions class? Also, a bit of code for each would also help.

 More than 15 actions per module are generally not advisable, you'll need to
 break things down when you're pushing that limit.


 Cheers, Daniel

 On 07.04.2010, at 14:25, Welington Veiga wrote:

 In this doc page  chapter 
 6http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_alternative_action_class_syntaxare
  an alternative way to write action: one per file.
 I think this isn't the best solution. I can add a new deep level in the
 route and use the parameter to decide what method  must be invoked on three
 or four sfAction classes but I will need to rewrite secure issues.

 Anyone can help me?

 2010/4/7 Welington Veiga welington.ve...@gmail.com

 I have  a problem with a big application what we are writing under
 symfony.
 It's our first contact with this fantastic framework, but we have a
 lot of code in a single action file. Our modules are big, with three
 crud:

 Like company has employers, groups  and customers.
 All in a application.

 I need a new deep level.


 The solution, I think, is use three sfActions class for each module.
 But maybe you have any experience with another solution, or another
 pattern for  this situatuation.

 PS: I dont know how to configure  new actions under 'app/myapp/modules/
 mymodule/actions' folder.




 --
 Welington da Veiga Silva
 ---
 Há pessoas que transformam o sol numa simples mancha amarela, mas há
 aquelas que fazem de uma simples mancha amarela o próprio sol.
 ( Pablo Picasso )

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Welington da Veiga Silva
---
Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol.
( Pablo Picasso )

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

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


Re: [symfony-users] Re: Multiple sfActions to solve scalability problems. It's Possible?

2010-04-07 Thread Welington Veiga
well...
if I use the routing:

myRoute:
  url:   company/:module/:action/*

I can use all modules in this pattern, but I want use just three [employers,
customers, group] inside company.

Its Possible? How can I configure this?


2010/4/7 Stéphane stephane.er...@gmail.com

 Hi,


 
 like:

 company/customer/new

 Is this a route or a module/action breakdown ?



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



 On Wed, Apr 7, 2010 at 4:15 PM, Welington Veiga welington.ve...@gmail.com
  wrote:

 This is my problem!
 I need a third deep level to keep a good design.


 like:

 company/customer/new


 but in the symfony structure company is not a application. It's
 authentication, credentials, user etc are common.

 I also have:
 calendar/tasks/view/5

 A beautifully solution maybe is:

 company/
 ..actions/
 customerActions.class.php
 employeersActions.class.php
 groupsActions.class.php
 calendar/
 ...
 news/
 ...

 Thank u.




 2010/4/7 Daniel Lohse annismcken...@googlemail.com

 Too many actions are often a sign of code duplication and/or shortcomings
 in separation of concerns. You want fat models and slim controllers. Your
 controller is either doing too much or you are putting actions into modules
 where they don't belong or fit.

 Care to share all your action names (just the names of the methods) in a
 particular big actions class? Also, a bit of code for each would also help.

 More than 15 actions per module are generally not advisable, you'll need
 to break things down when you're pushing that limit.


 Cheers, Daniel

 On 07.04.2010, at 14:25, Welington Veiga wrote:

 In this doc page  chapter 
 6http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_alternative_action_class_syntaxare
  an alternative way to write action: one per file.
 I think this isn't the best solution. I can add a new deep level in the
 route and use the parameter to decide what method  must be invoked on three
 or four sfAction classes but I will need to rewrite secure issues.

 Anyone can help me?

 2010/4/7 Welington Veiga welington.ve...@gmail.com

 I have  a problem with a big application what we are writing under
 symfony.
 It's our first contact with this fantastic framework, but we have a
 lot of code in a single action file. Our modules are big, with three
 crud:

 Like company has employers, groups  and customers.
 All in a application.

 I need a new deep level.


 The solution, I think, is use three sfActions class for each module.
 But maybe you have any experience with another solution, or another
 pattern for  this situatuation.

 PS: I dont know how to configure  new actions under 'app/myapp/modules/
 mymodule/actions' folder.




 --
 Welington da Veiga Silva
 ---
 Há pessoas que transformam o sol numa simples mancha amarela, mas há
 aquelas que fazem de uma simples mancha amarela o próprio sol.
 ( Pablo Picasso )

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Welington da Veiga Silva
 ---
 Há pessoas que transformam o sol numa simples mancha amarela, mas há
 aquelas que fazem de uma simples mancha amarela o próprio sol.
 ( Pablo Picasso )

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 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

Re: [symfony-users] Re: Multiple sfActions to solve scalability problems. It's Possible?

2010-04-07 Thread Welington Veiga
Thak you!
It was very usefull!


Other solution is implement a subclass of sfActions and in preExecute()
method instanciate another sfActions class, configuring it... etc

But it is reivent the wheel and loss o lot of pre-configurated issues in
symfony structure.
'routing' sounds better.




2010/4/7 Jacob Coby jc...@portallabs.com

 try something like:

 myRoute:
  url: company/:module/:action/*
   requirements: { module: employers|customers|group }

 requirements is a pcre regex.

 On Apr 7, 2010, at 10:35 AM, Welington Veiga wrote:

  well...
  if I use the routing:
 
  myRoute:
url:   company/:module/:action/*
 
  I can use all modules in this pattern, but I want use just three
 [employers, customers, group] inside company.
 
  Its Possible? How can I configure this?
 
 
  2010/4/7 Stéphane stephane.er...@gmail.com
  Hi,
 
 
  
  like:
 
  company/customer/new
 
  Is this a route or a module/action breakdown ?
 
 
 
  Before Printing, Think about Your Environmental Responsibility!
  Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
 
 
 
  On Wed, Apr 7, 2010 at 4:15 PM, Welington Veiga 
 welington.ve...@gmail.com wrote:
  This is my problem!
  I need a third deep level to keep a good design.
 
 
  like:
 
  company/customer/new
 
 
  but in the symfony structure company is not a application. It's
 authentication, credentials, user etc are common.
 
  I also have:
  calendar/tasks/view/5
 
  A beautifully solution maybe is:
 
  company/
  ..actions/
  customerActions.class.php
  employeersActions.class.php
  groupsActions.class.php
  calendar/
  ...
  news/
  ...
 
  Thank u.
 
 
 
 
  2010/4/7 Daniel Lohse annismcken...@googlemail.com
 
  Too many actions are often a sign of code duplication and/or shortcomings
 in separation of concerns. You want fat models and slim controllers. Your
 controller is either doing too much or you are putting actions into modules
 where they don't belong or fit.
 
  Care to share all your action names (just the names of the methods) in a
 particular big actions class? Also, a bit of code for each would also help.
 
  More than 15 actions per module are generally not advisable, you'll need
 to break things down when you're pushing that limit.
 
 
  Cheers, Daniel
 
  On 07.04.2010, at 14:25, Welington Veiga wrote:
 
  In this doc page  chapter 6 are an alternative way to write action: one
 per file.
  I think this isn't the best solution. I can add a new deep level in the
 route and use the parameter to decide what method  must be invoked on three
 or four sfAction classes but I will need to rewrite secure issues.
 
  Anyone can help me?
 
  2010/4/7 Welington Veiga welington.ve...@gmail.com
  I have  a problem with a big application what we are writing under
  symfony.
  It's our first contact with this fantastic framework, but we have a
  lot of code in a single action file. Our modules are big, with three
  crud:
 
  Like company has employers, groups  and customers.
  All in a application.
 
  I need a new deep level.
 
 
  The solution, I think, is use three sfActions class for each module.
  But maybe you have any experience with another solution, or another
  pattern for  this situatuation.
 
  PS: I dont know how to configure  new actions under 'app/myapp/modules/
  mymodule/actions' folder.
 
 
 
  --
  Welington da Veiga Silva
  ---
  Há pessoas que transformam o sol numa simples mancha amarela, mas há
 aquelas que fazem de uma simples mancha amarela o próprio sol.
  ( Pablo Picasso )
 
  --
  If you want to report a vulnerability issue on symfony, please send it
 to security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  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
 
 
 
  --
  Welington da Veiga Silva
  ---
  Há pessoas que transformam o sol numa simples mancha amarela, mas há
 aquelas que fazem de uma simples mancha amarela o próprio sol.
  ( Pablo Picasso )
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post