Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?
The second line after the RewriteCond is wrong. It should be more like: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^(.*) http://www.mydomain.com$1 [QSA,L,R=301] Bascht On 15.01.10 14:16, YTH wrote: Dear all, Hi, I would like to allow users getting redirected to www.mydomain.com if they enter mydomain.com in the browser. I added rewrite rule in the ..htaccess that comes with symfony 1.2 but the rewrite rule does not seem to work. When users enter mydomain.com, their browser continues to use mydomain.com, being unaware of the rewrite rule that I added. The .htaccess file is shown below: Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On # this is the rewrite rule that I added # it should redirect to www.mydomain.com if http_post variable does not start with www # but I have no idea why it does not work RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://www.mydomain.com/$1 [L,R=301] # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule I suspected that mod_rewrite is either not installed on the server (it's a shared hosting server), or it prevents people from doing any override. After a second thought, I changed my mind because all routing rules such as /user/new, /product/show defined in routing.yml work perfectly. And for these routing rules to work, the following rewrite rule defined in .htaccess must have got executed: RewriteRule ^(.*)$ index.php [QSA,L] This means that this might be the problem of my rewrite rule. Any ideas? Many thanks to you all. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Problem with Task or with PHP?
Looks like you've got xcache in your php.ini but havn't installed it yet. Either remove it from your php.ini or install the xcache extension. On Dec 4, 6:22 pm, Reynier Perez Mira [EMAIL PROTECTED] wrote: Hi every: I started a new project with Symfony 1.2 and because I have a database created I need to build the schema file. I try to run the task: symfony12 propel:buil-schema And I get this error: Failed loading /usr/lib/php5/20060613+lfs/xcache.so: /usr/lib/php5/20060613+lfs/xcache.so: cannot open shared object file: No such file or directory Task propel:buil-schema is not defined. Can any help me to solve this? Regards and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] ...howto establish a good testing culture?
Hi folks. This is kind of off topic, but I think it's the right list for this: My question is: == How do you get your team mates to write tests? We currently have about 300 functional and unit tests, written in lime for our symfony 1.1 project, but we're constantly integrating new features and usually 'not all of them' are developed test-driven - you know what I mean. So how do you manage to get a high test-coverage, without having to poke every team mate to make him write tests? Do you think it's good to organize a coding marathon for that? Like +25% code coverage in one weekend? I'm looking forward to your ideas and best practices. Let me know. ;) Regards, Bascht --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony on ubuntu...
Jerrad Anderson schrieb: So how did you fix this problem your post isn't very elaborative :) I'm also missing the sfCore.Class.php file Just tell me what you're missing. I'm using Symfony 1.0.18 and 1.1.4 both with Ubuntu 8.10, so perhaps I could help here. ;) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Backend changes language when I change language on the frontend
Is there a way I can set the language on the two sites independently? Looks like all you have to do is change the name of the cookie for your backend app. Then you should be able to log into 2 different sessions for front / backend. Bye, Sebastian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Two ORMs for one project.
Hi! I know that this topic was already discussed, but the solutions didn't fit very well for my project. I am currently working on a project that was built with sfDoctrine (which works very well for that use). Now my task is to 'quickly' add a CMS to the project... ...my first thought was to simply use the sfSimpleCms from symfony- forge, but that one is built on propel. I've already heard, that some of you are using Propel Doctrine in one project - so how was that possible for you? I only end up with the exception: A schema.yml must only contain 1 database entry. - I already added prefixes and tried to rename the yml-files, but that didn't work... What magic should I add, to get Propel and Doctrine work peacefully together?? Thanks, bascht --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Where to locate own (PHP-) Interfaces
Hey guys. I want some of my models to implement an own interface. Where would be the best directory to place my interface? Directly into the model-directory? thanks in advance, Sebastian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SymfonyCamp update
Really, very interesting - but I am also on vacation, during the time of the camp. Perhaps I'm gonna send the other guys from the company to the camp :) On 13 Aug., 22:12, Stefan Koopmanschap [EMAIL PROTECTED] wrote: Hey guys, Here's another short SymfonyCamp update. I've just deployed the latest version of our site, which now has a bit more information on the event. Unfortunately, the program for the technology days is still not confirmed, aside from the earlier announced attendance of Fabien Potencier and Dustin Whittle. The business day has been confirmed though. Also confirmed is the fact that all participants of the technology days will receive a copy of The Definitive Guide To Symfony. This book by Apress was written by Fabien and Francois, and is both a great learning book and a great reference for experienced Symfony developers (but I don't have to tell you that of course ;) ) And, I'm very proud to let you know SymfonyCamp is sponsored by none other than Sensio themselves! People who have registered can also register their attendance at upcoming.org athttp://upcoming.yahoo.com/event/20/ Anyway, have a look atwww.symfonycamp.com... I hope to see you there! Stefan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine::ATTR_COLL_KEY not automatically set.
My Problem with sfDoctrine still exists, but my confusion got to a higher level. ;) $this-getUser()-getGuardUser()-getUserVitas(); Gives me a list of all Vitas, which is cool. But the indices are not the ids, but numbered starting by 0. If I do a sfDoctrine::getTable('UserVita')- setAttribute(Doctrine::ATTR_COLL_KEY, 'id'); $this-getUser()-getGuardUser()-getUserVitas(); everything is fine. Why isn't the key automatically set to 'id' ? Is this a bug, or a error in my configuration? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: access myUser.class.php from a template/layout
In your case: $sf_user-getTestData(); On 13 Aug., 21:22, scube [EMAIL PROTECTED] wrote: Hi, my goal is to access the content of myUser.class.php (located in the lib dir) from a template or layout. But how can I do that? My myUser.class.php file: class myUser extends sfBasicSecurityUser { public function getTestData() { return test-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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine schema questions
The counterpart is for defining a has-one relationship. You use it for many-to-many relationships (Example from the wiki): BookReview: tableName: book_reviews columns: review: string #no length param will default to max size allowed by db reviewed_book_id: foreignClass: Publication localName: reviewers counterpart: reviewers_id # counterpart is used for a hasOne relationship reviewers_id: foreignClass: User localName: reviewed_books counterpart: reviewed_book_id # see above counterpart On 10 Aug., 12:32, gimler [EMAIL PROTECTED] wrote: ok thanks another question is: what is the counterpart? greetings Gordon On 10 Aug., 12:28, Sebastian Schulze [EMAIL PROTECTED] wrote: 1. how can i define a lognvarchar or text field? #description: # type: ??? This depends on the length you supply. e.g. type: string(250) creates a VARCHAR(250) type: string creates a TEXT Field sorry, got now answer to your second question... Sebastian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine schema questions
1. how can i define a lognvarchar or text field? #description: # type: ??? This depends on the length you supply. e.g. type: string(250) creates a VARCHAR(250) type: string creates a TEXT Field sorry, got now answer to your second question... Sebastian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Problem with Doctrine_Collection-get()
Hi! I probably have a (Understanding-) Problem with sfDoctrine: I want to get all the documents, of one user. $this-getUser()-getGuardUser()-getUserDocuments()-get(10) This works, but not as I expected. It doesn't give me the Document with the id 10 (if its linked to the user), but the 10th document that is linked to the user. According to the Doctrine-Api it returns a record for given key. Is this behaviour correct? I would appreciate any help - thanks a lot! :) Sebastian = My YAML: Document: tableName: document columns: ** snip ** user: foreignClass: sfGuardUser foreignName: User localName: UserDocuments required: true foreignReference: id ** snap ** --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Backend Translation interface with sfDoctrine
Hey everyone. I am currently working on a Backend App with datasets that have to be translated into 2 (eventually 3 to 4) languages. So this has to be done dynamically. The ideal solution for me would be two input fields, like source (disabled, de_DE) and translation (enabled, eg. en_US). Is there a any option for the sfDoctrineAdminGenerator to generate such fields? Or a backend helper for multilanguage-inputs? Anything like that? The Solution in the wiki: http://trac.symfony-project.com/trac/wiki/HowToHandlei18nDbFieldsWithAdminGeneratorMethod2 doesn't fit very well for me, because it would mean that I have to change every single model... Am I completely in the dark, or is there no better solution? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---