Re: [symfony-users] no_script_name and problems with URI

2010-07-23 Thread mehdi hadef
Yes by default it should take the action index like you say but it does not
in my case. Maybe it's due to the fact that the URI have parameters ?

I think it's not clean because I found strange that changing a parameter in
my settings.yml forced me to modify my routings.yml to work.

2010/7/21 Gustavo Adrian comfortablynum...@gmail.com

 If I'm wrong, please, correct me, but didn't the routing framework take the
 action index by default, so you can avoid tu put it on the URL?

 BTW, Why do you think is not clean to put the rules on the routing.yml?

 On Wed, Jul 21, 2010 at 6:51 AM, snoop mehdi.ha...@gmail.com wrote:

 Hi all,

 I changed the no_script_namemy parameter of my settings.yml for prod
 environnement and set it to on.
 So now I have http://www.example.com/module/action instead of
 http://www.example.com/index.php/module/action like I want.

 But I got a problem with my link using helper url_for().
 For example in my action I have a link with url_for('moduleName/index?
 productId=$productId') and the result in my page is
 http://mywebsite.com/moduleName?productId=2.
 So I got a 404 error because it remove my action name index.

 How can I solve this problem ? I know I can add some rules in my
 routing.yml to fix it but I think this solution is not clean ...

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

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


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

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


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

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


[symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread mehdi hadef
Hi all,

I would like to know if there is an easy way using symfony to create 2
website (with different domain name) that sharing the same database and
session/cookie variable.

Thanks

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

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


Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread mehdi hadef
Could I share cookies and session between the two domain names with this
method ?

2010/5/25 Tom Haskins-Vaughan t...@templestreetmedia.com

 Yes, it should be fairly easy.

  1. create one or more application for each domain name

  2. point your domain name's to the same place

  3. check in your index.php which domain name you have and launch the
 appropriate application

 Tom

 On Tue, May 25, 2010 at 5:21 AM, mehdi hadef mehdi.ha...@gmail.com
 wrote:
  Hi all,
  I would like to know if there is an easy way using symfony to create 2
  website (with different domain name) that sharing the same database and
  session/cookie variable.
  Thanks
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 

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

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


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

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


Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread mehdi hadef
OK. Thanks to Eno and you

2010/5/25 Tom Haskins-Vaughan t...@templestreetmedia.com

 Actually, no, Eno is right. You can't share session cookies between
 domains.

 On Tue, May 25, 2010 at 11:54 AM, mehdi hadef mehdi.ha...@gmail.com
 wrote:
  Could I share cookies and session between the two domain names with this
  method ?
 
  2010/5/25 Tom Haskins-Vaughan t...@templestreetmedia.com
 
  Yes, it should be fairly easy.
 
   1. create one or more application for each domain name
 
   2. point your domain name's to the same place
 
   3. check in your index.php which domain name you have and launch the
  appropriate application
 
  Tom
 
  On Tue, May 25, 2010 at 5:21 AM, mehdi hadef mehdi.ha...@gmail.com
  wrote:
   Hi all,
   I would like to know if there is an easy way using symfony to create 2
   website (with different domain name) that sharing the same database
 and
   session/cookie variable.
   Thanks
  
   --
   If you want to report a vulnerability issue on symfony, please send it
   to
   security at symfony-project.com
  
   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en
  
 
  --
  If you want to report a vulnerability issue on symfony, please send it
 to
  security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://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] [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Hi SatBoy,

can you show us the seetings.yml file of your back end application.
(apps/yourBackOffice/config/settings.yml

2010/5/4 SatBoy78 bruno.mat...@gmail.com

 hi all,
 I've got a strange problem with symfony: I've installed
 sfDoctrineGuardPlugin and after this I can't access to my backend, I
 can only see a blank page

 I've followed all the steps shown in the joobet tutorial, I've cleaned
 the cache, but I can't see the login page... do you know why I've got
 this problem? any hints?

 thanks a lot

 regards.


 here you can see the log:

 #   typemessage
 1   Info sfPatternRouting   Connect sfRoute sf_guard_signin (/
 login)
 2   Info sfPatternRouting   Connect sfRoute sf_guard_signout (/
 logout)
 3   Info sfPatternRouting   Connect sfRoute sf_guard_password (/
 request_password)
 4   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_filter (/sf_guard_user/filter.:sf_format)
 5   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_batch (/sf_guard_user/batch.:sf_format)
 6   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user (/
 sf_guard_user.:sf_format)
 7   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_new (/
 sf_guard_user/new.:sf_format)
 8   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_create (/sf_guard_user.:sf_format)
 9   Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_edit (/
 sf_guard_user/:id/edit.:sf_format)
 10  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_update (/sf_guard_user/:id.:sf_format)
 11  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_delete (/sf_guard_user/:id.:sf_format)
 12  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_show (/sf_guard_user/:id.:sf_format)
 13  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_object (/sf_guard_user/:id/:action.:sf_format)
 14  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_user_collection (/sf_guard_user/:action/action.:sf_format)
 15  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_filter (/sf_guard_group/filter.:sf_format)
 16  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_batch (/sf_guard_group/batch.:sf_format)
 17  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group (/
 sf_guard_group.:sf_format)
 18  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_new (/sf_guard_group/new.:sf_format)
 19  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_create (/sf_guard_group.:sf_format)
 20  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_edit (/sf_guard_group/:id/edit.:sf_format)
 21  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_update (/sf_guard_group/:id.:sf_format)
 22  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_delete (/sf_guard_group/:id.:sf_format)
 23  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_show (/sf_guard_group/:id.:sf_format)
 24  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_object (/sf_guard_group/:id/:action.:sf_format)
 25  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_group_collection (/sf_guard_group/:action/
 action.:sf_format)
 26  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_filter (/sf_guard_permission/filter.:sf_format)
 27  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_batch (/sf_guard_permission/batch.:sf_format)
 28  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission (/sf_guard_permission.:sf_format)
 29  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_new (/sf_guard_permission/new.:sf_format)
 30  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_create (/sf_guard_permission.:sf_format)
 31  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_edit (/sf_guard_permission/:id/edit.:sf_format)
 32  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_update (/sf_guard_permission/:id.:sf_format)
 33  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_delete (/sf_guard_permission/:id.:sf_format)
 34  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_show (/sf_guard_permission/:id.:sf_format)
 35  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_object (/
 sf_guard_permission/:id/:action.:sf_format)
 36  Info sfPatternRouting   Connect sfDoctrineRoute
 sf_guard_permission_collection (/sf_guard_permission/:action/
 action.:sf_format)
 37  Info sfPatternRouting   Match route ristorante (/
 ristorante.:sf_format) for /ristorante with parameters array
 ( 'module' = 'ristorante', 'action' = 'index', 'sf_format' =
 'html',)
 38  Info sfFilterChain  Executing filter sfRenderingFilter
 39  Info sfFilterChain  Executing filter
 

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Ok I see nothing strange in your settings.yml.

Have you a directory sfGuardAuth in apps/yourBackOffice/modules ?

If yes, what do you have in your templates/signinSuccess.php and in the
action that correspond ?

2010/5/4 SatBoy78 bruno.mat...@gmail.com

 this is my settings.yml

 prod:
  .settings:
no_script_name: false
logging_enabled:false

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

 test:
  .settings:
error_reporting:?php echo ((E_ALL | E_STRICT) ^
 E_NOTICE).\n ?
cache:  false
web_debug:  false
no_script_name: false
etag:   false

 all:
  .settings:
# Form security secret (CSRF protection)
csrf_secret:163795f317c03563886aaa366c354669940d9bde
enabled_modules: [default, sfGuardAuth, sfGuardGroup, sfGuardUser,
 sfGuardPermission]

  .actions:
login_module:  sfGuardAuth
login_action:  signin

secure_module:  sfGuardAuth
secure_action:  secure


# Output escaping settings
escaping_strategy:  true
escaping_method:ESC_SPECIALCHARS

# Enable the database manager
use_database:   true



 thanks a lot


 On 4 Mag, 11:13, mehdi hadef mehdi.ha...@gmail.com wrote:
  Hi SatBoy,
 
  can you show us the seetings.yml file of your back end application.
  (apps/yourBackOffice/config/settings.yml
 

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

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


Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Ok. Maybe you should customize the sfGuardAuth module. See the step
corresponding at
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin, section begin
by Customize sfGuardAuth module templates.
It could solve you problem.

In my case I customized it and it works fine.

2010/5/4 SatBoy78 bruno.mat...@gmail.com

 no, I don't have a sfGuardAuth module...

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

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


Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
To view error log in web page (instead of the blank page), check you have
fo_dev.php in your url.

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

 It's in the plugin itself but when you need to customize the templates for
 the signin action then you'll need to create a module in your app
 (frontend), create a templates directory inside it and copy over the
 signinSuccess.php from the plugin. At this point you can customize it and
 symfony knows to render your template instead of that in the plugin.

 Cheers, Daniel

 On 04.05.2010, at 15:05, SatBoy78 wrote:

  I've seen apache log, and I've seen that all works well...
 
  I've a question about sfGuardAuth module: symfony doesn't generate it
  when I install the plugin?
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en

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

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


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

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


[symfony-users] performance problem with sfDoctrinePage on symfony 1.2

2010-04-19 Thread mehdi hadef
Hi all,

I have a performance problem on a page using sfDoctrinePager.
It takes more than 5 seconds to display the page on local server.

Let's see the code in my actions.class about the pager :


$this-product = $this-getRoute()-getObject();
$this-pager = new sfDoctrinePager(
  'Product',
  sfConfig::get('app_max_products_on_shop'));

$this-pager-setQuery($this-product-getShopProductsQuery($tri));
$this-pager-setPage($request-getParameter('page',1));
$this-pager-init();


In my template I'm using a partial :


?php include_partial('shop/list',array('products' =
$pager-getResults())); ?


And in my partial list I have this :


?php foreach ($products as $i = $product): ?
!-- code to display product list --
?php endforeach; ?


Have anybody an idea about this performance problem ?

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

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