[symfony-users] Add Twig Extension error
Hi, I would like to use Text extension on twig. I get this extension on fabien's repository. File name: Text.php I put the file in this path: Application/[App]Bundle/Twig/Extension And add this configuration in config.yml services: twig.extension.Text: class: Application\[App]Bundle\Twig\Extension\Text tags: - { name: twig.extension } But i have this error: Fatal error: Class 'Application\[App]Bundle\Twig\Extension\Text' not found in ... Please help me Thanks Bertrand -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Add Twig Extension error
What is the name of the class ? In which namespace is it (to of Text.php) ? On Nov 28, 11:29 am, Bertrand Zuchuat mailingl...@funstaff.ch wrote: Hi, I would like to use Text extension on twig. I get this extension on fabien's repository. File name: Text.php I put the file in this path: Application/[App]Bundle/Twig/Extension And add this configuration in config.yml services: twig.extension.Text: class: Application\[App]Bundle\Twig\Extension\Text tags: - { name: twig.extension } But i have this error: Fatal error: Class 'Application\[App]Bundle\Twig\Extension\Text' not found in ... Please help me Thanks Bertrand -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: [symfony 2] Doctrine memory leaks?
Hi, The memory leak seems to be coming caused by Doctrine logs (see http://groups.google.com/group/symfony-users/browse_thread/thread/1f39d6119f21fa6a ). On Nov 28, 6:39 am, Tim Nagel t...@nagel.com.au wrote: Chunking the data and running the import over multiple passes. t On Fri, Nov 19, 2010 at 02:32, Carlos Silva in...@dicarsio.com wrote: Hi, I have been testing Symfony 2 (and Doctrine 2) and I've created a command to bulk insert data. I've found that in this test, PHP is eating ~ 175Mb per 100k records. Someone has a solutions for this? Command source:http://pastie.org/1308565 Yml Entity Schema Application\GeoBundle\Entity\Country: type: entity table: country fields: id: type: integer id: true generator: strategy: AUTO name: type: string(50) lifecycleCallbacks: { } -- If you want to report a vulnerability issue on symfony, please send 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] Abridged summary of symfony-users@googlegroups.com - 44 Messages in 36 Topics
Beste, Tot en met vrijdag 3 december ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Wout Withagen: w...@freshheads.com of 013 539 00 40. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c | 5017 KC Tilburg | Nederland tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762 i...@freshheads.com | www.freshheads.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
[symfony-users] Re: Acces denied for user www-data
www-data is the user that Apache uses. You need to chmod / chown your symfony project folder. If you are not concerned about security just sudo chmod 777 entire_project_folder. Obviously in a real production environment you will need to think through appropriate security permissions. On Nov 18, 5:44 am, Bor1s galina.sebast...@gmail.com wrote: Hello all, i am a beginner on symfony and i try to do the jobeet tutorial. All seem to be good as far as the final part of day 2 when i try to do a new module. When i try to access at my module's url (http://localhost/frontend_dev.php/myModule ) i have an connexion error : [code]PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: YES)[/code] Even so all work fine; doctrine building all work fine, my database is created.. Normally my user for mysql is root but in error message www-data is user.. my database.yml : [code]all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:dbname=mydbname;host=localhost username: root password: mypwd [/code] I don't understand ... can you help me ? -- If you want to report a vulnerability issue on symfony, please send 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 set the title to each page dynamically
or you can modify the title per module basis using the view.yml. However, make sure that you have not written anything between title/ title tags in the global layout, then you can specify title in the application level and myModule/config/view.yml level On Nov 22, 8:36 am, Pradeep pradeep.pench...@gmail.com wrote: I found that title is being obtained from the layout.php which is being applied to all pages taking it from there. I wonder how to add the title to each page according to the type of the page showing necessary title. Can someone tell me how to proceed -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Symfony 2/Twig and page specific javascripts or stylesheets
Hello Benjamin, I had the same problem. The solution is to create a block. layout.twig: head title/title {% block head %} This text be written if the block 'head' doesn't exist in your children template {% endblock %} {% javascript 'js/myscript.js' %} {% javascripts %} /head index.twig: {% extends SiteBundle::layout.twig %} {% block head %} {% javascript 'js/index.js' %} {% endblock %} Good luck, Francis. -- If you want to report a vulnerability issue on symfony, please send 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: Acces denied for user www-data
This has nothing to do with file permissions. Does the command line work ? (doctrine load fixtures etc) On Sun, Nov 28, 2010 at 5:47 PM, dmitrypol dmitry...@gmail.com wrote: www-data is the user that Apache uses. You need to chmod / chown your symfony project folder. If you are not concerned about security just sudo chmod 777 entire_project_folder. Obviously in a real production environment you will need to think through appropriate security permissions. On Nov 18, 5:44 am, Bor1s galina.sebast...@gmail.com wrote: Hello all, i am a beginner on symfony and i try to do the jobeet tutorial. All seem to be good as far as the final part of day 2 when i try to do a new module. When i try to access at my module's url ( http://localhost/frontend_dev.php/myModule ) i have an connexion error : [code]PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: YES)[/code] Even so all work fine; doctrine building all work fine, my database is created.. Normally my user for mysql is root but in error message www-data is user.. my database.yml : [code]all: doctrine: class:sfDoctrineDatabase param: dsn:mysql:dbname=mydbname;host=localhost username: root password: mypwd [/code] I don't understand ... can you help me ? -- If you want to report a vulnerability issue on symfony, please send 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] Pass variables through actions
Hi. Yes, it is possible, but currently I only now the GET method. Look for this snippet: if ($this-form-isValid()){ $this-redirect('contact/thankyou?'.http_build_query($this-form-getValues()));} On this Resource... http://www.symfony-project.org/forms/1_4/en/02-Form-Validation It is the Forms in action From Symfony docs. The .http_build_query will pass the data to another action, if the form is valid (for this example) But I would love to know a POST implementation example. If you get it first than I, please send me a short mail [?] 2010/11/24 Marcelo marcelooliveira...@gmail.com Is it possible to pass variables through actions ? Because I use some vars in new action, but if the form is invalid it will stop on create action to fix the erros and then I get the undefined variables ps: The values of these variables in new action is requested by url (new/someid/3) which by the way is hard coded. Or is there another (correct) way to do that ? 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.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en 360.gif
Re: [symfony-users] Pass variables through actions
Hey, I didn't test it, but using forward instead of redirect, perhaps you can modify the sfWebRequest object and it will get passed around to the forwarded action, no ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sun, Nov 28, 2010 at 7:45 PM, oscar balladares liebegr...@gmail.comwrote: Hi. Yes, it is possible, but currently I only now the GET method. Look for this snippet: if ($this-form-isValid()){ $this-redirect('contact/thankyou?'.http_build_query($this-form-getValues()));} On this Resource... http://www.symfony-project.org/forms/1_4/en/02-Form-Validation It is the Forms in action From Symfony docs. The .http_build_query will pass the data to another action, if the form is valid (for this example) But I would love to know a POST implementation example. If you get it first than I, please send me a short mail [?] 2010/11/24 Marcelo marcelooliveira...@gmail.com Is it possible to pass variables through actions ? Because I use some vars in new action, but if the form is invalid it will stop on create action to fix the erros and then I get the undefined variables ps: The values of these variables in new action is requested by url (new/someid/3) which by the way is hard coded. Or is there another (correct) way to do that ? 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 360.gif
Re: [symfony-users] Re: Acces denied for user www-data
Hi. For permission an the owner properties: sudo chown -R yourUserName.yourUserGroup smyfony_project/ The -R option is to change the whole dir and subdirs and files from your project directory. sudo chmod -R 777 symony_project/ Again -R is for the same purpose. 2010/11/28 Nicolas Hurman mwk...@gmail.com This has nothing to do with file permissions. Does the command line work ? (doctrine load fixtures etc) On Sun, Nov 28, 2010 at 5:47 PM, dmitrypol dmitry...@gmail.com wrote: www-data is the user that Apache uses. You need to chmod / chown your symfony project folder. If you are not concerned about security just sudo chmod 777 entire_project_folder. Obviously in a real production environment you will need to think through appropriate security permissions. On Nov 18, 5:44 am, Bor1s galina.sebast...@gmail.com wrote: Hello all, i am a beginner on symfony and i try to do the jobeet tutorial. All seem to be good as far as the final part of day 2 when i try to do a new module. When i try to access at my module's url ( http://localhost/frontend_dev.php/myModule ) i have an connexion error : [code]PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: YES)[/code] Even so all work fine; doctrine building all work fine, my database is created.. Normally my user for mysql is root but in error message www-data is user.. my database.yml : [code]all: doctrine: class:sfDoctrineDatabase param: dsn:mysql:dbname=mydbname;host=localhost username: root password: mypwd [/code] I don't understand ... can you help me ? -- If you want to report a vulnerability issue on symfony, please send 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] Re: How to set the title to each page dynamically
Yes, Jobeet Tutorial is not an option, it is mandatory [?] 2010/11/28 el-sid sydneyari...@gmail.com or you can modify the title per module basis using the view.yml. However, make sure that you have not written anything between title/ title tags in the global layout, then you can specify title in the application level and myModule/config/view.yml level On Nov 22, 8:36 am, Pradeep pradeep.pench...@gmail.com wrote: I found that title is being obtained from the layout.php which is being applied to all pages taking it from there. I wonder how to add the title to each page according to the type of the page showing necessary title. Can someone tell me how to proceed -- If you want to report a vulnerability issue on symfony, please send 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 360.gif
Re: [symfony-users] Publishing a Symfony project with the front controller on the web-root directory like, instead of a Virtual Host on Apache
Hi everybody and hi Yannik and Szél. Those are great ideas! I had considered Szél way, but I didnt wanted to take the risk of being hacked due to YAML files easy access, but I will use the htaccess for security. I have some cheap clients hoho, yes Im starting my own business and I cant say no at this moment. and I dont want to do it the DIY way (Symfony advantages are good marketing advertising). Thanks everybody! 2010/11/18 Szél Péter sze...@gmail.com 2010.11.19. 05:14:33 dátumon oscar balladares liebegr...@gmail.com írta: Hi guys and girls! Is there a way to publish a Symfony project with the index.php (front controller) on the web-root directory? (instead of the sf_app_name/web/ directory). I have this question cuase there are many clients that like just to put the project folder on the htdocs directory (mostly are Windows users) and they expect the application to work (This way you are jumping over the virtual host configurations suggested on the jobeet tutorial) And also some free web hosting do not allow configuring a Virtual Host, they expect you to put your index.php on the toplevel directory and that is imposible with a common Symfony project hierarchy (as far as I know and the reason of my question). If I put a SF project on the top level, I would have to access my app like : http://myapp.suckingfreewebhosting.com/*web*/index.php when I would love to do: http://myapp.suckingfreewebhosting.com/index.php So if there is no wayto have the front controller on the web-root directory, my current thoughts are : 1-My clients should have enough money to get a web master services to configure the project for them. 2- Free hosting sucks, I should get a real hosting. That is what takes my breath away this days, cuase I do really would love to use Symfony on really small projects and not only on big projects having access to a virtual host, I dont want to do things like the DIY style anymore. Is there a way to get the front controller in the web-root directory? Hi! This is unsecure, but it's easy. Just move all files in the web directory to the root directory, then edit index.php, replace require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); with require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php'); Again, this is ugly, all your files (including the settings yml files) are visible to everyone, you have to solve this by setting .htaccess to deny those files. 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.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] [Symfony2] DynamicsBundle
Hi all, I created a bundle for Symfony2 wich is called DynamicsBundle. With DynamicsBundle merge your stylesheets files and javascripts files. Files merged can be minify. You can download at this address: https://github.com/francisbesset/DynamicsBundle Documentation is available in README.markdown Enjoy! -- If you want to report a vulnerability issue on symfony, please send 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] [Symfony2] DynamicsBundle
That's great! I had started making my own, but yours is finished and fully functionnal. Thanks for sharing. On Sun, Nov 28, 2010 at 8:45 PM, Francis Besset francis.bes...@gmail.comwrote: Hi all, I created a bundle for Symfony2 wich is called DynamicsBundle. With DynamicsBundle merge your stylesheets files and javascripts files. Files merged can be minify. You can download at this address: https://github.com/francisbesset/DynamicsBundle Documentation is available in README.markdown Enjoy! -- If you want to report a vulnerability issue on symfony, please send 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: DynamicsBundle
Hehe if you steal the sfDynamicsName, I'll give you the github https://github.com/dynamics account, no problem. But do you realize that the original library did actually do much more than packing and minifying ? You may have to think a bit about dependency management. On 28 nov, 20:45, Francis Besset francis.bes...@gmail.com wrote: Hi all, I created a bundle for Symfony2 wich is called DynamicsBundle. With DynamicsBundle merge your stylesheets files and javascripts files. Files merged can be minify. You can download at this address:https://github.com/francisbesset/DynamicsBundle Documentation is available in README.markdown Enjoy! -- If you want to report a vulnerability issue on symfony, please send 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] DynamicsBundle to PackingMinifyBundle
Hi Hartym, I didn't steal Dynamics name but it seemed logical to take dynamics relative plugins sfDynamicsPlugin on sf1.x I changed the name of DynamicsBundle to PackingMinifyBundle ( https://github.com/francisbesset/PackingMinifyBundle). Sorry for the reuse of the name dynamics, Francis. 2010/11/28 Hartym har...@gmail.com Hehe if you steal the sfDynamicsName, I'll give you the github https://github.com/dynamics account, no problem. But do you realize that the original library did actually do much more than packing and minifying ? You may have to think a bit about dependency management. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Add Twig Extension error
You need to look up how namespaces work also the class key is not a path but the fully qualified class name and because the twig extension classes dosage use namespaces it should be Twig_Extension_Text and also you should have the extensions in your vendor directory and setup autoload accordingly. On Nov 28, 11:29 am, Bertrand Zuchuat mailingl...@funstaff.ch wrote: Hi, I would like to use Text extension on twig. I get this extension on fabien's repository. File name: Text.php I put the file in this path: Application/[App]Bundle/Twig/Extension And add this configuration in config.yml services: twig.extension.Text: class: Application\[App]Bundle\Twig\Extension\Text tags: - { name: twig.extension } But i have this error: Fatal error: Class 'Application\[App]Bundle\Twig\Extension\Text' not found in ... Please help me Thanks Bertrand -- If you want to report a vulnerability issue on symfony, please send 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 set the title to each page dynamically
On 22 Nov, 06:36, Pradeep pradeep.pench...@gmail.com wrote: I found that title is being obtained from the layout.php which is being applied to all pages taking it from there. I wonder how to add the title to each page according to the type of the page showing necessary title. If you need to automatically set the title for each of your module/ actions, you can simply extend sfResponse::getTitle() like so: ?php class myResponse extends sfWebResponse { public function getTitle() { $module = sfContext::getInstance()-getRequest()- getParameter('module', 'default'); $title = parent::getTitle(); return $module == 'default' ? $title : $module . ' - ' . $title; } } then you need to edit factories.yml in your app. This can be very useful in backends cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send 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