Re: [symfony-users] Symfony task with progress bar
just use `tput cols`. works on os x and linux and probably anything with ncurses installed. you can also use the ncurses php extension but there is a 99% chance it won't be available. On May 20, 2010, at 10:34 AM, Eno wrote: On Thu, 20 May 2010, Ben Lancaster wrote: Last thing - anyone know how I can auto-set the width of the progress bar from the width of the terminal? That probably depends on the OS you're running on. On Linux/UNIX you could use the stty command and parse the output to grab that info: $ stty -a speed 38400 baud; rows 32; columns 270; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = undef; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke It can also output in a more compact format: $ stty -g 2b00:3:b0f:5cf:3:1c:7f:15:4:1:ff:0:ff:0:17:12:1a:11:13:16:f:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 but I dont know what the fields are in this format. This seems to work on Mac OS too but the compact format is different (the usual BSDism kick in on Mac). -- -- 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 -- Jacob Coby -- 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: Multiple sfActions to solve scalability problems. It's Possible?
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 -- Welington da Veiga Silva --- Há pessoas que transformam o sol numa simples mancha amarela, mas há aquelas que fazem de uma simples mancha amarela o próprio sol. ( Pablo Picasso ) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Jacob Coby -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] Re: Multiple sfActions to solve scalability problems. It's Possible?
without knowing more about what you're trying to do, routing appears to be the proper approach to what you're trying to do. there is no reason to instantiate actions from inside an action (that's what forward() is for anyways). On Apr 7, 2010, at 10:54 AM, Welington Veiga wrote: Thak you! It was very usefull! Other solution is implement a subclass of sfActions and in preExecute() method instanciate another sfActions class, configuring it... etc But it is reivent the wheel and loss o lot of pre-configurated issues in symfony structure. 'routing' sounds better. 2010/4/7 Jacob Coby jc...@portallabs.com try something like: myRoute: url: company/:module/:action/* requirements: { module: employers|customers|group } requirements is a pcre regex. On Apr 7, 2010, at 10:35 AM, Welington Veiga wrote: well... if I use the routing: myRoute: url: company/:module/:action/* I can use all modules in this pattern, but I want use just three [employers, customers, group] inside company. Its Possible? How can I configure this? 2010/4/7 Stéphane stephane.er...@gmail.com Hi, like: company/customer/new Is this a route or a module/action breakdown ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Apr 7, 2010 at 4:15 PM, Welington Veiga welington.ve...@gmail.com wrote: This is my problem! I need a third deep level to keep a good design. like: company/customer/new but in the symfony structure company is not a application. It's authentication, credentials, user etc are common. I also have: calendar/tasks/view/5 A beautifully solution maybe is: company/ ..actions/ customerActions.class.php employeersActions.class.php groupsActions.class.php calendar/ ... news/ ... Thank u. 2010/4/7 Daniel Lohse annismcken...@googlemail.com Too many actions are often a sign of code duplication and/or shortcomings in separation of concerns. You want fat models and slim controllers. Your controller is either doing too much or you are putting actions into modules where they don't belong or fit. Care to share all your action names (just the names of the methods) in a particular big actions class? Also, a bit of code for each would also help. More than 15 actions per module are generally not advisable, you'll need to break things down when you're pushing that limit. Cheers, Daniel On 07.04.2010, at 14:25, Welington Veiga wrote: In this doc page chapter 6 are an alternative way to write action: one per file. I think this isn't the best solution. I can add a new deep level in the route and use the parameter to decide what method must be invoked on three or four sfAction classes but I will need to rewrite secure issues. Anyone can help me? 2010/4/7 Welington Veiga welington.ve...@gmail.com I have a problem with a big application what we are writing under symfony. It's our first contact with this fantastic framework, but we have a lot of code in a single action file. Our modules are big, with three crud: Like company has employers, groups and customers. All in a application. I need a new deep level. The solution, I think, is use three sfActions class for each module. But maybe you have any experience with another solution, or another pattern for this situatuation. PS: I dont know how to configure new actions under 'app/myapp/modules/ mymodule/actions' folder. -- Welington da Veiga Silva --- Há pessoas que transformam o sol numa simples mancha amarela, mas há aquelas que fazem de uma simples mancha amarela o próprio sol. ( Pablo Picasso ) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.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 -- Welington da Veiga Silva --- Há pessoas que transformam o sol numa simples mancha amarela, mas há aquelas que fazem de uma simples mancha amarela o próprio sol. ( Pablo
Re: [symfony-users] timezones, symfony 1.0 and propel
Anyone? Surely someone has implemented timezones in symfony before? On Apr 1, 2010, at 11:11 AM, Jacob Coby wrote: Has anyone successfully implemented timezone support with symfony 1.0? I store my timestamps in America/New_York but need to display them in the user's timezone. The only approach I can see that would work is adding a helper to make the temporal changes in the view or to override the getters/setters for every datetime field for every model. -- Jacob Coby -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- Jacob Coby -- 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] How to do upgrades
if you're using doctrine, migrations are part of symfony. if you're using propel, you can use the sfPropelMigrationsLight plugin from the symfony site or my fork of it that allows for out of order migrations (similar to rails) - sfPropelMigrations (http://github.com/jcoby/sfPropelMigrationsPlugin). I have not had a chance to try my plugin with sf 1.0. I would love to hear some feedback. I'm pretty sure it will error out on the pake_echo_action calls in recordMigration and unrecordMigration (http://github.com/jcoby/sfPropelMigrationsPlugin/blob/master/lib/sfMigrator.class.php#L343) On Apr 5, 2010, at 2:42 PM, Samuel Morhaim wrote: I have a question.. once I finish coding and the site goes into production, I can't rebuild the DB every time I need to add a field etc. How do people workaround this? What is the process for migrations? Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Jacob Coby -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] timezones, symfony 1.0 and propel
Has anyone successfully implemented timezone support with symfony 1.0? I store my timestamps in America/New_York but need to display them in the user's timezone. The only approach I can see that would work is adding a helper to make the temporal changes in the view or to override the getters/setters for every datetime field for every model. -- Jacob Coby -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] Any good reason to execute symfony with sudo?
I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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. -- Jacob Coby -- 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.
Re: [symfony-users] Re: strange problem with date
You need to upgrade to php 5.2. DateTime doesn't exist in php 5.1. On Dec 21, 2009, at 7:33 AM, mirfan wrote: i have installed the latest version of pear but it still give me the same problem cache folder has 777 permission, if this is not right then what it should be? these are ther versions PEAR Version: 1.4.9 PHP Version: 5.1.6 -- 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. -- Jacob Coby -- 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.
Re: [symfony-users] Symfony developer per hour salary
On Dec 14, 2009, at 11:03 AM, DEEPAK BHATIA wrote: When I was in US gas was $1.5 per Gallon, now it is $4 per Gallon. Other things must be costly. So a 100,000 USD per annum should be possible which comes around $50 per hour (2000 hours per annum). No, it's not. I paid $2.79 last week for premium. Regular is around $2.54. Maybe it's $4.00 in California, but not on the east coast. This country would grind to a halt if gas were $4 or more nationally. I've seen rates from $10 to over $100 per hour (USD) for contract developers. It depends on your experience, your location, and how hungry you are. Having a good portfolio and a good resume or CV and stellar references helps you immensely. A good rule of thumb in the US is to take whatever your salary rate would be (per hour) and multiply by around 2 (1.5 - 2) to cover expenses and taxes. Even with the higher hourly rate, your employer is getting a good deal over a salaried employee once they consider the actual costs of having an employee. 2009/12/14 Łukasz Wojciechowski lukasz.wojciechow...@ngsoft.pl Eno You are right. It is obvious that saving money is the reason here. For me those are valuable informations - thanks everyone. Maybe we will hear from someone in exactly same position as my Customer. -- Best regards Lukasz Wojciechowski New Generation Software +48 602 214 629 http://www.ngsoft.pl 2009/12/14 Benoit Montuelle benoit.montue...@gmail.com: This is true, but depends on context and client. For instance here in France, for a contract employee it may be around 20€ per hour, once charges and taxes deducted. A freelancer should charge at least twice to cover taxes, so almost 50USD. Le 14 déc. 2009 à 15:21, Eno symb...@gmail.com a écrit : On Sun, 13 Dec 2009, [ISO-8859-2] £ukasz Wojciechowski wrote: I know the value of my work but this is my first job outside of my country so I have no idea what is per hour rating (in USD) for such scenario. Two additional points: 1) The only reason to outsource to developer's in another country would be to save money. 2) Canadian salaries are lower than the US and taxes are higher. -- -- 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 . -- 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. -- 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. -- 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. -- Jacob Coby -- 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: Symfony 1.0 and large numbers of deletes
$c = new Criteria(); $c-add(your delete criteria); EventPeer::doDelete($c); That will delete the rows according to your criteria without hydrating objects into memory. On Oct 22, 2009, at 12:24 PM, fbg wrote: Suppose that I have a symfony 1.0 app and perform a propel query, work with the results a bit, and then wish to delete the underlying database records (for example, to scrub a log table, send out any needed alert emails, and roll the log events into a flat file to keep the DB fresh). What is the most efficient way to tell sf to do the delete? eg: ...criteria...LIMIT 1000 OFFSET N ... $results = doSelect (or doSelectRs) ... foreach($results as $result) { // process the result then: $result-delete(); } OR, is there a $results-delete(); if so, are they equivalent? What I'm wondering about is whether sf will generate 1000 DELETE SQL requests, or whether there will be something else like DELETE ... WHERE id IN (i1,i2,...,i1000). I assume the latter would be much more efficient. Comments? Thanks in advance for any advice. -- Jacob Coby --~--~-~--~~~---~--~~ 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.0 and large numbers of deletes
You can pass an array of IDs to EventPeer::doDelete() instead of a Criteria object. It'll translate that to a DELETE FROM .. WHERE ID IN (...) query. All of this is in the base peer class for your object in the lib/model/om dir. On Oct 22, 2009, at 3:18 PM, fbg wrote: Thanks Jacob. In my case I will have already hydrated the objects and need to use them before the delete anyway. My question relates to how best to do the delete after that. i.e. rather than have 1000 lines like this: DELETE FROM mytable WHERE id=1 DELETE FROM mytable WHERE id=2 etc... DELETE FROM mytable WHERE id=1000 I'd rather generate something like DELETE FROM mytable WHERE id IN(1,2,1000) At least I assume that will be more efficient. Right? Per your suggestion I suppose can do this, but see below: code $c = new Criteria(); $c-add(your criteria); $results = doSelect($c); // now I process the results for a while EventPeer::doDelete($c); /code But I assume that the criteria $c could imply different rows in the table if records were inserted by someone else between the doSelect and the doDelete. So I guess I could also do this: code $c = new Criteria(); $c-add(your criteria); $results = doSelect($c); // now I process the results for a while // then I build a big string '(id1, id2, ..., id1000)' -- with $result['ID'] inserted // then: $c = new Criteria(); $c-add(myClassPeer::ID, $list, Criteria::IN); EventPeer::doDelete($c); /code Is that the best way? Or, does the result set actually have a mass- delete method? $result-delete(). Sorry for being lazy and not slogging thru the code to figure that out but thought I'd ask to see if someone knows the answer. On Oct 22, 1:17 pm, Jacob Coby jc...@portallabs.com wrote: $c = new Criteria(); $c-add(your delete criteria); EventPeer::doDelete($c); That will delete the rows according to your criteria without hydrating objects into memory. On Oct 22, 2009, at 12:24 PM, fbg wrote: Suppose that I have a symfony 1.0 app and perform a propel query, work with the results a bit, and then wish to delete the underlying database records (for example, to scrub a log table, send out any needed alert emails, and roll the log events into a flat file to keep the DB fresh). What is the most efficient way to tell sf to do the delete? eg: ...criteria...LIMIT 1000 OFFSET N ... $results = doSelect (or doSelectRs) ... foreach($results as $result) { // process the result then: $result-delete(); } OR, is there a $results-delete(); if so, are they equivalent? What I'm wondering about is whether sf will generate 1000 DELETE SQL requests, or whether there will be something else like DELETE ... WHERE id IN (i1,i2,...,i1000). I assume the latter would be much more efficient. Comments? Thanks in advance for any advice. -- Jacob Coby -- Jacob Coby --~--~-~--~~~---~--~~ 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] Optimizing Lots of Routes
Hi all, I've been working on a symfony 1.2 app that includes a CMS. Unfortunately, the CMS system generates approximately 3000 routes programmatically across 4 different module/actions. Unfortunately there is no sort of pattern to the routes and the cms uses the routing system to generate the final url. For example, cms/index?id=23 would get translated to /about_us. And cms/subpage?id=56 would get translated to /another_page. This generates a 6.5mb routing cache which expands to well over 64mb once running in PHP (I had to set the memory limit to 128mb just to get it running). With a small EC2 instance (256mb), the site immediately starts to eat up the 200mb free and marches towards the swap of death. I tried writing a custom routing object that would query the database to do the routing, but it doesn't solve the problem of needing to generate the urls from page IDs. Does anyone have suggestions on how to get this routing system under control? Thanks, -- Jacob Coby --~--~-~--~~~---~--~~ 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: Optimizing Lots of Routes
On Oct 19, 2009, at 6:19 PM, Eno wrote: On Mon, 19 Oct 2009, Jacob Coby wrote: I've been working on a symfony 1.2 app that includes a CMS. Unfortunately, the CMS system generates approximately 3000 routes programmatically across 4 different module/actions. Unfortunately there is no sort of pattern to the routes and the cms uses the routing system to generate the final url. For example, cms/index?id=23 would get translated to /about_us. And cms/subpage?id=56 would get translated to /another_page. Sounds like a bad design. Using slugs would be a good way to refactor that stuff to use just a couple (one?) routing rule. There are a plenty of examples of this in the docs. It is a bad design, no doubt about it. I had no part of the design or implementation, nor do I know the history of why it was been implemented this way. I've only been tasked with deploying it and making sure it can stand up to the projected load. I'm quite familiar with how symfony routing works. I've been using symfony professionally since 0.63. I'm trying to find any solution other than going through and redoing all of the url_for and link_to calls to support slugs. -- -- Jacob Coby --~--~-~--~~~---~--~~ 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: One Application, Several Domains, Shared session
Cookies can't be shared across domains (only subdomains). You'll have to pass a session id between the domains. I don't know if the standard symfony session handler can handle picking up an existing session based on a url param or if you'll have to use a custom session handler. On Oct 16, 2009, at 10:31 AM, kev wrote: @Alexandre : this seems to be for ONE domain and several subdomains... this is not what i am trying to do! Thanks anyway. On Oct 16, 12:08 pm, Alexandre SALOME alexandre.sal...@gmail.com wrote: http://www.lmgtfy.com/?q=share+session+subdomains+symfonyl=1 The first result 2009/10/16 kev kbs...@gmail.com Hi all, I checked on the forums and in this list, but failed to find any post presenting my current issue! We have several domains using the same application (the user culture depends of the domain name currently being browsed), and we would like to share sessions when the end user jumps from one domain to another. Ideally we would like the session id NOT to appear in the url... Do you think this is doable? If so, any hint on how you would do that?! Thanks! -- Alexandre Salomé -- alexandre.sal...@gmail.com -- Jacob Coby --~--~-~--~~~---~--~~ 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: propel-build-model symfony 1.0 and longvarchar
that represents a row from the \'blog_article\' table.\n *\n * \n *\n * @packagelib.model.om\n */\nabstract class BaseArticle extends BaseObject implements Persistent {\n\n\n \t/**\n\t * The Peer class.\n\t * Instance provides a convenient way of calling static methods on a class\n\t * that calling code may not be able to identify.\n\t * @varArticlePeer\n\t */\n \tprotected static $peer;\n\n\n\t/**\n\t * The value for the id field.\n\t * @varint\n\t */\n\tprote...') /Users/cirpo/Sites/ newSite/lib/vendor/symfony/lib/addon/propel/builder/ SfObjectBuilder.php:54 PHP 35. PHP5BasicObjectBuilder-addClassBody($script = '?php\n\n/** \n * Base class that represents a row from the \'blog_article\' table.\n *\n * \n *\n * @packagelib.model.om\n */\nabstract class BaseArticle extends BaseObject implements Persistent {\n\n\n \t/**\n\t * The Peer class.\n\t * Instance provides a convenient way of calling static methods on a class\n\t * that calling code may not be able to identify.\n\t * @varArticlePeer\n\t */\n \tprotected static $peer;\n\n\n\t/**\n\t * The value for the id field.\n\t * @varint\n\t */\n\tprote...') /Users/cirpo/Sites/ newSite/lib/vendor/symfony/lib/vendor/propel-generator/classes/ propel/engine/builder/om/php5/PHP5ComplexObjectBuilder.php:73 PHP 36. PHP5BasicObjectBuilder-addHydrate($script = '?php\n\n/** \n * Base class that represents a row from the \'blog_article\' table.\n *\n * \n *\n * @packagelib.model.om\n */\nabstract class BaseArticle extends BaseObject implements Persistent {\n\n\n \t/**\n\t * The Peer class.\n\t * Instance provides a convenient way of calling static methods on a class\n\t * that calling code may not be able to identify.\n\t * @varArticlePeer\n\t */\n \tprotected static $peer;\n\n\n\t/**\n\t * The value for the id field.\n\t * @varint\n\t */\n\tprote...') /Users/cirpo/Sites/ newSite/lib/vendor/symfony/lib/vendor/propel-generator/classes/ propel/engine/builder/om/php5/PHP5BasicObjectBuilder.php:171 PHP 37. CreoleTypes::getAffix($creoleType = NULL) /Users/cirpo/ Sites/newSite/lib/vendor/symfony/lib/vendor/propel-generator/classes/ propel/engine/builder/om/php5/PHP5BasicObjectBuilder.php:693 thanks, cirpo -- Jacob Coby --~--~-~--~~~---~--~~ 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: the jquery date widget is killing a page in IE 7
you're modifying the DOM before IE is ready. it's hard to recommend a fix without being able to see the generated code, but generally you can't touch the DOM until the onready event fires: $(document).ready (function() { call_dom_modifying_functions(); }); On Sep 21, 2009, at 11:48 PM, Michael J. Stuart wrote: I am using sfWidgetFormJQueryDate for a date widget on a form. This form works well in FireFox, Safari and Google Chrome. However, the page won't load in IE 7 (have not yet checked in IE 8). The page begins to load, and gets to the point where the date widget is, and then IE 7 gives a pop up window that says Page cannot load, Operation Aborted. And then the browser goes white. Can anyone think why this would happen? Or how to debug this? (The page is here, if you anyone is interested: http://www.theesociety.org/content/newEvent . You'd have to log in.) -- Jacob Coby --~--~-~--~~~---~--~~ 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: yml parse error on running upgrade1.3
Remove the true on the required: lines. Happens every time after upgrading 1.0 projects. On Sep 16, 2009, at 11:48 PM, layanto wrote: I tried to upgrade my 1.2 project to use symfony 1.3 (latest checkout - 16/09/09). I am aware of the new yml specification and have modified my yml to use true/false instead of on/off. However, the upgrade1.3 program encountered a problem parsing validation yml (of sfDoctrineApplyPlugin) with the following error: Unable to parse file MyProject/plugins/sfDoctrineApplyPlugin/modules/ sfApply/validate/apply.yml: Unable to parse line 9 ( msg: You must choose a username. Example: bob523). I couldn't find anything wrong with the yml file (pasted below). Please help!!! fillin: enabled: true param: name: sf_apply_apply fields: username: required: true msg: You must choose a username. Example: bob523 sfStringValidator: min: 4 min_error: Your username must be at least four characters long. max: 16 max_error: Your username must be 16 characters or less. email: required: true msg: You must provide a valid and complete email address in order to participate. Example: exam...@example.com sfEmailValidator: strict: true email_error: You must provide a valid and complete email address in order to participate. Example: exam...@example.com password: required: true msg: You must choose a password. sfStringValidator: min: 6 min_error: Your password must be at least six characters long. max: 128 max_error: Your password must be 128 characters or less. fullname: required: true msg: You must provide your full name so that email can be successfully delivered. sfStringValidator: min: 6 min_error: Your full name must be at least six characters long. max: 128 max_error: Your full name must be 128 characters or less. validators: emailValidator: class: sfEmailValidator strict: true -- Jacob Coby --~--~-~--~~~---~--~~ 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: Performance optimization!HELP!!
On Sep 17, 2009, at 7:47 AM, Gareth McCumskey wrote: 3. Minimise the number of queries with joins I would be careful about this as we have found a few times now that reducing a join to multiple queries actually increases performance. This is very much a case by case basis. That's always going to be the case if you are replacing joins with multiple queries that does the same thing. You're replacing in-memory and highly optimized database code with multiple trips over the wire (even localhost has a delay) plus query parsing plus result set parsing plus object hydration. Reducing joins only works in a handful of special cases like: 1) denormalize the data so you don't need to join to return the same result set, 2) if you can get the same result set by skipping a join, 3) you can eliminate some data from the result set to remove a join. -- Jacob Coby --~--~-~--~~~---~--~~ 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 aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?
On Sep 8, 2009, at 9:52 AM, Szabolcs Heilig wrote: After reading that i'm imagining a helper system where symfony form helpers, link helpers, etc will be in helper classes. These classes can be inherited by AJAX, Lightbox link helper classes and use and extend codebase of the basic link helpers, etc. In this case you only have to change the class before the link_to() helper method to open your link in a lightbox instead. I think it will be a big win against the loss of longer helper calls in the template code. How is changing sfUrl::link_to() to myUrl::link_to() any better than changing link_to() to my_link_to()? It's the same amount of work and the same amount of testing. It's just that one has been wrapped in class boilerplate to namespace it. Helpers are part of the view, and are by definition orthogonal to the controller. They will need to go through the same gyrations to access request/response objects or the context or the controller whether in a class or not. Changing helpers to be based on classes has been brought up several times in the past. I've not seen any compelling arguments as to /why/ using classes for helpers is better. It just means more typing. -- Jacob Coby --~--~-~--~~~---~--~~ 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 do I find someone to work on a Symfony site for me?
Also, http://trac.symfony-project.org/wiki/DevelopersForHire I'm on that list along with lots of other people :) On Sep 4, 2009, at 9:43 AM, Mr_chon wrote: Hi, I'd say I'd love to do it if I didn't have a dayjob... Anyways, there's this site that could help you : http://symfonians.net/jobs Good luck :) On Sep 4, 11:54 am, Tony C goldmanme...@gmail.com wrote: I recently had a site built by someone who used Symfony. More work needs to be done and I need someone who is familiar with it. Can you tell me where to find developers who know it or where I can post my project, etc? Thanks a lot. I need someone fluent in English. -- Jacob Coby --~--~-~--~~~---~--~~ 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: Preferred Linux servers for symfony?
Snow Leopard includes 5.3 with pdo and gd included - it should work great for sf development out of the box. Leopard includes 5.2 but pdo is missing mysql and it's impossible to get gd to work. I use XAMPP for development on the mac. The latest XAMPP version uses PHP 5.3 - I recommend using an older version that includes 5.2 unless your server has 5.3 installed. MAMP (pro) has too many bugs that I couldn't work around (file uploads don't work among other little ones). I see they finally released an update, maybe it fixes my problems with it? The GUI site setup is nice, but it's trivial to edit the vhost setup for XAMPP and add an / etc/hosts entry. On Sep 4, 2009, at 11:09 AM, Pablo Godel wrote: I heard Snow Leopard includes PHP 5.3 Another good option for symfony development platform is using Zend Server which is available for Mac, Linux and Windows and includes the latest versions of PHP, Mysql, etc. Great package! Pablo On Fri, Sep 4, 2009 at 9:48 AM, Tom Boutellt...@punkave.com wrote: [Moving this thread to symfony-users as it does not belong in -devs] Actually, CentOS and Red Hat Enterprise Linux do not have PHP 5.2.x yet, so it is fair to say they are actively bad choices for Symfony. You have to take on maintenance of PHP via some less official repository or build it yourself, and other distributions don't require you to do that. So don't go there. Ubuntu, on the other hand, is a very good choice for Symfony. A very recent PHP 5.2.x is standard, APC has been compiled and is easily enabled... there's even an improved mechanism for cleaning up stale PHP sessions which you don't have to do anything special to turn on. So I recommend it. As for development itself, develop on a Mac for better compatibility and fewer surprises when you sync your code to a Unix host later. You can use MAMP or MacPorts to get a version of Apache and PHP that is good enough for the job. The standard PHP in MacOS Leopard won't cut it (I'm not sure whether it's improved in Snow Leopard). On Fri, Sep 4, 2009 at 9:36 AM, Pablo Godelpgo...@gmail.com wrote: Hi Bob, This is a question that should be posted on the users list, not in the devs list which is only used for development OF symfony. In reality, symfony runs on any Linux distro (or OS for that matter) that has an acceptable installation of PHP. I would recommend you use the distro that your are most comfortable with. regards, Pablo On Thu, Sep 3, 2009 at 11:05 PM, Robert Acetibob...@cogeco.ca wrote: Please let me know which 'nix you are using to develop in symfony and pros cons discovered in installation of symfony. Thank you. Bob -- Pablo Godel ServerGrove Networks http://servergrove.com/ -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- Pablo Godel ServerGrove Networks http://servergrove.com/ -- Jacob Coby --~--~-~--~~~---~--~~ 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: Debian or Ubuntu or RHEL or centOS or 'nix
On Sep 4, 2009, at 11:20 AM, ColinFine wrote: On Sep 4, 4:01 am, Robert Aceti bob...@cogeco.ca wrote: Which Linux server is best tuned (less bugs from server os) to develop in symfony? I don't think there is an answer. Particular versions of particular distributions might have particular bugs which might impact something you do in Symfony, but all those 'mights' in there make it unlikely there's a general answer. Certainly I have developed in Fedora 8 and 10, and then released on FreeBSD, which is where my colleagues are developing; and I have never noticed a problem which I think of as an OS problem. I've run symfony on: OS X 10.5 and 10.6, RHEL/CentOS 5.2 and 5.3, Ubuntu 8 and 9, Fedora 10 and probably a few other distros that I can't remember right now. Only OS X 10.5 has issues because of PDO (not an issue for sf 1.0-1.1 apps). RHEL/CentOS need 3rd party PHP 5.2 packages but those are easily found. -- Jacob Coby --~--~-~--~~~---~--~~ 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: xampp vs symfony
I typically use vhosts and add the various sites to the XAMPP httpd- vhosts.conf file. So, for you: VirtualHost *:80 ServerAdmin webmas...@localhost.com DocumentRoot /Users/jcoby/src/jobeet/web ServerName localhost ServerAlias jobeet ErrorLog logs/jobeet-error_log CustomLog logs/jobeet-access_log common /VirtualHost And then in /etc/hosts I would put: 127.0.0.1 jobeet You may also need to edit httpd.conf to include the vhosts.conf and to turn on name based virtual hosts. As for the database, xampp has its own MySQL install as part of the package. You can point phpMyAdmin at that install or you can ignore MySQL included with XAMPP and use your existing install. If you want to use your old database with the XAMPP sites, add the unix_socket param to your DSN in your databases.yml: dsn: 'mysql:host=localhost;dbname=jobeet_dev;unix_socket=/tmp/ mysql.sock' On Aug 2, 2009, at 9:43 AM, Charles W Downing wrote: People, I am running Ubuntu 8.04 KDE. I have installed xampp, instead of separate apps. I have several important MySQL databases already on my system, which I access with phpmyadmin. When I try to follow the book, Practical symfony, I can access the jobeet database and project in Firefox 3.x, but it cuts off my access to my other databases. I have tried putting the jobeet files as a part of /opt/lampp/ htdocs, as well as in my home directory in sfprojects/jobeet. Neither case solves the problem. What am I missing? -- Chuck Downing Highlands Ranch, Colorado USA -- Jacob Coby --~--~-~--~~~---~--~~ 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: Problem Symfony Ubuntu 8.04
./symfony fix-perms you might have to run it as root. On Jul 28, 2009, at 1:35 PM, juaninf wrote: nothing On 28 jul, 11:54, mintao florian.fack...@mintao.com wrote: Try: chmod 777 /home/juan/webs/fid/cache Best Florian On 28 Jul., 18:41, juaninf juan...@gmail.com wrote: Hi everyone I am migrating my symfony project to Ubuntu 8.04 but when I want see to browser obtained the tree of directory where are all my project, and when I entered to web folder I obtained the following error: Fatal error: Uncaught exception 'sfCacheException' with message 'Failed to make cache directory /home/juan/webs/fid/cache/frontend/ prod/config while generating cache for configuration file config/ config_handlers.yml.' in /home/juan/webs/fid/lib/vendor/symfony/ lib/ config/sfConfigCache.class.php:337 Stack trace: #0 /home/juan/webs/ fid/ lib/vendor/symfony/lib/config/sfConfigCache.class.php(107): sfConfigCache-writeCacheFile('config/config_h...', '/home/juan/ webs...', '?php?// auto-g...') #1 /home/juan/webs/fid/lib/vendor/ symfony/lib/config/sfConfigCache.class.php(194): sfConfigCache- callHandler('config/config_h...', Array, '/home/juan/webs...') #2 / home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(276): sfConfigCache-checkConfig('config/ config_h...') #3 /home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(54): sfConfigCache-loadConfigHandlers() #4 / home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(194): sfConfigCache-callHandler('config/ core_com...', in /home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php on line 337 please help me -- Jacob Coby --~--~-~--~~~---~--~~ 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: Problem Symfony Ubuntu 8.04
looks like you need to change your RewriteBase in the .htaccess or change your DocumentRoot to be the project root/web dir instead of project root/. On Jul 28, 2009, at 1:45 PM, juaninf wrote: sorry I can see the http://localhost/web/frontend_dev.php/, but I cannot the css :( On 28 jul, 11:54, mintao florian.fack...@mintao.com wrote: Try: chmod 777 /home/juan/webs/fid/cache Best Florian On 28 Jul., 18:41, juaninf juan...@gmail.com wrote: Hi everyone I am migrating my symfony project to Ubuntu 8.04 but when I want see to browser obtained the tree of directory where are all my project, and when I entered to web folder I obtained the following error: Fatal error: Uncaught exception 'sfCacheException' with message 'Failed to make cache directory /home/juan/webs/fid/cache/frontend/ prod/config while generating cache for configuration file config/ config_handlers.yml.' in /home/juan/webs/fid/lib/vendor/symfony/ lib/ config/sfConfigCache.class.php:337 Stack trace: #0 /home/juan/webs/ fid/ lib/vendor/symfony/lib/config/sfConfigCache.class.php(107): sfConfigCache-writeCacheFile('config/config_h...', '/home/juan/ webs...', '?php?// auto-g...') #1 /home/juan/webs/fid/lib/vendor/ symfony/lib/config/sfConfigCache.class.php(194): sfConfigCache- callHandler('config/config_h...', Array, '/home/juan/webs...') #2 / home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(276): sfConfigCache-checkConfig('config/ config_h...') #3 /home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(54): sfConfigCache-loadConfigHandlers() #4 / home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php(194): sfConfigCache-callHandler('config/ core_com...', in /home/juan/webs/fid/lib/vendor/symfony/lib/config/ sfConfigCache.class.php on line 337 please help me -- Jacob Coby --~--~-~--~~~---~--~~ 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: Timing for Registering Routes in sf1.0
I think you're approaching routing the wrong way. You should need to only register one route: /categories/:name and then in your categories controller attempt to find the category by name or forward404() if the category is not found. On Jun 19, 2009, at 2:00 PM, Richtermeister wrote: Hi all, there's one thing I'm always struggling with, and that is registering new routes dynamically in sf 1.0. For example, my current site has product categories, and I would like to add a new route for each category so that I get urls like /category1 /category2 etc. I know I can just do /categories/category1 /categories/category2 but for something this central to the site I would like to use the first solution. Now, in sf1.0 it seems the best time to add these routes would be the config.php file in the current app directory, but if I add the routes after the call to sfCore::bootstrap(), the current route will already be determined (disregarding my routed). If I try to add the routes before the call, symfony has not been initialized enough to understand the command. How should I go about adding those routes? Please keep in mind that I need to use the ORM as well, in order to get a list of the current categories.. Thanks for your help, and have a great day. Daniel -- Jacob Coby --~--~-~--~~~---~--~~ 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: anybody help with 1.0
On May 29, 2009, at 10:23 AM, Eno wrote: On Fri, 29 May 2009, belbek wrote: is there a way to get the Request Object in validate/ .yml file in symfony 1.0 a need to change the required: option depending on incoming request You can put PHP code inside YAML files. The PHP code will be parsed and executed before the YAML parser. That's the wrong place to do what he's trying to do. The best place is to add a validateAction() (where Action is whatever the action is called) method to the controller and have it clear the required error if the request condition is met. Maybe that helps? -- -- Jacob Coby --~--~-~--~~~---~--~~ 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] Getting sfThumbnailPlugin to behave
I'm using sfThumbnailPlugin for sf 1.1 with the Image Magick adapter and it works. It just doesn't work how I want: I have an original image that's uses the 16:9 aspect ratio. I need to generate several images that aren't in 16:9 and I need it to generate thumbnails that are the size that I specify. I'd like for it to shave the sides or the bottom if the generated image would be too big. For example: original: 640x360 med thumb: 150x110 when i generate the 150x110 image, i need it to be exactly 150x110 and just shave off the sides to make up the difference. is this possible? i've tried pretty much every combination of $scale, $inflate, shave_all, shave_bottom that I can think of and none of them works. I'm pretty sure that shave_all doesn't work at all. thanks, -- Jacob Coby --~--~-~--~~~---~--~~ 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: sfGuard problem
If you're using the branches/1.1 svn version of symfony, propel-based tasks are broken for some reason. switch to tags/RELEASE_1_1_7 On May 24, 2009, at 1:54 AM, Alexandru-Emil Lupu wrote: symfony cc ? On Sun, May 24, 2009 at 6:58 AM, murthy murthy_vija...@yahoo.com wrote: Hello, I am using Propel ORM. On May 20, 5:11 pm, Jan De Coster j...@we-create.be wrote: What ORM are you using ? Kr, -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com ] Namens murthy Verzonden: woensdag 20 mei 2009 13:58 Aan: symfony users Onderwerp: [symfony-users]sfGuardproblem When I try to do symfony propel:build-model after installing the sfGuardplugin, I get the error, Class 'sfPropelBaseTask' not found What is the reason?. Please provide me solution. I searched on Internet but no use. -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- Jacob Coby --~--~-~--~~~---~--~~ 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: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1
On May 18, 2009, at 5:34 PM, Lawrence wrote: So there's been no software updates? What's weird is, on most platforms, the CGI binary is called php-cgi and the command-line is called just php. Well, I don't know. We keep the Symfony project in Subversion, but we don't keep the whole server in Subversion, so there could have been updates outside of the Symfony project. For that matter, if someone edited any of the core Symfony files, that too would not show up in Subversion. it's not a code issue. your php cli binary is really a cgi-fcgi binary. CGI requires at least the Content-type header from the binary so that's why you're seeing it output. $ file /usr/bin/php /usr/bin/php: symbolic link to `/ramdisk/bin/php5' $ file /ramdisk/bin/php5 /ramdisk/bin/php5: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped what else is in /ramdisk/bin/php*? you might want to see what the configure statement looked like (php -i should report it at the top of its output). it's possible that someone built the cgi binary as the cli or vice-versa. side note: ramdisks are usually a waste of time at best. or a waste of ram at worst. especially for binaries. -- Jacob Coby --~--~-~--~~~---~--~~ 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: Remove js and css from view?
$this-getResponse()-removeJavascript() and removeStylesheet(). Or put a '-' in front of the javascript and css files you want to omit in your view.yml for that action. There might be a better way but it's hard to tell what you're trying to accomplish from your email. On Apr 29, 2009, at 10:02 AM, Mark Smith wrote: I don't want to use my layout for one of my actions. I am doing $this- setLayout(false) in the action. And that has stopped it from parsing layout.php However all my style sheets and javascripts are still being added. How do I stop this? Thanks for any help. -- Jacob Coby --~--~-~--~~~---~--~~ 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: Remove js and css from view?
On Apr 29, 2009, at 10:25 AM, Mark Smith wrote: Thanks both for your replies. To answer your question I am trying to write an action to make looking up help content easier. The plan is to have a bunch of HTML fragments in static files to allow looking up help to be displayed in context, either as ajax tooltips, or popups. For both of these methods the css that is on the main template will mess it up. This is the code I have so far. Am I on the right track or is there a better way to accomplish this? When called from an ajax context, symfony will automatically remove all js, css, and layout. You can also use $request- isXmlHttpRequest() to see if you are running in an ajax context or not. Thanks ?php /** * showHelp actions. * * @packagetest * @subpackage showHelp * @author Your name here * @versionSVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $ */ class showHelpActions extends sfActions { /** * Executes index action * * @param sfRequest $request A request object */ public function executeIndex(sfWebRequest $request) { $this-setLayout(false); $response=$this-getResponse(); $topic=$request-getParameter('topic'); $method=$request-getParameter('method'); // Look up topic $topics = sfYaml::load('../apps/frontend/config/topics.yml'); $file=$topics[$topic]; if(!isset($file)) { $this-forward404('Topic not found'); } $this-contents=file_get_contents('./help/'.$file); if($method=='popup') { // Use template to render as popup return; } else { // Ajax so return raw content $response-setContent($this-contents); return sfView::NONE; } return sfView::ERROR; } } On Apr 29, 3:13 pm, Jacob Coby jc...@portallabs.com wrote: $this-getResponse()-removeJavascript() and removeStylesheet(). Or put a '-' in front of the javascript and css files you want to omit in your view.yml for that action. There might be a better way but it's hard to tell what you're trying to accomplish from your email. On Apr 29, 2009, at 10:02 AM, Mark Smith wrote: I don't want to use my layout for one of my actions. I am doing $this- setLayout(false) in the action. And that has stopped it from parsing layout.php However all my style sheets and javascripts are still being added. How do I stop this? Thanks for any help. -- Jacob Coby -- Jacob Coby --~--~-~--~~~---~--~~ 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: we are going to convert a site from Propel to Doctrine. What are the pain points?
On Apr 28, 2009, at 2:27 PM, Tom Boutell wrote: One more note about writing IN clauses that everybody seems to miss... if $myids is an empty list, MySQL will produce a syntax error. Empty equals evil and scary and different is an annoying property that both MySQL and PHP tend to display in many situations. Simply skipping the IN clause completely would always match everything, when of course you should match nothing. A simple and correct workaround is to replace the entire IN clause with FALSE when the list is empty. That's because it is a syntax error according to the SQL-92 standard. As easy as it is to pick on MySQL, it isn't their fault. This is what we're stuck with in all dbms that follow SQL-92, for better or worse. 8.4 in predicate Function Specify a quantified comparison. Format in predicate ::= row value constructor [ NOT ] IN in predicate value in predicate value ::= table subquery | left paren in value list right paren in value list ::= value expression { comma value expression }... Notice how an in value list MUST start with a value expression and a value expression cannot be empty. IN (false) isn't technically the proper behavior for what you're looking for. Consider the case: SELECT true WHERE false IN (false). (Yeah it's a pathological case but something a framework would need to worry about.) You should be using IN (null) since that shouldn't match any rows with a standards-compliant DBMS. I know PostgreSQL and mysql 5 both behave correctly. -- Jacob Coby --~--~-~--~~~---~--~~ 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 know if memcache is caching
A couple more options: Start memcached in debug mode and watch the output as keys are set and retrieved. Connect to memcached using telnet (telnet localhost 11211) and type 'stats' to get some stats about the # of keys, memory used, etc. Do that a couple of times and see if the numbers change. Also, did you clear your config cache when you enabled memcache on production? On Apr 27, 2009, at 4:20 PM, meppum wrote: a few things to check: settings.yml - make sure cache: on is set under the .prod factories.yml - make sure view_cache is uncommented and set correctly (class: sfMemcacheCache, etc) cache.yml - make sure the cache.yml file exists for the module you are trying to cache. On Apr 27, 12:35 pm, HiDDeN sombrasdepa...@gmail.com wrote: How would I know if memcache is caching? I have configured mycachethrough memcache (using the sfMemcacheCache class in factories.yml), and in my development server it's noticeable that it's caching (because it's fast), but in my production server is not as fast, it seems to be processing the action each time it's called. So... how could I know it? I know the getExtendedStats gives this information, but as Symfony doescachetransparently from the user, I don't know how can I get the memcache identifier that Symfony is using... Anyone knows? -- Jacob Coby --~--~-~--~~~---~--~~ 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 Mac INSTALL
MAMP is great but beware that it does not allow exec() to work so sfThumbnail with ImageMagick is a no-go. It's a bug that I've never been able to find a fix for. All of the config vars are correct, it just won't run any program that has more than X output or something– i've never been able to find the root cause. 'php -v' works but 'ls' does not. it's really, really frustrating. On Apr 24, 2009, at 11:56 AM, Filipe Costa wrote: I use MAMP and it's the best solution for mac. On Fri, Apr 24, 2009 at 4:53 PM, Eno symb...@gmail.com wrote: On Fri, 24 Apr 2009, Atif Khan wrote: Hello there I am trying to install symfony on my MAC. I wanted to know how can I have PDO-mysql enabled with php.Does anyone have instructions how to install PHP and symfony with PDO enabled Are you on Tiger or Leopard? If you are on Tiger, you have PHP4, so no PDO. In which case you might need to use MAMP or one of the Mac package systems (Fink, DarwinPorts, etc) or built PHP5.2 from source. -- -- Jacob Coby --~--~-~--~~~---~--~~ 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: Tricky date format requirements...
On Apr 15, 2009, at 3:17 PM, Kevin Barsotti wrote: Oh, here's something weird: for some reason it is displaying a particular set of DATETIME values as 2012-31-1969. Does this value mean anything to you? 12-31-1969 is the unix epoch (timestamp 0) at a negative gmt timezone. i suspect the 20 is coming from something else (the hour maybe if you're in gmt-4). if you're using propel, you can pass in the standard date() parameters to format the returned datetime: $obj-getCreatedAt('r') would give you the created_at column in rfc 2822 format. FÁSI Gábor wrote: One of the basic symfony principles is don't reinvent the wheel, do it's highly unlikely they do something that can be done with a single php function. On Wed, Apr 15, 2009 at 19:29, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: There's no way to do this within the Symfony framework's available functionality? I really don't like stepping out of the framework unless it's absolutely necessary, once I'm working within it. Lee Bolding wrote: Why not use the built in PHP date_format function? http://uk3.php.net/manual/en/function.date-format.php On 15 Apr 2009, at 09:03, Kevin Barsotti wrote: I'm working on an application that deals with a large amount of data, including DATETIME format dates. These dates have different formatting requirements from column to column and even within the same module view, i.e. a DATETIME might need to appear as 01-20-2009 in one place and again as 1/20/09 in another, on the same page. The date format information I've managed to find for Symfony doesn't seem to encompass situations like this, and I was wondering if anyone might be able to advise me on the matter or direct me to information that could help me with my implementation. -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 -- Jacob Coby --~--~-~--~~~---~--~~ 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: Reusing code inside Schema.yml
How about using YAML references back to the original column? I don't 100% remember the syntax (or even in sfYaml supports them) but it is something like: Table A: Column 1: Column 2: col3 Column 3: Column 4: Table B: *col3 col5 Column 5: Column 6: Column 7: Tablet C: *col3 *col5 Column 8: Column 9: On Apr 8, 2009, at 6:44 PM, Geoffrey Bachelet wrote: Hi Robin, depending on what your fields are exactly, you may use doctrine templates, that is things you include in your schema through the actAs statement: TableA: actAs: [ column3 ] columns: Column 1: Column 2: Column 4: TableB: actAs: [ column3 ] columns: Column 5: Column 6: Column 7: TableC: actAs: [ column3, column5 ] columns: Column 8: Column 9: That way you can even include column specific logic in your templates if you want see http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors for more information on doctrine templates hope it helps On Wed, Apr 8, 2009 at 6:36 PM, Robin rscarri...@gmail.com wrote: Hi, I have a fairly large schema with about 90 tables. I reuse a number of columns throughout my various tables. For example: Table A: Column 1: Column 2: Column 3: Column 4: Table B: Column 3: -reused Column 5: Column 6: Column 7: Tablet C: Column 3: -reused Column 5: -reused Column 8: Column 9: Using doctrine concrete inheritance is not really an option because there are quite a few differences between the tables (just a few columns are reused) - plus I don't want the inherited table to be created. I've tried creating template files and embedding those via php in the main yml schema but that creates a lot of parsing errors. I've looked around for other solutions - but haven't found anything similar. Any thoughts or advice on how to effectively deal with this? Thanks! -- Jacob Coby --~--~-~--~~~---~--~~ 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: Admin Generator Links
On Mar 25, 2009, at 1:53 PM, Richtermeister wrote: Hey Jacob, not sure that this would work with a GET request. The admin forms are usually only bound to POST requests, so maybe try using the POST method on the links. I thought about using a POST, but I think it will save the record instead of pre-populating it. Worth a shot, thanks. I've run into this problem a couple of times now and it's really, really annoying. Daniel On Mar 25, 6:52 am, Jacob Coby jc...@portallabs.com wrote: Symfony 1.1 Is it possible to generate links that auto-fill fields for the create action in the admin generator? I have a headline_edition that has many headlines. I'd like to create a link from editing the headline_edition to the headline/create action that auto-populates the headline_edition_id pulldown. I tried putting headline[headline_edition_id]=2 in the query_string but it will not auto-populate the pulldown. Is this at all possible? Thanks, -- Jacob Coby -- Jacob Coby --~--~-~--~~~---~--~~ 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 textmate bundle
On Mar 24, 2009, at 11:04 AM, Dennis Benkert wrote: Hey all, I just wanted to inform you about the state of the bundle. I did some refactoring on the tab shortcuts and they are much shorter now. To give you a little teaser I will list some of them: 'gro' + tab: will produce $this-getRoute()-getObject(); 'gp' + tab: will produce $this-getRequest()- getRequestParameter('id'); 'rgp' + tab: will produce $request-getParameter('id'); 'user' + tab: will produce $this-getUser() Nice. Much easier to invoke. FWIW, I've mapped getRequestParameter() to ^P to match the Rails bundle. It's such a common thing that it deserves to be easy to insert. Ideally, the bundle would detect sf = 1.1 and automatically use $request-getParameter() instead of $this- getRequest()-getParameter(). There are of course even more shortcuts for different parts of symfony (actions, models, views, forms, etc.). Maybe i can give you a full list of them after the next weekend. How about some command to run sf command line from within Textmate? I'm working on this already. My idea is to execute the common symfony tasks within textmate (e.g. symfony cc) and show the output as a nice html popup. As for now you can run 'cc', '-V', 'test:all', 'propel:build-all', 'propel:build-model' and 'propel:build-forms' via the key binding 'strg' + 's'. strg? is that command? Also, a larger task might be doing an autocomplete of model getter and setter functions. I'm not sure if textmate has the functionality to do that and i'm also not sure if textmate is the right editor for this feature. :) There is a php code completion bundle already available. I've never used it though. All in all, TM just doesn't seem to have very good support for code completion. To give you all access to my working copy I'm also thinking about putting the bundle on github. Are there any concerns about this? If you have any other suggestions (even for key bindings or tab shortcuts) feel free to post them here. Please do. I'll probably send a couple of pull requests your way. The other option is to try and get it into the macromates svn repository. I don't know the process for that though. - Dennis 2009/3/24 Gareth McCumskey gmccums...@gmail.com: On Mon, Mar 23, 2009 at 8:43 PM, hsteckylf j...@jncissler.com wrote: Also, a larger task might be doing an autocomplete of model getter and setter functions. You mean just like Eclipse PDT can already do? :P -- Jacob Coby --~--~-~--~~~---~--~~ 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: Jobeet Day 7 schema.yml parse error
Try this: http://pastebin.com/m4e8bf424 JobeetCategory: actAs: Timestampable: ~ Sluggable: fields: [name] columns: name: { type: string(255), notnull: true} The {} is an inline hash, but the Sluggable line is also a hash - the yaml parser can't combine the two. On Mar 17, 2009, at 11:36 AM, Mark wrote: JobeetCategory: actAs: {Timestampable: ~ } Sluggable: fields: [name] columns: name: { type: string(255), notnull: true} -- Jacob Coby --~--~-~--~~~---~--~~ 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: Forcing arrays in YAML
Use [] or the - yaml list syntax: all: my_config: [1, 2, 3, 4] all: my_config: - 1 - 2 - 3 - 4 they're equivalent On Feb 13, 2009, at 1:41 PM, Rytis Daugirdas wrote: Hello, Is there a way to define arrays at the first node level of YAML? For example: all: my_config: ... sfConfig::get('prefix_my_config'); // would return an array I really hate to add additional levels all the time that don't serve any purpose except to force array parsing. Regards, Rytis -- Jacob Coby --~--~-~--~~~---~--~~ 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: Load balancing, Scalability Clustering...
On Jan 31, 2009, at 5:28 AM, Sumedh wrote: Very good discussion... :) Idea of creating a Ramdisk and putting cache folder on that is neat... :) Yes, neat. And totally worthless on a Linux server. Linux already uses excess ram to cache commonly accessed files. You're just taking ram away from processes that could actually use it. A good portion of it will be kept empty since you have to allocate more space than you actually use. I imagine the same applies to *BSD and probably Windows as well. Ramdisks were a great idea around MS DOS 5 when you wanted to get rid of diskette seek times. They're worthless now. Use a php opcode cache instead. You'll get a 1x better ROI on that 64mb than adding a ramdisk. Can someone point me to a resource that tells me typically what is the amount of traffic when one needs to think of clustering very seriously... You look at clustering when you can't operate on just one server anymore. There is no typical amount of traffic. It's wholly dependent on your site's performance and your (or your company's) willingness to spend money. In short, you will know when you need to start looking at it because it will be your only option. You've added an opcode cache. You've added a dedicated database box. And then upgraded it. You've upgraded your webserver. You've added memcache. You've enabled sf caching. You've optimized slow queries. You've triple-checked the database settings. You've gone over the code a dozen times to make sure you're not using a boneheaded algorithm somewhere important. You still can't keep up with traffic. It's time to start looking at scaling out. It's been my experience that you should avoid it as long as possible. Adding multiple servers that perform the same task will lead to headaches and rising expenses and will slow down development. And which are good hosting providers offering load balancing etc? On Jan 28, 6:12 am, Pablo Godel pgo...@gmail.com wrote: I was not using symfont at the site. I was trying to cache queries results and rendered templates. Pablo On Tue, Jan 27, 2009 at 7:46 PM, Lee Bolding l...@leesbian.net wrote: Memcache can cache anything - be that a DB query, an object, etc... http://code.google.com/p/memcached/wiki/FAQ#Cache_things_other_than_S ... ! On 28 Jan 2009, at 00:34, Eno wrote: On Tue, 27 Jan 2009, Pablo Godel wrote: I rememeber trying this and I did not see a noticeable improvement, I am not sure if I did something wrong. Instead, we used memcached and we did see a big difference. memcached caches your database queries, but maybe your actions were not fully cached? On a site with a lot of pages you will have a huge cache (in our case, a couple Gb of files!). -- -- Jacob Coby --~--~-~--~~~---~--~~ 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: Load balancing, Scalability Clustering...
On Jan 31, 2009, at 4:34 PM, Lee Bolding wrote: Last year (or it may be the year before now...) there were several cases of hosting centres loosing power, and the backup generators failing because they were never tested. The data center I was at was one of those. They lost power, the UPS took over like it was supposed to. The generator started and took over like it was supposed to. When it was time to switch back to mains power; *pop* the main breaker popped and power was lost. AFAIK, this was the first time the generator was tested under load. They also had the power company come out to switch meters. The meter *exploded* and sent a guy to the hospital (he was OK). Again, all servers in the center went down hard. Another data center I've used switches to the generator *every* Friday. Which is good. Bad part is they don't have enough UPS capacity for the entire data center - you have to provide your own or just accept that your servers will reboot every Friday at the same time. -- Jacob Coby --~--~-~--~~~---~--~~ 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: Freeze vs Unfreeze
You're better off putting a full symfony install in lib/vendor by using a svn:externals or just extracting the code there. You'll need to update config.php (1.0) and ProjectConfiguration.class.php (1.1) to point to the local symfony versions. On Dec 17, 2008, at 4:57 PM, Sid Bachtiar wrote: Hi all, I'm in a situation where I'm working on two different projects on two different Symfony versions (1.0 and 1.1). If I freeze both projects in their own version, should I be able to do full development? Is there gotchas with developing in frozen project? Cheers, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Jacob Coby --~--~-~--~~~---~--~~ 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: Freeze vs Unfreeze
On Dec 17, 2008, at 5:15 PM, Sid Bachtiar wrote: Cool :) If I put svn:externals, does it mean it won't get committed to the project svn? Correct. But it will get pulled and updated when you svn up or svn co unless you pass the --ignore-externals flag And by updating config.php and ProjectConfiguration.class.php I can run the websites both locally on the same machine running two different symfony versions? Yes. On Thu, Dec 18, 2008 at 11:08 AM, Jacob Coby jc...@portallabs.com wrote: You're better off putting a full symfony install in lib/vendor by using a svn:externals or just extracting the code there. You'll need to update config.php (1.0) and ProjectConfiguration.class.php (1.1) to point to the local symfony versions. On Dec 17, 2008, at 4:57 PM, Sid Bachtiar wrote: Hi all, I'm in a situation where I'm working on two different projects on two different Symfony versions (1.0 and 1.1). If I freeze both projects in their own version, should I be able to do full development? Is there gotchas with developing in frozen project? Cheers, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Jacob Coby -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Jacob Coby --~--~-~--~~~---~--~~ 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.0 projects, should upgrade?
On Nov 20, 2008, at 6:35 PM, Matías López wrote: But thinking about the new features of 1.1 and 1.2 and mostly related to the new Propel 1.3 version in the next Symfony version with PDO. Shouldn't we upgrade to 1.2 when it's ready despite we keep the forms in the compatibility mode? There is no right answer to this. If your project is mature and won't be receiving many updates in the future, leave it as is. There are some incompatibilities with 1.1, even when compat_10 is enabled. For example, routes MUST have 'module/action'. sf 1.0 would accept a url without the / in it. There are many changes to function and method signatures. There are several plugins that aren't compatible with 1.1. It isn't a matter of running the upgrade task and deploying your project unless your project is dead simple. If your project is continuing to evolve and will continue to have features added to it, upgrading to 1.1/1.2 may be worth it. Just be sure you have good tests and a proper qa environment. --~--~-~--~~~---~--~~ 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: Which IDE do you use?
There is a textmate clone for Windows called E. http://www.e-texteditor.com/ I don't know how good E is compared to TextMate, but TM is a great editor. I just wish it had Vim bindings :) On Sep 9, 2008, at 9:57 AM, Tom Haskins-Vaughan wrote: That's exactly what I thought! I wanted to use TextMate because I'd heard amazing things about it. But obviously in order to use TextMate you need a Mac. I wasn't going to shell out all that money just so that I could use one app. So I gave Vim a go. And with a few plugins, it's perfect for symfony. Easy to use, and very powerful. Anyway, just my tuppence worth :D Sumedh wrote: Thanks guys... I am not very geeky so won't be using Vim... :) ... Guys who use Eclipse PDT, could you please help me troubleshoot the issue? there is no log file generated...how can I find out problem point? I've now downloaded and configured NetBeans... On Sep 9, 6:31 pm, Eno [EMAIL PROTECTED] wrote: On Mon, 8 Sep 2008, Sumedh wrote: Thought would help to know what are people generally using for symfony projects... I am using Eclipse PDT so far...but it's crashing every hour since yesterday...so don't know what to do... :( I dont like IDEs - I use vim for everything. -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Exclude countries with select country tag
Short answer: no. http://trac.symfony-project.org/browser/branches/1.1/lib/helper/FormHelper.php#L191 line 228. You could write your own helper that only displays the countries you want. On Jul 17, 2008, at 11:32 AM, Vinch wrote: Hello, I want to do something with the select_country_tag (http:// www.symfony- project.org/api/1_1/FormHelper#method_select_country_tag) I know it's possible to select only countries you want, for example : echo select_country_tag('country', 'FR', array('countries' = array('US','FR'))); But is it possible to do the opposite : exclude countries from the list, something like : echo select_country_tag('country', 'FR', array('excludes' = array('US','FR'))); This would display all countries except France and United States. Maybe it's already possible but I can't find what I need in documentation. Any idea? Thanks! -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: How to exclude some table on propel:build-model?
You can: - change it to a text column (most of the PostgreSQL complex data types come back as a string). - delete the definition for the fronteira column. - delete the table definition (and any related foreign key definitions) from your schema definition. On Jul 14, 2008, at 1:02 PM, Rodrigo Severo wrote: Hi, How can I exclude some table from model creation? I'm trying to create the model for some new application but I'm getting the following error: [propel-om] Processing: generated-schema.xml [Exception in XML parsing] exception 'EngineException' with message 'Error setting up column 'fronteira': Cannot map unknown Propel type '' to native database type.' in /usr/share/php/symfony/plugins/sfPropelPlugin/lib/vendor/ propel-generator/classes/propel/engine/database/model/Column.php:190 Stack trace: #0 /usr/share/php/symfony/plugins/sfPropelPlugin/lib/vendor/propel- generator/classes/propel/engine/database/model/XMLElement.php(47): Column-setupObject() The 'fronteira' column is of the Multipolygon data type. This is a GIS datatype which isn't supported by Propel. This isn't much of a problem for me as I really don't need Symfony nor Propel to deal with this table. My problem is that this column is preventing the model creation by Symfony/Propel. Is there a way for me to tell Symfony/Propel not to deal with some table? Regards, Rodrigo Severo -- --- Rodrigo Severo Fábrica de Idéias SBS Quadra 2 - Bloco S - Ed. Empire Center - Sala 1.301 Brasília - DF - CEP 70070-904 Tel. (61) 3321-1357 Fax (61) 3223-1712 --- -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: admin generator cache files disappearing?
I'll try that, thanks. On Jul 8, 2008, at 7:40 AM, Haris Zukanovic' wrote: The problem is autocleaning of cache folder.. which doesn't remove correctly. This happends once in 500 times by default Add following lines in class sfGeneratorManager $cacheParameters = array('automaticCleaningFactor' = 0); $this-cache-initialize($cacheParameters); like this public function initialize() { // create cache instance $this-cache = new sfFileCache(sfConfig::get('sf_module_cache_dir')); $cacheParameters = array('automaticCleaningFactor' = 0); $this-cache-initialize($cacheParameters); $this-cache-setSuffix(''); } Jacob Coby wrote: Xavier, No, the Articles module doesn't have any PHP in the generator.yml. On Jul 7, 2008, at 4:42 PM, Xavier GORSE wrote: Did you have PHP code in your generator.yml ? I have the same trouble , and I think it's about that not solutions yet , just clear the cache after each update Xavier Gorse On Jul 7, 9:12 pm, Jacob Coby [EMAIL PROTECTED] wrote: I've got a client with an odd problem with the admin generator - files are randomly disappearing. This is on symfony 1.0.17. [Tue Jun 24 13:43:07 2008] [error] [client 24.39.130.8] PHP Fatal error: require_once() [a href='function.require'function.require/ a]: Failed opening required '/var/www/site/cache/admin/prod/ modules/ autoArticles/actions/actions.class.php' (include_path='/var/www/ site/ lib:/var/www/site:/var/www/site/apps/admin/lib:/usr/share/pear/ symfony/ vendor:/usr/share/pear') in /var/www/site/cache/admin/prod/config/ modules_articles_config_generator.yml.php on line 4 Has anyone run across anything like this before? A symfony cc; symfony fix-perms; fixes the problem for a bit, only to reappear later. Thanks, -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: admin generator cache files disappearing?
Xavier, No, the Articles module doesn't have any PHP in the generator.yml. On Jul 7, 2008, at 4:42 PM, Xavier GORSE wrote: Did you have PHP code in your generator.yml ? I have the same trouble , and I think it's about that not solutions yet , just clear the cache after each update Xavier Gorse On Jul 7, 9:12 pm, Jacob Coby [EMAIL PROTECTED] wrote: I've got a client with an odd problem with the admin generator - files are randomly disappearing. This is on symfony 1.0.17. [Tue Jun 24 13:43:07 2008] [error] [client 24.39.130.8] PHP Fatal error: require_once() [a href='function.require'function.require/ a]: Failed opening required '/var/www/site/cache/admin/prod/modules/ autoArticles/actions/actions.class.php' (include_path='/var/www/site/ lib:/var/www/site:/var/www/site/apps/admin/lib:/usr/share/pear/ symfony/ vendor:/usr/share/pear') in /var/www/site/cache/admin/prod/config/ modules_articles_config_generator.yml.php on line 4 Has anyone run across anything like this before? A symfony cc; symfony fix-perms; fixes the problem for a bit, only to reappear later. Thanks, -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Sub domains
I brought this very same question up 2 days ago. Check out the Symfonians filter source - it has what you need. http://groups.google.com/group/symfony-users/browse_thread/thread/b4852fffe4c0106c/7bb1d8d550d90307?show_docid=7bb1d8d550d90307 On Jul 3, 2008, at 12:20 PM, Damien wrote: Hi! I have a website built with symfony, organized with categories. I would like to have a subdomain for each category. For example: mymcategory.mywebsite.com I made my subdomain and catch it in my apache webserver, but I don't know how to make it available in my website. I tought to build a new route in my routing.yml like: subdomain: host: mycategory.mywebsite.com url:/ param: {module: category, action: show, name: mycategory} It doesn't work. Should I use it or make a filter ? But I don't know how to make this type of filter. I hope you will be able to help me. Thank you Damien Gougeon -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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] domain prefix handling
Hi All, I've been asked this question a few times now, so I thought I'd ask the group for their opinion. What's the proper way to handle a domain prefix? The goal is to set some sort of request variable (or perhaps set the dimension for ysfDimensionsPlugin). e.g., foo.example.com would set the $dimension='foo'; bar.example.com would set $dimension='bar', etc. Ideally, it would also have to be usable in a situation where the domain prefix isn't changeable- pass in a URL parameter instead (think a dev environment on a shared host). To me, it appears to be a job for either filters or a fixture. What's everyone else's take? -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Forms in Symfony
You can pass an array for $selected to options_for_select(). Populate that array with whatever you want to be selected initially. Or you can write 2 lines of javascript to select all on the client side. On Jun 17, 2008, at 10:42 AM, Dean Farrell wrote: Hello all, I'm not terribly familiar with Symfony, and I've inherited several Symfony based projects from my predecessor. He used the form tag and the select tag helpers, among others to generate a form that needs to be updated. I've been looking for something like a select_all_tag in the Symfony documentation, but such a thing doesn't seem to exist. I was wondering what the proper Symfony way is to preselect all fields in a select field, perhaps adding a javascript function somewhere? Thanks, Dean Farrell -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Slightly off topic, MLS feeds - was efficient capitalising
On Jun 10, 2008, at 6:29 PM, Tom Haskins-Vaughan wrote: Thanks for that Jacob, They'll (Mosso) let me set up a cron job but unfortunately just a PHP script. Now, I maybe able to use exec() to run unzip. Not sure how that will effect memory issues. Shouldn't hurt you at all. You'll just open the unziped file(s) and parse them, line by line. I don't remember what the type it is, but they write a bunch of files to our ftp account that we can download then unzip and import. Sounds like an IDX feed. I've downloaded once batch manually and I'm just working on queryng and processing the data locally. Then I'll try to get the import going -- yikes! I'll let you know how it goes. Best of luck. If you need help, drop me an email. I'm also available for contracting. My rates are reasonable. Tom Jacob Coby wrote: I've worked with data from MLSs in NC, MI, FL, CA, NY. Never CT. I assume you're doing an IDX project? I don't have much experience with IDX (I mostly used RETS pulls and threewide FTP pushes). As for importing the data using PHP, PHP's support for zip files is annoying. Maybe there is something in PEAR or SPL to make it easier. I issued shell commands. fgetcsv() is your friend for parsing the data (assuming it's coming in as a CSV file). You'll probably run into memory limit problems due to PHP's leaky garbage collector. Be sure to stream the data (using fgetcsv()) and unset all loop variables when you're done with them. If that fails, you'll have to raise the memory_limit. Without shell access it's somewhat difficult to setup a cron job to update the data. Maybe the web admin panel has a way to set one up? Barring that, you could have an external process (perhaps on your server?) hit a page once a day on the client's server to load the IDX zip file and import it. Or you could have the data delivered to your server (assuming you have another server that you have shell access to) and process it there. If that's a no-go, the office admin could make hitting the update IDX data button part of his/her morning routine :) On Jun 10, 2008, at 4:04 PM, Tom Haskins-Vaughan wrote: Hi Jacoby, Did you work on the CT MLS? My client's web host won't let me use a shell script. Do you think it's possible to import the data using PHP? I'll have access to a few commands through exec(). Tom Jacob Coby wrote: Well, you got some of the cases handled. It doesn't handle the Mac or Mc prefix. It also won't work for any address that has abbreviations (NC Hwy 12). I worked with MLS data sets for 8 years. There is no easy solution for capitalization. There are always edge cases, exceptions, and just plain bad data. On Jun 10, 2008, at 1:38 PM, Tom Haskins-Vaughan wrote: Excellent! Looks good. Thanks. Have you or has anyone else come across any shortcomings in this function? Guillermo Rauch wrote: Look at this: http://php.net/manual/en/function.ucfirst.php#81258 On Jun 10, 2008, at 2:08 PM, Tom Haskins-Vaughan wrote: Hi, I have a data source (CT MLS property database) and the addresses are all give in uppercase letters: 23 WATER STREET I'd like it to appear 23 Water Street. I could use ucfirst(), which is fine, but I was wondering if there was any existing work on how to get around things like 49 O'Brien Avenue I could easily do this with regex on a list of known situations, but I was wondering if anyone had done the ground work before, so that I don't have to think of all different possible scenarios. TIA Tom -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com Guillermo Rauch http://devthought.com -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com -- Jacob Coby [EMAIL PROTECTED] -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com -- Jacob Coby [EMAIL PROTECTED] -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Conception problem... Module / Application
Have you looked at the ysfDimensionsPlugin? http://trac.symfony-project.com/wiki/ysfDimensionsPlugin It sounds like it'll do everything you need (I have no experience with it). Seems to be quite popular as well. On Jun 11, 2008, at 10:40 AM, obalais wrote: Hi everyone, For the purpose of a work placement, i have to develop a web application allowing its users to create their own online shop from a set of pre defined products. Roughly, users, can browse the website to see a list of most recently created shop, find some information and then sign up to create their own. An Url like myapplication.com/my_shop/ would then be their online shop location. To talk more about that shop, it should display the products that the user has previously chosen, a contact page, and some other miscellaneous informations, according to the level of customisation that the user would potentially apply (different colors or layout for example). Well now, my problem is a design one. In other words, I have some difficulties to find the best solution in order to achieve that Do you think I should represent those online shops as an application module?, or as an application containing different modules(products, categories, contact..)? I have to admit that I would prefer the second option but also that I unfortunatelydon't have any clue how to ensure the fact that my application effectively displays the correct modules according to the chosen shop. I would be very pleased if anyone has an interesting opinion to share on that subject, in order to give some advices Thanking you sincerely yours Olivier -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Efficient capitalizing of uppercase source words
Well, you got some of the cases handled. It doesn't handle the Mac or Mc prefix. It also won't work for any address that has abbreviations (NC Hwy 12). I worked with MLS data sets for 8 years. There is no easy solution for capitalization. There are always edge cases, exceptions, and just plain bad data. On Jun 10, 2008, at 1:38 PM, Tom Haskins-Vaughan wrote: Excellent! Looks good. Thanks. Have you or has anyone else come across any shortcomings in this function? Guillermo Rauch wrote: Look at this: http://php.net/manual/en/function.ucfirst.php#81258 On Jun 10, 2008, at 2:08 PM, Tom Haskins-Vaughan wrote: Hi, I have a data source (CT MLS property database) and the addresses are all give in uppercase letters: 23 WATER STREET I'd like it to appear 23 Water Street. I could use ucfirst(), which is fine, but I was wondering if there was any existing work on how to get around things like 49 O'Brien Avenue I could easily do this with regex on a list of known situations, but I was wondering if anyone had done the ground work before, so that I don't have to think of all different possible scenarios. TIA Tom -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com Guillermo Rauch http://devthought.com -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.com -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Reverting Back to a Previous Version of Symfony
On Jun 4, 2008, at 12:54 AM, Ryan wrote: What about the /usr/bin/symfony script and initializing projects. How does it know which you want to use. You run the binary from the svn repo, not from /usr/bin. It's in the data/bin directory. I always run 'symfony init-project ' inside a new empty directory. On Jun 3, 6:20 pm, Jacob Coby [EMAIL PROTECTED] wrote: The config/config.php controls which sf is loaded. I believe that applies to both 1.0 and 1.1. It should be automatically setup for you by init-project. On Jun 3, 2008, at 7:32 PM, Ryan wrote: So which setting do I use to tell symfony which version to use? I'll check out 1.0 and 1.1. On Jun 3, 5:25 am, Jacob Coby [EMAIL PROTECTED] wrote: On Jun 3, 2008, at 4:35 AM, Ryan wrote: How can I revert back to Symfony 1.0.x from 1.1 after I've upgraded using PEAR? Is it better just to use SVN for everything and not bother with PEAR? Yes. It gives you quite a bit more flexibility and lets you upgrade and test one project at a time. I have copies of 1.0 and 1.1 checked out in my home dir and they happily coexist. -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Reverting Back to a Previous Version of Symfony
On Jun 3, 2008, at 4:35 AM, Ryan wrote: How can I revert back to Symfony 1.0.x from 1.1 after I've upgraded using PEAR? Is it better just to use SVN for everything and not bother with PEAR? Yes. It gives you quite a bit more flexibility and lets you upgrade and test one project at a time. I have copies of 1.0 and 1.1 checked out in my home dir and they happily coexist. -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Reverting Back to a Previous Version of Symfony
The config/config.php controls which sf is loaded. I believe that applies to both 1.0 and 1.1. It should be automatically setup for you by init-project. On Jun 3, 2008, at 7:32 PM, Ryan wrote: So which setting do I use to tell symfony which version to use? I'll check out 1.0 and 1.1. On Jun 3, 5:25 am, Jacob Coby [EMAIL PROTECTED] wrote: On Jun 3, 2008, at 4:35 AM, Ryan wrote: How can I revert back to Symfony 1.0.x from 1.1 after I've upgraded using PEAR? Is it better just to use SVN for everything and not bother with PEAR? Yes. It gives you quite a bit more flexibility and lets you upgrade and test one project at a time. I have copies of 1.0 and 1.1 checked out in my home dir and they happily coexist. -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: How do I know in a template if this is the first time the page was shown, or a re-submit?
On May 20, 2008, at 4:21 PM, Daevid Vincent wrote: In my template/registerSuccess.php I want to do something like this, however I am getting undefined method errors for $this (no matter what incantation I’ve tried) All I want to do is have the checkbox checked by default (upon entering the registration page), but if the user un-checks it, then I want to respect that too (in case there are errors with their submission and we have to show the page again). What is the way to do this in symfony? In normal PHP, I’d simply just see if $_POST[‘newsletter’] is set. input type=checkbox name=newsletter ?php if ( !$this- getRequest()-hasRequestParameter('newsletter') || $sf_params- get('newsletter') ) echo 'checked' ? / ?php echo __('Sign up for our newsletter.') ? $this-getRequest() doesn't work inside of a view. You should use $sf_params-has('newsletter') or $sf_request- hasParameter('newsletter') instead. Symfony also has helpers to create your checkbox code as well. radiobutton_tag(). You can also enable the fillin filter to auto- populate the form based on the request parameters. See http://www.symfony-project.org/book/1_0/10-Forms -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Batch mass email script
http://trac.symfony-project.com/wiki/sfJobQueuePlugin On May 4, 2008, at 5:48 PM, Tom Haskins-Vaughan wrote: Hi Guys, I'm struggling now and I'm way behind this part of the website for a client. Can anyone send me their own or refer me to a script which allows you to send a few hundred (non spam) emails from an email queue held in a database. I need this to be run by a cron job in the background. Any help is MUCH APPRECIATED. Thanks in advance. Tom -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: Standalone PHP script
On Apr 29, 2008, at 5:00 PM, inrila wrote: for now :-), and I want to be able to run it from command line, not from the Web. No problem here. But I also have my Symfony Web application, and I want this command line standalone script to work with Symfony's Propel and generated models. Batch files (and symfony init-batch): http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Batch%20Files To use Propel in a batch file, you'll need to initialize the database: preamble from above // initialize database manager $databaseManager = new sfDatabaseManager(); $databaseManager-initialize(); your code here How can I do that? Any examples? Thanks! -- Jacob Coby [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---