[symfony-users] Re: Many sites using the same application
Derek Almond wrote: I run three or for different set ups where the sites share common code, but the look and feel is different to some extent. each of the two examples below run about 12 differnet sites, with varying degrees of shared content - i wont post all the ULR's or it will look like i'm link spamming, but a couple of instances are http://savewatersavemoney.co.uk http://st.savewatersavemoney.co.uk This one gets me a white page with It works!... Just FYI -- Nathanael d. Noblet T: 403.875.4613 --~--~-~--~~~---~--~~ 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: changing the default signin form's layout in sfGuardAuth
ckemmler wrote: I mean: just the form, not the layout of the entire page Create a module in your application with the same name as the module in the plugin, then create a templates folder, with a template for that action. -- Nathanael d. Noblet T: 403.875.4613 --~--~-~--~~~---~--~~ 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 vs. Doctrine - Pros and Cons
Michal G wrote: Hello, Couple of reasons why i've chosen Doctrine instead of Propel: - far, far, far, far better documentation - IMHO more readable queries with DQL than with criterions - code is maintained and actively developed - this means that bug will be fixed and support for new version of dbm's will be provided. Also i can use cool new features ;) The reasons I chose doctrine over propel almost 2 years ago were: Two way relations, no more do I have to spend hours writing my own doSelectJoinXButNotYWithZAndTheKitchenSink() functions to join what I want. Propel would only do it one way, like a User has a Profile, but if you had a Profile object you couldn't join the user ugh such a pain. Now creating a custom query is a matter of a couple lines, a few minutes, instead of a few hours dealing with hydration of results. Inheritance. It allowed me to solve many problems really easily. M2M was *WWAA* easier. Active / responsive community -- Nathanael d. Noblet T: 403.875.4613 --~--~-~--~~~---~--~~ 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: sfOpenSocial Plugin -facing problem with PHP version
haritha wrote: My sample application using sfopensocial plugin is working perfectly with php version -5.2.6.If i execute the same application in the php 5.1.6 in returning some object id# in the action class. I am working on symfony 1.0. doesn't symfony require 5.2.X? I know doctrine does where X 3 in fact. -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: New symfony eclipse plugin -sfEclipse
machomic wrote: Hi, I'd like to introduce my symfony eclipse plugin called sfEclipse. It is hosted on sourceforge at http://sfeclipse.sourceforge.net. This is a first pre-alpha release, so can has some bugs and it's cuted to only few finished features. I don't have so much time and list of features which should be implemented is very long, so need some help. If anyone would join project and participate developing please contact me directly. I’ll appreciate any feedback. Just a thought, but you might want to combine forces/efforts with http://sfdt.borox.ch/ author emailed this list a while ago (cokker...@googlemail.com). Two people working on one plugin is likely better than two people on separate plugins... -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Re : [symfony-users] Re: New symfony eclipse plugin -sfEclipse
Loïc Vernet wrote: Big +1 Yeah, I wish I had more time and I would also help. I think this is likely the third plugin out there... so combining the skills everyone has is so much more useful. -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Re : [symfony-users] Re: New symfony eclipse plugin -sfEclipse
cokker wrote: Hi all machomic already wrote me a mail concerning this. I think this is a good idea. We have to talk about this and will you inform you of the result. During waiting you could suggest a new name of a common project. :) I don't really care what the project is called, but I would think sfEclipse, or eclipse-symfony, or just plain symfony. Yeah, why not symfony? eclipse.org/projects/symfony ? -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: SfDT - Symfony Eclipse Plugin
cokker wrote: Thanks for your feedback. Please tell me if you are using PDT2.0. If not, have a look into the eclipse log file. (workspace/.metadata/.log) I am using PDT2.0... is that not supported? -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: SfDT - Symfony Eclipse Plugin
cokker wrote: Hi list Some of you might already know that I'm working on a symfony eclipse plugin. See here: http://www.symfony-project.org/forum/index.php/t/16664/ Today I released the last new version for this year. I added a launch configuration inspired by this post: http://groups.google.com/group/symfony-users/browse_thread/thread/c600dccda1bf6d3a/98a1ba77efbadb52?#98a1ba77efbadb52 Please tell me what you think about it and what features you would like to see in next releses. Any feedback is welcome. Just installed via instructions. I'm using PDT as my php editor plugin (I still have phpeclipse installed but inactive for some other projects I haven't moved over). The installation when fine. I restarted eclipse. Then chose a project and did the symfony-convert ... I received the following error: An internal error occurred during: Configuring Include Path. org/eclipse/php/internal/core/project/options/PHPProjectOptions -- Nathanael d. Noblet T: 403.875.4613 --~--~-~--~~~---~--~~ 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: regenerating a URL with a different culture
Hellika wrote: Hi, I am trying to build a language switch button. The button is basically a link to another version of the same page in another language. For example: /en/about - /ja/about and back again. I have enjoyed a lot of success with this so far and I love the way symfony automatically interprets the culture from the URL and deals with all my __() methods appropriately. Maybe it is just my wishful thinking but, I thought I would be able to simply change the users culture and redisplay the URL and the new URL would reflect the culture change. but i tried and failed. I now have a rather messy solution where i strip all the slashes out and change the culture manually and then rebuild the URL. Its going to take me a while to sort it all out, and I want to know that it wont be in vain. This outlines how i was thinking about doing it. . . Can anyone show me the error in my thinking.. if there is a better way please let me know. routing.yml about: url: /:sf_culture/about requirements: { sf_culture: (?:en|ja) } param: {module: main, action: about } Action.php $module = $this-getModuleName(); $action = $this-getActionName(); $internalURI = $module.'/'.$action; switch($this-getUser()-getCulture()) { case 'en': $this-getUser()-setCulture('ja'); $this-desiredURL = $this- getController()-genUrl($internalURI, false); break; case 'ja': $this-getUser()-setCulture('en'); $this-desiredURL = $this- getController()-genUrl($internalURI, false); break; default: $this-getUser()-setCulture('en'); $this-desiredURL = $this- getController()-genUrl($internalURI, false); break; } TEMPLATE a href=?php echo $desiredURL ?Language switch here!/a I've done this with a filter class gsLanguageFilter extends sfFilter { public function execute( $filterChain ) { $r =sfContext::getInstance()-getRequest(); if( $r-getMethod() == sfRequest::GET $r-hasParameter('lang')) { $new_lang = $r-getParameter('lang'); $langs = gsCMSConfig::get('gscms_languages'); if(in_array($new_lang,$langs)) { $c = sfContext::getInstance(); $c-getUser()-setCulture($new_lang); $params = $r-getParameterHolder()-getAll(); $url = $params['module'].'/'.$params['action']; unset($params['lang']); $c = $c-getController(); $c-redirect($c-genUrl($params)); } } $filterChain-execute(); } } and the language switch links are: foreach($langs as $lang) echo (($cur == $lang) ? $lang : link_to($lang, sfContext::getInstance()-getModuleName().'/index?sf_culture='.$lang.'menu_id='.$sf_request-getParameter('menu_id'))).' | '; -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Currency conversion API
Sumedh wrote: Hi friends, Is there any free simple HTTP API to convert currencies into one another...? Surprisingly, I didn't find anything simple and free when I searched... There were some screen scraping hacks or some complicated paid SOAP services... I don't need a premium service...just something simple that gets updated daily or even weekly... I wrote a plugin awhile ago that used the bank of canada... its hardcoded but could just as easily be improved to use a config file... http://www.gnat.ca/gsCurrencyConverter.tar.bz2 I should probably upload that to symfony plugins one day... It includes magpierss php library... not sure on the license there, but I'm fairly certain its free... -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Server Specific Settings
Stephen Melrose wrote: Hi. This is (I'm hoping) a simple enough question. I develop locally on my machine using XAMPP, then deploy my application to my linux server for staging testing, and then live. I can do server specific settings easy enough using the config files. Lets take the database connection for example. This is my databases.yml (edited of course), prod: myapp: class: sfPropelDatabase param: dsn: mysql://user:[EMAIL PROTECTED]/myappdb staging: myapp: class: sfPropelDatabase param: dsn: mysql://user:[EMAIL PROTECTED]/myappdb all: myapp: class: sfPropelDatabase param: dsn: mysql://[EMAIL PROTECTED]/myappdb This works, but what if I want to test the prod environment on my local machine without having to constanting edit config files? Is there a better/more preferred way of doing server specific settings accross multiple environments? Or are environments the server specific setting wrappers? Thank you. I tend to not sync the databases.yml file. You keep your copy local, and when deploying create it that one time. Then each sync the databases.yml is ignored, and you can do whatever you want locally and on all stages of deployment -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Blank line at start of output
Nicolas wrote: Hello, I noticed that every page outputted by symfony starts with a blank line in my setup. For instance my layout.php starts immediately with the DOCTYPE declaration but every result page has a blank line before the DOCTYPE. This is not generally an issue except for my download file controller as the result also starts with this blank line (0x0D 0x0A characters) and thus corrupts downloaded binary files. I have been trying to understand where it comes from but to no avail. I am using WAMP on a Windows setup. This could be related seeing the extra characters... Anyone got a fix for this? you have a file someplace, perhaps even a class with a space before the first opening ?php most likely. I had a similar issue (non windows) where some pages had a ? before the doc type. That means you are outputting data directly from some class file. -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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] Upgrading to 1.1
When I upgrade from 1.0 to 1.1 should the task create a config/ProjectConfiguration.class.php file for me? -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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 offtopic - CC encryption / decryption
James wrote: Why do you assume the key is in the session? If I were going to encrypt something and put it in the session, the key sure would not be along with it, I would use data specific to the user (each user has their own key). based on things like username/zipcode/ipaddress probably a mashup of 3 bits of personal information that not everyone would be able to get. So the code for generating this key would be less readable than the session file? Since if I can read the session for some reason, I likely can read the source code that generates the session and thus get most of that information... and decrypt the data. Basically what I'm wondering is how you will keep the key, or the data that makes up the key secret. If you used username and or some random data like time, you'd have to store that someplace. So if you have a manner to store that key securely, why encrypt? Just put the CC info there... -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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 offtopic - CC encryption / decryption
Richtermeister wrote: Correct, the key would be stored in the DB and be user specific. While I agree that storing the session in the DB as well would be a nice bit of added security, it wouldn't avoid the problem, as I would still need to store ccs in there encrypted as well.. Also, how does https protect session information? I'm not aware it does that, but then again, I'm here asking questions out of ignorance in the first place.. ;) I would assume it would protect the session key/name since all data over the wire is encrypted, but I agree, I don't see how SSL is solving the problem you are describing. SSL encrypts data between you and the client. You want to encrypt the cc data in the session, which is stored in a file on the server, from potentially malicious users of that server. -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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 offtopic - CC encryption / decryption
Richtermeister wrote: Hi all, your points are well taken, and I'm not trying to put the cc numbers into a database for the very same reason.. I do, however, have to put it into the session as part of the checkout process, before I even get to use a payment gateway (after that it'll get obfuscated right away, and I only store the last 4 digits, yes..). Since session files are non-encrypted, and the system may at some point run on a shared server, I would like to encrypt at least the number before I put it in. Sounds good? What is stopping them from decrypting them? If they can read the session files, they can read the key to decrypt as well. My suggestion would be to store the sessions in a DB, so they aren't readable by anyone who can't login to your DB with your credentials. Though I guess they can read your connection file... I just wonder if there really is a way to store this safely... -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ 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: Setting response parameters for images and css files located in web/images and web/css
rmorrison wrote: I want to change the response parameters for images and css files located in web/images and web/css, for example setting cache- control. I've found several ways to do this for actions, but not for the static content that exists inside the web/ directory. Is there a way to do this w/ Symfony? Symfony doesn't serve those pages, your web server does directly, so any way to tell your server is what you are looking for. -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony and CentOS5
Eno wrote: On May 18, 6:59 pm, Josh [EMAIL PROTECTED] wrote: The problem I am having is that whenever I set my virtual hosts, I get a blank page for my domain (even if I go to /frontend_dev.php), but if I revert it back to the original VirtualHost I get no problems.. so it must be PEAR/Symfony/Apache right? I use centos-5 and symfony, we have many many sites on both our development and production server, can you paste your virtual hosts section someplace for us to take a look at? -- Nathanael d. Noblet --~--~-~--~~~---~--~~ 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: Does sfDoctrine support multiple databases opened simultaneously?
Gloria W wrote: Hi All, I know this was a problem before, and I can't find any notes on it's closure. If this works, please point me to a functional example, if the yaml file is more obscure than I am expecting. If this does not work, how is everyone getting around this? Do you open your other DBs directly in Doctrine calls? I'm trying to avoid this and stick to the model. It works exactly the same way propel does, albeit the files are in different locations config/doctrine/connection1.yml config/doctrine/connection2.yml place models that are using either connection in the properly named schema files Then in config/databases.yml: all: connection1: class: sfDoctrineDatabase... connection2: class: sfDoctrineDatabase... -- Nathanael D. Noblet --~--~-~--~~~---~--~~ 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: Memory optimization
Frantisek Troster wrote: Hi, I'm having troubles with one of my scripts. It requires much more memory than the other scripts (25 MB vs. cca. 16 MB) and I can't find where the memory vanish. I was wondering if any of you used any profiler or debugger (commercial or free), which works fine with symfony and can show memory usage by object and function calls. I tried to use APD + KcacheGrind, but it didn't help me much. I've never used anything like that, however you can use the php function http://ca3.php.net/manual/en/function.memory-get-usage.php output that to the logs periodically and see when it spikes...;) -- Nathanael D. Noblet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Batch Script: sendEmail not working
Kryptonian wrote: Hello Guys, My problem is I'm using a batch script and send an email to a user but I can't make it work. Here are the details. I'm running a batch script in my CLI using this syntax: [code] php importUser.php --file test_mark.csv --table myImportUser [/code] My Batch Script (batch/importUser.php): [code] ?php require_once(realpath(dirname(__file__).'/..').DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'configBatch.php'); require_once(realpath(dirname(__file__).'/..').DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'myImportUser.class.php'); $databaseManager = new sfDatabaseManager(); $databaseManager-initialize(); $fileName = sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'import'.DIRECTORY_SEPARATOR.FILE; $handle = fopen($fileName, r); $data = fgetcsv($handle, 1000, ,); $fields = array(); foreach ($data as $field) { $fields[] = $field; } $row = 0; $delete_row_len = 0; $table = TABLE; echo Importing from file .FILE. into table $table fields (.implode(',', $fields).) line ; while (($data = fgetcsv($handle, 1000, ,)) !== FALSE) { $action = sfContext::getInstance()-getController()- getAction('mail', 'importUserWelcome'); } $controller = sfContext::getInstance()-getController(); $controller-sendEmail('action','module'); fclose($handle); ? [/code] My Mail Module (Mail/actions/actions.class.php): [code] ?php public function executeImportUserWelcome() { // class initialization $mail = new sfMail(); $mail-initialize(); $mail-setMailer('sendmail'); $mail-setCharset('utf-8'); // definition of the required parameters $mail-setSender('[EMAIL PROTECTED]', 'Voetbal21 webmaster'); $mail-setFrom('[EMAIL PROTECTED]', 'Voetbal21 webmaster'); $mail-addReplyTo('[EMAIL PROTECTED]'); $mail-addAddress('[EMAIL PROTECTED]'); $mail-setSubject(Bekijk nu foto's en video's van jouw eigen voetbalcompetitie op Voetbal21.nl); $mail-setBody('This is the body content of the email'); $mail-send(); } ? create a template for importUserWelcomeSuccess.php with the body of the email, and remove teh $mail-send(), instead return sfView::SUCCESS; I've sent many an email via a batch --~--~-~--~~~---~--~~ 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: updateFromReuqest - security issue
pihentagy wrote: Hi all! I've peeked into the generated auto___Actions class, and especially the update___FromRequest method. Since in generator.yml I have updated_at: { type: plain, name: módosítva } I though there will be no such block, that handles updated_at field, but I was wrong!!! So this is definitely a serious security issue IMHO. Any ideas how to circumvent it without dropping admin generator are welcome. Use a validator and throw an error if the field has a value. --~--~-~--~~~---~--~~ 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: Final Week!
Ian P. Christian wrote: Just a reminder It's the last week now for you to show your appreciating for symfony, and thank 2 key members of the community! http://www2.pookey.co.uk We've done very well so far, but I'm sure we can do better! Thank you for your support :) Thanks for the reminder. --~--~-~--~~~---~--~~ 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: Setting different partial for component
Nicolas CHARLOT wrote: The purpose of my component is to display a menu. The component is so often used many times in a layout for different menus. The partial associated with the component generate standard HTML menu code. In a few case, we need to render specific HTML (drop down menu, etc.). My goal is to redefine component partial with a simple parameter of include_component(). You want a component_slot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony sync X go
Haris Zukanović wrote: Ciao ppl, Sometimes the sync command hangs without giving any signs of activity.. Where in the code is the rsync command constructed - I wish to add some rsync options to see better what happens to debug this situation Adding --progress will only show the file transfer progress. Before rsync starts transferring files, it runs through figuring out which files to transfer. To see this stage, you need to increase rsync's verbosity level... To do that you want to add multiple 'v's to the command. Often it would be rsync -avc --progress ... Make it rsync -avvvc --progress ... --~--~-~--~~~---~--~~ 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: Changing Layouts Dynamically....
James wrote: Hi Guys, I am working on a website idea that will need to have the layout change for each different domain that hits the main application. I had asked this question in the forums http://www.symfony-project.org/forum/index.php/m/40732/?srch=change+layout+how#msg_40732 which points specifically to sfFilter, preExecute, and sfConfig I tried sfConfig::setLayout('myLayout.php'); in a myriad of places. To no avail. Check out the sfDimensionsPlugin. --~--~-~--~~~---~--~~ 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: Tinymce configuration in generator.yml
nico_bl1nd wrote: Hi, does someone know a way to configure tinymce from the generatoryml config file. I can set one option, like the height, but I would also like to set the default theme directly from there, but found no way till now. thanks for your help. Nicolas Binet Ps: my current config file description: name: Descrition type: textarea_tag params: size=60x10 rich=true tinymce_options=height:250 The way I usually do this is like so, so that all my admin modules get the same options app.yml: all: .general: tinymce_options: 'size=45x10 rich=true tinymce_options=width:550,height:350,convert_newlines_to_brs:true,cleanup_on_startup:true,theme: advanced,theme_advanced_toolbar_location: top, theme_advanced_toolbar_align:left,theme_advanced_path_location:bottom,theme_advanced_blockformats:h3,h4,h5,theme_advanced_buttons1: cut,copy,paste,pasteword,pastetext,separator,undo,redo,separator,bold,italic,underline,separator,sub,sup,separator,charmap,removeformat,theme_advanced_buttons2:fontsizeselect,forecolor,bullist,numlist,outdent,indent,theme_advanced_buttons3:justifyleft,justifycenter,justifyright,justifyfull,plugins: paste,table,advlink,paste_create_paragraphs:true,paste_create_linebreaks: true,paste_auto_cleanup_on_paste: true, paste_convert_middot_lists: true,paste_convert_headers_to_string: true' then in generator.yml: edit: fields: body: { params: '?php echo sfConfig::get('app_tinymce_options'); ?' } works like a charm. this issue is making sure it all comes through as a string, otherwise the yaml converts it and it doesn't get passed through to the generating tag... you could try params: 'size=60x10 rich=true tinymce_options=height:250,width:300' or params: size=60x10 rich=true tinymce_options='height:250,width:300' -- Nathanael D. Noblet --~--~-~--~~~---~--~~ 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: bug? symfony propel-build-sql won't work WAS Admin generator foriegn keys stopped working for one table
Bealers wrote: Attempting to solve my issue I've been trying to change my model, so have dumped out all data and then edited my schema so the FK's are named correctrly (like the 'not broken' ones in my previous post) I kept running into problems doing build-sql but assuming the problem was still with me I figured I'd try thigs out on a completely fresh project to see what's broken, I come up with the same issues. Here are the steps I'm taking: mkdir foo cd foo symfony init-project foo symfony init-app frontend Now create schema, make sure propel.ini has right settings and schema first line is dbname: (in this case foo) symfony propel-build-model symfony propel-build-db symfony propel-convert-yml-schema symfony propel-build-db You've just created two schemas now with those commands, you have schema.yml and schema.xml? OK, now create db works (and I can check this on the mysql command line) Here's the money shot: symfony propel-build-sql 8 snip propel sql-template: [propel-sql] Processing: schema.xml [propel-sql] Processing: generated-schema.xml Execution of target sql-template failed for the following reason: / usr/share/php/symfony/vendor/propel-generator/build-propel.xml:187:1: Duplicate table found: foo. [phingcall] /usr/share/php/symfony/vendor/propel-generator/build- propel.xml:187:1: Duplicate table found: foo. 8 When you have both a .yml and .xml schema you will receive this error. I don't use propel much anymore but I'm betting the issue is a slight lake of understanding what all the propel-X-X commands do. Some of them create a schema from the db, some go the other way etc... the language is all so similar that it can be confusing. --~--~-~--~~~---~--~~ 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: Setting Getting Variable Value
slinky66 wrote: Hi! Inside my actions class, I have a variable isError that gets set with an error message if there was an error. I want to read this variable inside my corresponding template so I can display an error message to the user. I'm trying to do it this way: //Inside actions class if(isset($errorMessage)){ $this-getRequest()-setParameter('isError',$errorMessage); $this-forward('shoppingCart','purchaseConfirm'); } //Inside template purchaseConfirmSuccess Not sure how to get value from isError that was set in actions class $isError = $sf_request-getParameter('isError',false); However, you should look at the validation section of the book as you can $this-getRequest()-setError('name','message') and in the template $sf_request-hasErrors() == true|false $sf_request-getError('name'); etc... --~--~-~--~~~---~--~~ 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: sfDoctrine sort of one-to-many
[EMAIL PROTECTED] wrote: hi! does anyone know, how i can set the order or sort a one-to-many relation? example: schema.yml Client: tableName: client columns: name: type: string size: 1000 description: type: string size: 1000 Computer: tableName: computer columns: name: type: string size: 1000 client_id: foreignClass: Client foreignName: Client cascadeDelete: true now, after adding some Computers to Client ... how can i order the one-to-many Computers? when i access one client like this... $data = sfDoctrine::getTable('Client')-find(1); $data = Doctrine_Query::create()-from('Client c')-leftJoin('c.Computer cm')-where('c.id = ?')-orderby('cm.name')-execute(array(1)); --~--~-~--~~~---~--~~ 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 insert a new detail line after each line in the admin list?
domyck wrote: I does not use a stacked layout (to many informations; the column layout is clearer). Is it possible without it ? Create your own admin template theme to suit your needs. That's what we've done, basically a plugin with data/generator/sfPropelAdmin/myTheme which is copied from the symfony default theme, and modified to our liking. --~--~-~--~~~---~--~~ 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: Where can I find documentation about format_date?
Z wrote: dunno why you would want to use dateformat over date. maybe make the code cleaner? because format_date respects i18n, so you pass it the date, and a format type, and it'll return the date formatted for the locale. for the date formats, i just ended up playing with it. it seems to follow some of the ISO formats. you can look at: http://framework.zend.com/manual/en/zend.date.constants.html#zend.date.constants.selfdefinedformats To see this, I had to look in the code I think sfDateFormatter.class.php, it has a switch statement someplace with the case and what the value is. --~--~-~--~~~---~--~~ 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: Getting generated URL in a model class
Nicolas CHARLOT wrote: Hadrien Boyé a écrit : Hi Nicolas, why do you want to generate an URL inside the model layer ? in the MVC architecture, the model must be independant from the way the layer is accessed. if you generate URL's inside the model layer, you broke that rule by stipulating that the application would be accessed by the web only. why don't you use the Controler layer, to generate url's inside actions methods ? I agree with U but it's a bit particular since the app is a base of CMS. The model inherits form a node a main class and can be : - a page - a heading - a link to an action - a link - a shortcut to another node - a dynamic node There's a special getLink() method for each type of nodes. To avoid implement complex logic in templates, I just call the method and the URL is simply returned. You could just build a static class/object that takes as input the model and outputs a link... keeping it clean --~--~-~--~~~---~--~~ 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: Changing layout dynamically
Eno wrote: On Apr 30, 8:26 am, Michael Nolan [EMAIL PROTECTED] wrote: $this-setLayout('new_layout'); What about switching off layout completely for an action? $this-hasLayout(false); Check the API docs, they are very complete. --~--~-~--~~~---~--~~ 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: sfDoctrine | Bug with relations since Foreign key exporting added in doctrine revision 1182
elbouillon wrote: Hello, Since doctrine revision came to revision 1182 [1] , I've an exception with all my models that have relations. I don't understand why it want to create a table in my database because in doctrine.yml the option : create_tables is set to false. If anyone has an idea... Doctrine is under constant development, and has bugs like this off and on over time. The developer has since fixed it at least in my case with r1188. Hopefully it fixes it for you two. -- Nathanael D. Noblet --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---