[symfony-users] why doesn't the debug bar show all filters?
If I go look at the front of my site, and I am not logged in, and I'm using the dev controller, then when I hit logs, the debug bar lists all of the events which have happened, including 3 filters: sfRenderingFilter sfCommonFilter sfValidationExecutionFilter But if I then attempt to go to a page that I need to be logged in to see, the logs in the debug bar show 5 filters: sfRenderingFilter sfGuardBasicSecurityFilter sfRenderingFilter sfCommonFilter sfValidationExecutionFilter I am curious why sfRenderingFilter gets called twice? If I then login and look at the same page, these 4 filters appear: sfRenderingFilter sfGuardBasicSecurityFilter sfCommonFilter sfValidationExecutionFilter What does it take for a filter to appear in the debug bar? All of the filters get called every time a page loads, yes? Isn't there something inaccurate in only listing 3 filters when viewing the front page? --~--~-~--~~~---~--~~ 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] Disable cache checking for a module
Hi all, I develop an installation module which checks if /cache folder exists and is writable. The problem is that if I just extract my project and try to go to http://myapp.com/install, I get the the following exception : 'sfCacheException' with message 'Failed to make cache directory Obviously it's normal. But I would like to disable the cache checking. In my install module, I wrote a config/cache.yml file : index: enabled: off But I still get the message. How to disable the checking and display my own error page if cache is now writable ? -- Adrien Mogenet [fr] http://adrien.frenchcomp.net --~--~-~--~~~---~--~~ 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: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted
The previous error has vancished. Now the view partly renders but dies with this error: Fatal error: Call to undefined function format_date() in /home/ theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/_list_td_tabular.php on line 8 I am not aware of any change that I've made that could effect what functions are available to the sfGuardUser plugin, especially since it is serving its administrative module from a cache file. Does anyone know what could cause an error like this? On Sep 11, 1:38 pm, Jake Barnes lkrub...@geocities.com wrote: For the most part, everything on my site is working great, however, a bug has suddenly appeared regarding sfGuard. I have not made any changes to this module that I can recall. If I go here: frontend_dev.php/sf_guard_user.html Then I get this: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4864 bytes) in /usr/share/php/symfony/widget/ sfWidgetFormChoice.class.php on line 113 The last entry in Subversion, regarding sfGuardPlugin, is this: Some base class has apparently been left out of Subversion. I can not easily find it. It is on the dev site but not on the live site. I'd like to find it and add it to the live site. That was 100 small revisions ago. No changes, just adding in some base classes. And yes, I've already done symfony cc. Any suggestions? --~--~-~--~~~---~--~~ 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: Redirecting URLs via routing.yml settings
I would do this with Apache URL Rewriting if I were you, to avoid any useless overhead. Anyway, you could still create a very simple dedicated module for redirections : class redirectActions extends sfActions { public function executeRedirect() { $this-forward404Unless($route = $this-getRequestParameter ('redirect_route')); $status = $this-getRequestParameter('redirect_status', '301'); // Generate proper URL (cleaning request from redirect params) $vars = $this-getRequest()-getParameterHolder(); $vars-remove('redirect_route'); $vars-remove('redirect_status'); $url = $this-getController()-genURL(array('sf_route' = $route), true); $this-redirect($url, $status); } } Supposing /my-url should become /my-new-url, you will rewrite your routing rules this way : old_my_route: url: /my-url param: { module: redirect, action: redirect, redirect_route: my_route } my_route: url: /my-new-url ... On 12 sep, 04:17, Eno symb...@gmail.com wrote: On Fri, 11 Sep 2009, nurikabe wrote: What is the recommended way of redirecting in Symfony? There are several ways to do this - maybe you can give some more details of what you're trying to do. -- --~--~-~--~~~---~--~~ 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] sfPropelCustomJoinHelper
Hi, I try to use sfPropelCustomJoinHelper (you can see it hier http://trac.symfony-project.org/wiki/ApplyingCustomJoinsUsingHelper) to solve this problem: select a.a1, a.a2, b.b1. b.b2 from artikel a left join bestellung b on b.id = a.id from such a select, I need in my templete a.a1 und b.b1 Whith $this-bestellung_list = BestellungPeer::doSelect($c); I get only attr. of Table Bestellung (e.g. b.b1). How to get a.a1? Hier is Code of my action class: public function executeIndex(sfWebRequest $request) { $c = new Criteria(); $this-bestellung_list = BestellungPeer::doSelect($c); // Helper class $c = new Criteria(); $c-addJoin(ArtikelPeer::ID, BestellungPeer::ARTIKEL_ID); $joinHelper = new sfPropelCustomJoinHelper('Artikel'); $joinHelper-addSelectTables('Artikel', 'Bestellung'); $this-articles = $joinHelper-doSelect($c); // ... } When I try to run it, so I get this error: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ArtikelPeer::doSelectRS' was given in C:\dev\sf_shopnew\lib\symfony\helper \sfPropelCustomJoinHelper.php on line 111 Fatal error: Call to a member function next() on a non-object in C:\dev \sf_shopnew\lib\symfony\helper\sfPropelCustomJoinHelper.php on line 78 Thanks in advance for any help. Have a nice weekend, Gezim --~--~-~--~~~---~--~~ 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 DocumentRoot
Hi, I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. I've tried many solutions founded via google but it doesn't work in my environment - I guess that I've made something wrong. My Symfony version is 1.0. Could you help me to resolve the issue? Best regards, MiloszeS --~--~-~--~~~---~--~~ 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 DocumentRoot
On Sat, 12 Sep 2009, MiloszeS wrote: I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. What does your .htaccess file look like? Have you looked at the RewriteBase setting? -- --~--~-~--~~~---~--~~ 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 DocumentRoot
The .htaccess file located in: /home/a/htdocs IfModule mod_rewrite.c RewriteEngine On RewriteRule (.*) /app/web/$1 # RewriteBase /app/web /IfModule I've tried to set RewriteBase - like in the commented line but without effect. On 12 Wrz, 16:13, Eno symb...@gmail.com wrote: On Sat, 12 Sep 2009, MiloszeS wrote: I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. What does your .htaccess file look like? Have you looked at the RewriteBase setting? -- --~--~-~--~~~---~--~~ 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: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted
It sounds like you need the date helper in your template. ?php use_helper('Date')? On Sep 12, 3:27 am, Jake Barnes lkrub...@geocities.com wrote: The previous error has vancished. Now the view partly renders but dies with this error: Fatal error: Call to undefined function format_date() in /home/ theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/_list_td_tabular.php on line 8 I am not aware of any change that I've made that could effect what functions are available to the sfGuardUser plugin, especially since it is serving its administrative module from a cache file. Does anyone know what could cause an error like this? On Sep 11, 1:38 pm, Jake Barnes lkrub...@geocities.com wrote: For the most part, everything on my site is working great, however, a bug has suddenly appeared regarding sfGuard. I have not made any changes to this module that I can recall. If I go here: frontend_dev.php/sf_guard_user.html Then I get this: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4864 bytes) in /usr/share/php/symfony/widget/ sfWidgetFormChoice.class.php on line 113 The last entry in Subversion, regarding sfGuardPlugin, is this: Some base class has apparently been left out of Subversion. I can not easily find it. It is on the dev site but not on the live site. I'd like to find it and add it to the live site. That was 100 small revisions ago. No changes, just adding in some base classes. And yes, I've already done symfony cc. Any suggestions? --~--~-~--~~~---~--~~ 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 DocumentRoot
You have to set the RewriteBase before any RewriteRules you have. Also, as you know mod_rewrite is enabled, I'd remove the IfModule lines for a small gain on performance - the condition is always true anyway. On Sat, Sep 12, 2009 at 16:51, MiloszeS milos...@gmail.com wrote: The .htaccess file located in: /home/a/htdocs IfModule mod_rewrite.c RewriteEngine On RewriteRule (.*) /app/web/$1 # RewriteBase /app/web /IfModule I've tried to set RewriteBase - like in the commented line but without effect. On 12 Wrz, 16:13, Eno symb...@gmail.com wrote: On Sat, 12 Sep 2009, MiloszeS wrote: I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. What does your .htaccess file look like? Have you looked at the RewriteBase setting? -- --~--~-~--~~~---~--~~ 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: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted
On Sep 12, 10:58 am, pcummins patwcumm...@gmail.com wrote: It sounds like you need the date helper in your template. ?php use_helper('Date')? Yes, but this is an auto-generated template that has worked in the past. When I look in Subversion, I do not see edits on the sfGuardPlugin. So why would such an error suddenly start to appear? On Sep 12, 3:27 am, Jake Barnes lkrub...@geocities.com wrote: The previous error has vancished. Now the view partly renders but dies with this error: Fatal error: Call to undefined function format_date() in /home/ theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/_list_td_tabular.php on line 8 I am not aware of any change that I've made that could effect what functions are available to the sfGuardUser plugin, especially since it is serving its administrative module from a cache file. Does anyone know what could cause an error like this? On Sep 11, 1:38 pm, Jake Barnes lkrub...@geocities.com wrote: For the most part, everything on my site is working great, however, a bug has suddenly appeared regarding sfGuard. I have not made any changes to this module that I can recall. If I go here: frontend_dev.php/sf_guard_user.html Then I get this: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4864 bytes) in /usr/share/php/symfony/widget/ sfWidgetFormChoice.class.php on line 113 The last entry in Subversion, regarding sfGuardPlugin, is this: Some base class has apparently been left out of Subversion. I can not easily find it. It is on the dev site but not on the live site. I'd like to find it and add it to the live site. That was 100 small revisions ago. No changes, just adding in some base classes. And yes, I've already done symfony cc. Any suggestions? --~--~-~--~~~---~--~~ 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: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted
On Sep 12, 10:58 am, pcummins patwcumm...@gmail.com wrote: It sounds like you need the date helper in your template. ?php use_helper('Date')? I ssh to the server. I then followed the path listed in the error message: Fatal error: Call to undefined function format_date() in /home/ theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/_list_td_tabular.php on line 11 This folder: home/theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/ has these files: theesoci...@rome:~/public_html/cache/test/dev/modules/autoSfGuardUser/ templates$ ls -al total 96 drwxrwxrwx 2 theesociety theesociety 4096 2009-09-11 13:30 . drwxrwxrwx 5 theesociety theesociety 4096 2009-09-02 15:46 .. -rw-r--r-- 1 theesociety theesociety 135 2009-09-11 13:30 _assets.php -rw-r--r-- 1 theesociety theesociety 881 2009-09-11 13:30 editSuccess.php -rw-r--r-- 1 theesociety theesociety 967 2009-09-11 13:30 _filters_field.php -rw-r--r-- 1 theesociety theesociety 1589 2009-09-11 13:30 _filters.php -rw-r--r-- 1 theesociety theesociety 310 2009-09-11 13:30 _flashes.php -rw-r--r-- 1 theesociety theesociety 1283 2009-09-11 13:30 _form_actions.php -rw-r--r-- 1 theesociety theesociety 963 2009-09-11 13:30 _form_field.php -rw-r--r-- 1 theesociety theesociety 857 2009-09-11 13:30 _form_fieldset.php -rw-r--r-- 1 theesociety theesociety0 2009-09-11 13:30 _form_footer.php -rw-r--r-- 1 theesociety theesociety0 2009-09-11 13:30 _form_header.php -rw-r--r-- 1 theesociety theesociety 831 2009-09-11 13:30 _form.php -rw-r--r-- 1 theesociety theesociety 1127 2009-09-11 13:30 indexSuccess.php -rw-r--r-- 1 theesociety theesociety 112 2009-09-11 13:30 _list_actions.php -rw-r--r-- 1 theesociety theesociety 548 2009-09-11 13:30 _list_batch_actions.php -rw-r--r-- 1 theesociety theesociety 248 2009-09-11 13:30 _list_field_boolean.php -rw-r--r-- 1 theesociety theesociety0 2009-09-11 13:30 _list_footer.php -rw-r--r-- 1 theesociety theesociety0 2009-09-11 13:30 _list_header.php -rw-r--r-- 1 theesociety theesociety 2276 2009-09-11 13:30 _list.php -rw-r--r-- 1 theesociety theesociety 363 2009-09-11 13:30 _list_td_actions.php -rw-r--r-- 1 theesociety theesociety 138 2009-09-11 13:30 _list_td_batch_actions.php -rw-r--r-- 1 theesociety theesociety 435 2009-09-11 13:30 _list_td_stacked.php -rw-r--r-- 1 theesociety theesociety 492 2009-09-11 13:30 _list_td_tabular.php -rw-r--r-- 1 theesociety theesociety 80 2009-09-11 13:30 _list_th_stacked.php -rw-r--r-- 1 theesociety theesociety 2310 2009-09-11 13:30 _list_th_tabular.php -rw-r--r-- 1 theesociety theesociety 815 2009-09-11 13:30 newSuccess.php -rw-r--r-- 1 theesociety theesociety 1486 2009-09-11 13:30 _pagination.php Both index.php and edit.php already had this at the top: ?php use_helper('I18N', 'Date') ? So the Date helpers should have already been there. But since I was getting an error, I opened up _list_td_tabular.php and I added this in: ?php use_helper('Date') ? But the error remains unchanged. Also, I'm working on files in the cache folder, so this will break every time I do symfony cc. While I'd be happy to get it working just for now, I'd also be curious if people have ideas about to fix this problem further upstream. On Sep 12, 3:27 am, Jake Barnes lkrub...@geocities.com wrote: The previous error has vancished. Now the view partly renders but dies with this error: Fatal error: Call to undefined function format_date() in /home/ theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ templates/_list_td_tabular.php on line 8 I am not aware of any change that I've made that could effect what functions are available to the sfGuardUser plugin, especially since it is serving its administrative module from a cache file. Does anyone know what could cause an error like this? On Sep 11, 1:38 pm, Jake Barnes lkrub...@geocities.com wrote: For the most part, everything on my site is working great, however, a bug has suddenly appeared regarding sfGuard. I have not made any changes to this module that I can recall. If I go here: frontend_dev.php/sf_guard_user.html Then I get this: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4864 bytes) in /usr/share/php/symfony/widget/ sfWidgetFormChoice.class.php on line 113 The last entry in Subversion, regarding sfGuardPlugin, is this: Some base class has apparently been left out of Subversion. I can not easily find it. It is on the dev site but not on the live site. I'd like to find it and add it to the live site. That was 100 small revisions ago. No changes, just adding in some base classes. And yes, I've already done symfony cc. Any suggestions? --~--~-~--~~~---~--~~ 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
[symfony-users] Re: Symfony DocumentRoot
I've changed the .htaccess as below: RewriteEngine On RewriteBase /app/web RewriteRule (.*) /app/web/$1 But Symfony still generates links mydomain.com/app/web/module. Should I change something in the Symfony configuration files ? MiloszeS On 12 Wrz, 17:27, Gábor Fási maerl...@gmail.com wrote: You have to set the RewriteBase before any RewriteRules you have. Also, as you know mod_rewrite is enabled, I'd remove the IfModule lines for a small gain on performance - the condition is always true anyway. On Sat, Sep 12, 2009 at 16:51, MiloszeS milos...@gmail.com wrote: The .htaccess file located in: /home/a/htdocs IfModule mod_rewrite.c RewriteEngine On RewriteRule (.*) /app/web/$1 # RewriteBase /app/web /IfModule I've tried to set RewriteBase - like in the commented line but without effect. On 12 Wrz, 16:13, Eno symb...@gmail.com wrote: On Sat, 12 Sep 2009, MiloszeS wrote: I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. What does your .htaccess file look like? Have you looked at the RewriteBase setting? -- --~--~-~--~~~---~--~~ 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: sfValidatorPropelUnique fails on updates - 1.2
Hey Ben, no, your first version is right. You only need to pass model and column. The object that your form is updating needs to have a primary key set though, in order to be considered an update. otherwise it will be considered new and the update will fail. In the most basic propel form setup none of this should be an issue, since auto-generated forms are doing this just fine by themselves. Try adding a _uniques: key to the schema and add your field there, this will build the post validator straight into your base form. Or post your entire configure/setup function if nothing else helps :) Have a great day, Daniel On Sep 11, 6:26 pm, Matías López lopezmat...@gmail.com wrote: Hello.. I had this issue.. you need to put in the primary_key the field that is unique. In this case: 'primary_key' = 'user_name' Rgds, Lic. Matías López E-mail: lopezmat...@gmail.com Movil: +54 9 341 155 799291 On Wed, Mar 11, 2009 at 10:49 PM, Benjamin agtle...@gmail.com wrote: I spoke too soon. Now it allows you to create multiple entries with the same user name. I've spent about 12 hours researching this, I read the form book, looked through all the tutorials, looked at the api documentation and search good for hours. Can someone please for the love of god help me figure out how to get this validator to work right? On Mar 11, 5:24 pm, Benjamin agtle...@gmail.com wrote: I'm going to leave this up in case anyone else has the same problem. The answer is that you must specify the primary key, if the unique field is not the primary key. Here is a working example: [code=php] new sfValidatorPropelUnique( array( 'model' = 'Members', 'column' = array('user_name', 'id'), ), array( 'invalid' = 'This user name has already been taken', ) ), [/code] On Mar 11, 3:50 am, Benjamin agtle...@gmail.com wrote: The code is below. I have been searching for hours. This is failing on updates, saying that the user name has already been taken. It's being used as a post validator. new sfValidatorPropelUnique( array( 'model' = 'Members', 'column' = array('user_name'), ), array( 'invalid' = 'This user name has already been taken', )), --~--~-~--~~~---~--~~ 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: cant upload file through admin generator
Hey Yaniv, I suppose you're using sf1.2 In this case, the type stuff doesn't work any more through the generator file. You need to modify the generated form classes directly (this way form logic is in one central place instead of scattered through many config files..) For specifics read here: http://www.symfony-project.org/forms/1_2/en/ and here: http://www.symfony-project.org/jobeet/1_2/Propel/en/12#chapter_12_form_views_configuration Hope this helps, Daniel On Sep 11, 9:37 am, Yaniv stu...@yanivgolan.com wrote: Hi all newbie here... :) I've been reading symfony docs for a while now and now starting project to test it (and my self :)) i stated by generating admin to populate the data one of my columns should be file path (photo) and i can't get it to show the 'browse' button i digged in and still can't get it to work any suggestions? here is my generator.yml file: generator: class: sfPropelGenerator param: model_class: Post theme: admin non_verbose_templates: true with_show: false singular: ~ plural: ~ route_prefix: post with_propel_route: 1 config: actions: ~ fields: list: display: [photo, description, created_at] object_actions: _edit: _delete: filter: ~ form: fields: phpto: type: [admin_input_file_tag] edit: display: [file_path, description] fields: photo: type: [admin_input_file_tag] new: ~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony DocumentRoot
I didn't see anywhere where you show what you WANT the links to look like? Perhaps mydomain.com/ or mydomain.com/module ? I'm no expert, but perhaps you want the base to be '/' not '/app/web' On Sep 12, 8:52 am, MiloszeS milos...@gmail.com wrote: I've changed the .htaccess as below: RewriteEngine On RewriteBase /app/web RewriteRule (.*) /app/web/$1 But Symfony still generates links mydomain.com/app/web/module. Should I change something in the Symfony configuration files ? MiloszeS On 12 Wrz, 17:27, Gábor Fási maerl...@gmail.com wrote: You have to set the RewriteBase before any RewriteRules you have. Also, as you know mod_rewrite is enabled, I'd remove the IfModule lines for a small gain on performance - the condition is always true anyway. On Sat, Sep 12, 2009 at 16:51, MiloszeS milos...@gmail.com wrote: The .htaccess file located in: /home/a/htdocs IfModule mod_rewrite.c RewriteEngine On RewriteRule (.*) /app/web/$1 # RewriteBase /app/web /IfModule I've tried to set RewriteBase - like in the commented line but without effect. On 12 Wrz, 16:13, Eno symb...@gmail.com wrote: On Sat, 12 Sep 2009, MiloszeS wrote: I have a virtual host defined to a folder /home/a/htdocs and don't have an access to the apache configuration files. My Application is located in /home/a/htdocs/app. I've created a rule in .htaccess to rewrite a url to app/web folder. Everything works fine - when I connect to myydomain.com, the page appears correctly. There is a one issue withe the mentioned solution - all links generated by he symfony looks: mydomail.com/app/web. What does your .htaccess file look like? Have you looked at the RewriteBase setting? --- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: cant upload file through admin generator
Thanks Daniel it did help (BTW liked the delicate graphics in your Blog header...:) ) On Sep 12, 7:57 pm, Richtermeister nex...@gmail.com wrote: Hey Yaniv, I suppose you're using sf1.2 In this case, the type stuff doesn't work any more through the generator file. You need to modify the generated form classes directly (this way form logic is in one central place instead of scattered through many config files..) For specifics read here:http://www.symfony-project.org/forms/1_2/en/ and here:http://www.symfony-project.org/jobeet/1_2/Propel/en/12#chapter_12_for... Hope this helps, Daniel On Sep 11, 9:37 am, Yaniv stu...@yanivgolan.com wrote: Hi all newbie here... :) I've been reading symfony docs for a while now and now starting project to test it (and my self :)) i stated by generating admin to populate the data one of my columns should be file path (photo) and i can't get it to show the 'browse' button i digged in and still can't get it to work any suggestions? here is my generator.yml file: generator: class: sfPropelGenerator param: model_class: Post theme: admin non_verbose_templates: true with_show: false singular: ~ plural: ~ route_prefix: post with_propel_route: 1 config: actions: ~ fields: list: display: [photo, description, created_at] object_actions: _edit: _delete: filter: ~ form: fields: phpto: type: [admin_input_file_tag] edit: display: [file_path, description] fields: photo: type: [admin_input_file_tag] new: ~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Request data not found by getParameter unless square brackets used in form name format
I would be very interested to hear the answer to this. From what I have observed, the format of a very simple application is 'table_alias_in_sql_statement[column_in_table]'. If there are other ways that variables are put into forms, I'd like to know. On Sep 11, 4:46 pm, Jonathan Dart jonathand...@gmail.com wrote: I have a form like so: class SearchForm extends sfForm { public function configure() { ... $this-widgetSchema-setNameFormat('search[%s]'); ... and an action like so: ... public function executeSearch(sfWebRequest $request) { $form = new SearchForm(); $form-bind($request-getParameter($form-getName()));} ... If I change the name format to something like 'search__%s' getParameter doesn't find the request data. If I want to pass the data to bind I need to create an array by hand from the request (as far as I know). Is there some way to have getParameter work without using square brackets in the name format? --~--~-~--~~~---~--~~ 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 1.2 - Admin Generator - FCKEditor
Hello Guys, Im wondering if the new admin generator with Symfony 1.2 allows using rich text editors like FCKEditor or TinyMCE Is it possible? Im looking at the doco and I found anything. Thanks, Matías --~--~-~--~~~---~--~~ 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 1.2 - Admin Generator - FCKEditor
there are plugins to it.You just need to set the widget On Sun, Sep 13, 2009 at 02:08, Matías López lopezmat...@gmail.com wrote: Hello Guys, Im wondering if the new admin generator with Symfony 1.2 allows using rich text editors like FCKEditor or TinyMCE Is it possible? Im looking at the doco and I found anything. Thanks, Matías -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.2 - Admin Generator - FCKEditor
You are right, I've found sfFormExtraPlugin but it has a widget for tinymce not for FCK... :( Do you know if any plugin support fckeditor? Thanks, Lic. Matías López E-mail: lopezmat...@gmail.com Movil: +54 9 341 155 799291 On Sun, Sep 13, 2009 at 2:13 AM, Sid Ferreira sid@gmail.com wrote: there are plugins to it.You just need to set the widget On Sun, Sep 13, 2009 at 02:08, Matías López lopezmat...@gmail.com wrote: Hello Guys, Im wondering if the new admin generator with Symfony 1.2 allows using rich text editors like FCKEditor or TinyMCE Is it possible? Im looking at the doco and I found anything. Thanks, Matías -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.2 - Admin Generator - FCKEditor
Actually I did a small one... wait... http://www.symfony-project.org/plugins/sfFCKEditorPlugin On Sun, Sep 13, 2009 at 02:29, Matías López lopezmat...@gmail.com wrote: You are right, I've found sfFormExtraPlugin but it has a widget for tinymce not for FCK... :( Do you know if any plugin support fckeditor? Thanks, Lic. Matías López E-mail: lopezmat...@gmail.com Movil: +54 9 341 155 799291 On Sun, Sep 13, 2009 at 2:13 AM, Sid Ferreira sid@gmail.com wrote: there are plugins to it. You just need to set the widget On Sun, Sep 13, 2009 at 02:08, Matías López lopezmat...@gmail.comwrote: Hello Guys, Im wondering if the new admin generator with Symfony 1.2 allows using rich text editors like FCKEditor or TinyMCE Is it possible? Im looking at the doco and I found anything. Thanks, Matías -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---