[symfony-users] Re: Can't access slots in partials (with cache enabled)
Thats exactly my problem, Pablo! I have enabled the cache (settings.yml) but the files which are affected by this problem are all excluded from the caching (cache.yml). Example: I extracted the whole head /er to a partial (because every layout should use the same header-informations). In this partial there are several slots to display special meta-informations for specific actions. The layout code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en dir=ltr ?php include_partial('global/layout_head'); ? [...] /html The partial code: head profile=http://purl.org/uF/2008/03/ http://microformats.org/wiki/xfolk-profile ?php if (has_slot('profile_uri')) { include_slot ('profile_uri'); } ? [...] /head If the cache is disabled (settings.yml), everything works fine and the partial shows the profile_uri-slot without any problems. If I enable the cache (settings.yml), the has_slot('profile_uri') returns false. If I paste the patial-code directly into the layout, everything works fine (with and without caching enabled (settings.yml)). I reproduced this phenomenon also with normal templates. If the slot is directly in the template, I got no problems, if it is used in a partial the has_slot returns false. On Dec 16, 12:26 am, Pablo Godel pablo.go...@gmail.com wrote: If I understand your problem correctly, it is the whole purpose of enabling caching, so certain parts of your code don't get ran. Pablo On Tue, Dec 15, 2009 at 12:03 PM, Matthias Pfefferle pfeffe...@gmail.comwrote: I can't access slots in partials with enabled symfony caching (symfony 1.2.10)... does anyone had similar problems? Is there a way to workaround? -- 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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] Doctrine custom theme
Put it here in your symfony project: data/generator/sfDoctrineModule/YOUR_THEME_NAME Symfony will never force you to put things inside the core folders! Cheers, Daniel :) On Dec 16, 2009, at 9:48 AM, Daniel Londero wrote: Hi! I'm going to create a custom theme for Doctrine so when I generate some module I get the lookfeel I want. Where to put the new directory containing all new files? Always in lib\vendor\symfony\lib\plugins \sfDoctrinePlugin\data\generator\sfDoctrineModule\ ? What about if I upgrade sf by hand? Cheers Daniel -- 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.
[symfony-users] Re: Doctrine custom theme
On 16 Dic, 09:54, Daniel Lohse annismcken...@googlemail.com wrote: Put it here in your symfony project: data/generator/sfDoctrineModule/YOUR_THEME_NAME Symfony will never force you to put things inside the core folders! Yeah!! Thank you so much :) Daniel -- 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: Doctrine custom theme
Alternatively, you can put it in a plugin, we use something like this plugins/sfAdminThemePlugin/data/generator/sfDoctrineModule/ THEME_NAME This way you can reuse the theme in any new project you got. Regards, Benoit On Dec 16, 10:02 am, Daniel Londero daniel.lond...@gmail.com wrote: On 16 Dic, 09:54, Daniel Lohse annismcken...@googlemail.com wrote: Put it here in your symfony project: data/generator/sfDoctrineModule/YOUR_THEME_NAME Symfony will never force you to put things inside the core folders! Yeah!! Thank you so much :) Daniel -- 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 - WINDOWS path
That's because you're using windows. You can convert backslashes to slash without trouble, windows handle both for a while now. But, this will not work yet because you're using file system path instead of URI for image src. At the end you should have image written like this img src=uploads/image1.jpg / On Dec 16, 8:08 am, dziobacz aaabbbcccda...@gmail.com wrote: img src=/uploads/?php echo $z-getThumb() ? / gives: img src=/uploads/image1.jpg / img src=?php echo sfConfig::get('sf_upload_dir') ?/?php echo $z-getThumb() ? / gives: img src=C:\Program Files\WebServ\httpd\cms\web\uploads/image1.jpg / and I don't see a picture - sfConfig::get('sf_upload_dir') gives backslash, but it should be slash !! What can I do with that ?? -- 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: Question about link_to_remote: 'complete' option
Thanks both, but it still doesnt change the class of the div.. Proposals? Javi On Dec 14, 8:45 pm, Gareth McCumskey gmccums...@gmail.com wrote: complete=$('message_1').toggleClassName('read_message'); http://www.prototypejs.org/api/element/toggleClassName On Mon, Dec 14, 2009 at 2:08 PM,tirengarfiotirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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 athttp://groups.google.com/group/symfony-users?hl=en. -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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] Question about link_to_remote: 'complete' option
Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@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.
[symfony-users] Re: Can't access slots in partials (with cache enabled)
This is an issue since more than half a year now... There was (is?) a ticket in trac with a working patch, I don't know why it isn't merged into core... On 16 Dez., 09:20, Matthias Pfefferle pfeffe...@gmail.com wrote: Thats exactly my problem, Pablo! I have enabled the cache (settings.yml) but the files which are affected by this problem are all excluded from the caching (cache.yml). Example: I extracted the whole head /er to a partial (because every layout should use the same header-informations). In this partial there are several slots to display special meta-informations for specific actions. The layout code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en dir=ltr ?php include_partial('global/layout_head'); ? [...] /html The partial code: head profile=http://purl.org/uF/2008/03/ http://microformats.org/wiki/xfolk-profile ?php if (has_slot('profile_uri')) { include_slot ('profile_uri'); } ? [...] /head If the cache is disabled (settings.yml), everything works fine and the partial shows the profile_uri-slot without any problems. If I enable the cache (settings.yml), the has_slot('profile_uri') returns false. If I paste the patial-code directly into the layout, everything works fine (with and without caching enabled (settings.yml)). I reproduced this phenomenon also with normal templates. If the slot is directly in the template, I got no problems, if it is used in a partial the has_slot returns false. On Dec 16, 12:26 am, Pablo Godel pablo.go...@gmail.com wrote: If I understand your problem correctly, it is the whole purpose of enabling caching, so certain parts of your code don't get ran. Pablo On Tue, Dec 15, 2009 at 12:03 PM, Matthias Pfefferle pfeffe...@gmail.comwrote: I can't access slots in partials with enabled symfony caching (symfony 1.2.10)... does anyone had similar problems? Is there a way to workaround? -- 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.comsymfony-users%2bunsubscr...@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.
[symfony-users] Re: Question about link_to_remote: 'complete' option
Thanks Deepak, but it didn't work.. Javi On Dec 16, 1:42 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@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.
[symfony-users] Re: encoding problems with csv export
hi gabriel, using ?php echo mb_convert_encoding($result-get ($property),ISO-8859-1,UTF-8) works. thx for your help! axel On 15 Dez., 19:44, pghoratiu pghora...@gmail.com wrote: MS Excell does not get along too well with UTF8 CSV, these files work just fine with OpenOffice. If OpenOffice is not an option I suggest you search on Google for a possible workaround (switch to a different type of encoding for output text with mb_convert_encoding, UTF16 may work probably I have not tried this myself) or some library that writes .xls files directly.http://www.google.ro/search?q=php+excell+utf8 gabriel On Dec 15, 7:25 pm, axel at axel.zu...@gmail.com wrote: hello, I try to export result rows (from admin-generator) to a csv file: public function csvExport($pager) { ... $this-getResponse()-clearHttpHeaders(); $this-getResponse()-setHttpHeader('Content-Type', 'application/ vnd.ms-excel;charset=utf-8'); $this-getResponse()-setHttpHeader('Content-Disposition', 'attachment; filename='.$filename.'.csv'); $this-setLayout(false); $this-setTemplate('csv'); $this-properties = array(firstname, lastname, ...); $this-results = $pager-getResults(); cvsSuccess.php: ... ?php foreach ($results as $result): ? ?php foreach ($properties as $property): ??php echo $result-get ($property); ?;?php endforeach; ? ?php endforeach; ? if I open the exported csv with ultraedit special characters are displayed correctly (dos-utf8 filteype) but when opend with ms-excel special chars are not displayed correctly (ä - ö ) settings.yml contains: charset: utf-8 thx for your help -- 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] Anyway to comment piece of yaml code (not using # in each line)??
Hi, just that. Regards 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.
[symfony-users] Re: Anyway to comment piece of yaml code (not using # in each line)??
Im using Eclipse PDT. Javi On Dec 16, 3:06 pm, tirengarfio tirengar...@gmail.com wrote: Hi, just that. Regards 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.
[symfony-users] Re: Anyway to comment piece of yaml code (not using # in each line)??
Ok, i found it. Just installing this: http://jonocode.wordpress.com/2009/06/17/editing-yaml-files-in-a-symfony-project-using-eclipse-pdt/ Select the lines and then Shift + Ctrl + / (and again to uncomment). Javi On Dec 16, 3:07 pm, tirengarfio tirengar...@gmail.com wrote: Im using Eclipse PDT. Javi On Dec 16, 3:06 pm, tirengarfio tirengar...@gmail.com wrote: Hi, just that. Regards 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.
Re: [symfony-users] Question about link_to_remote: 'complete' option
Try this way... ?php echo link_to_remote('Refresh the letter', array( 'url' = 'publishing/refresh', 'complete' = 'updateclass()' )) ? ?php echo javascript_tag( function updateclass() { document.getElementById('message_1').className('read_message'); } ) ? On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] Re: Question about link_to_remote: 'complete' option
try putting alert(Test) in front of it. On Wed, Dec 16, 2009 at 6:40 PM, tirengarfio tirengar...@gmail.com wrote: Thanks Deepak, but it didn't work.. Javi On Dec 16, 1:42 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@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.comsymfony-users%2bunsubscr...@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.
[symfony-users] Problem with ysfYUIPlugin installation... Help me please!!! :(
Hi, I'm a new user here and I hope to be welcomed. :) I have some problems to installing and using ysfYUIPlugin. When i try to install this plugin, the cli return me this message No release available for plugin ysfYUIPlugin. I copied ysfYUIPlugin folder in projectDirectory/plugins but don't working. :( Can someone help me please? This is my system configuration: - Windows XP SP2 - EasyPHP 2.0.0.0 - Apache 2.2.13 - MySQL 5.1.32 - PHP 5.3.0 - Symfony v. 1.2.9 - ORM: Doctrine P.S. Sorry for my bad english. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Problem with ysfYUIPlugin installation... Help me please!!! :(
My ProjectConfiguration class contains this code, and I think that is enable by default. ?php require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { // for compatibility / remove and enable only the plugins you want //$this-enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin')); $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); } } On 16 Dic, 16:29, Alexandru-Emil Lupu gang.al...@gmail.com wrote: have you enabled the plugin from config/ProjectConfiguration.class.php ? On Wed, Dec 16, 2009 at 5:19 PM, Marco V. vantaggiat...@gmail.com wrote: Hi, I'm a new user here and I hope to be welcomed. :) I have some problems to installing and using ysfYUIPlugin. When i try to install this plugin, the cli return me this message No release available for plugin ysfYUIPlugin. I copied ysfYUIPlugin folder in projectDirectory/plugins but don't working. :( Can someone help me please? This is my system configuration: - Windows XP SP2 - EasyPHP 2.0.0.0 - Apache 2.2.13 - MySQL 5.1.32 - PHP 5.3.0 - Symfony v. 1.2.9 - ORM: Doctrine P.S. Sorry for my bad english. -- 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 athttp://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.
[symfony-users] Re: Problem with ysfYUIPlugin installation... Help me please!!! :(
Sorry, can someone give me the link for downloading ysfYUIPlugin? Because I download it from this link: http://svn.symfony-project.org/plugins/ysfYUIPlugin/branches/1.3/ but now i checked all folders and i have noticed that this package is incomplete compared to this package: http://trac.symfony-project.org/browser/plugins/ysfYUIPlugin/trunk?rev=10317 For example in first package there aren't the helpers, the config files in config folder, etc... I tried to download the second link, but I was not able. :( Is this my problem? How I can download the folder at second link? Help!!! :( :( On 16 Dic, 16:40, Marco V. vantaggiat...@gmail.com wrote: My ProjectConfiguration class contains this code, and I think that is enable by default. ?php require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { // for compatibility / remove and enable only the plugins you want //$this-enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin')); $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); } } On 16 Dic, 16:29, Alexandru-Emil Lupu gang.al...@gmail.com wrote: have you enabled the plugin from config/ProjectConfiguration.class.php ? On Wed, Dec 16, 2009 at 5:19 PM, Marco V. vantaggiat...@gmail.com wrote: Hi, I'm a new user here and I hope to be welcomed. :) I have some problems to installing and using ysfYUIPlugin. When i try to install this plugin, the cli return me this message No release available for plugin ysfYUIPlugin. I copied ysfYUIPlugin folder in projectDirectory/plugins but don't working. :( Can someone help me please? This is my system configuration: - Windows XP SP2 - EasyPHP 2.0.0.0 - Apache 2.2.13 - MySQL 5.1.32 - PHP 5.3.0 - Symfony v. 1.2.9 - ORM: Doctrine P.S. Sorry for my bad english. -- 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 athttp://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.
Re: [symfony-users] Fatal error: Class 'sfInflector' not found
Hello Berker, This happening when you install turkish version of ubuntu (or not english) On tr_TR local, strtolower function is not working as expected. (symfonylibfolder/autoload/sfCoreAutoload.class.php at function getClassPath @ line 116) ?php echo strtolower('sfInflector'); // result is: sfInflector ? Solution is, in symfonylibfolder/autoload/sfCoreAutoload.class.php please find this line (probably in line 440) 'sfinflector' = 'util/sfInflector.class.php', and replace with 'sfInflector' = 'util/sfInflector.class.php', It should work now. Hope it helps. Umarım yardımcı olabilmişimdir :) Best Regards, Serkan Koyuncu 2009/12/16 Berker Peksağ berker.pek...@gmail.com: Hi, I'm trying install symfony 1.4.1 on Ubuntu 9.04 but I'm getting this error: ber...@berker-desktop:/home/sfproject$ php lib/vendor/symfony/data/bin/ symfony -V Fatal error: Class 'sfInflector' not found in /home/sfproject/lib/ vendor/symfony/lib/task/sfTask.class.php on line 274 Thanks. -- 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.
[symfony-users] Re: Question about link_to_remote: 'complete' option
I have this: ?php echo javascript_tag( function myfuncion1() { alert('Test'); } ) ? div class=non_read_message id=message_1 ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido', 'update' = 'message_1', 'complete' = 'myfunction1()', 'loading' = visual_effect(''), 'complete'= visual_effect(''), )); ? /div The javascript window with the word Test is not showed after clicking on the link. Javi On Dec 16, 3:33 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: try putting alert(Test) in front of it. On Wed, Dec 16, 2009 at 6:40 PM, tirengarfio tirengar...@gmail.com wrote: Thanks Deepak, but it didn't work.. Javi On Dec 16, 1:42 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@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.comsymfony-users%2bunsubscr...@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.
[symfony-users] Re: Question about link_to_remote: 'complete' option
Sorry I mean this: ?php echo javascript_tag( function myfunction1() { alert('Test'); } ) ? On Dec 16, 6:44 pm, tirengarfio tirengar...@gmail.com wrote: I have this: ?php echo javascript_tag( function myfuncion1() { alert('Test'); } ) ? div class=non_read_message id=message_1 ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido', 'update' = 'message_1', 'complete' = 'myfunction1()', 'loading' = visual_effect(''), 'complete'= visual_effect(''), )); ? /div The javascript window with the word Test is not showed after clicking on the link. Javi On Dec 16, 3:33 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: try putting alert(Test) in front of it. On Wed, Dec 16, 2009 at 6:40 PM, tirengarfio tirengar...@gmail.com wrote: Thanks Deepak, but it didn't work.. Javi On Dec 16, 1:42 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@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.comsymfony-users%2bunsubscr...@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.
[symfony-users] New version of sfDoctrineGuardPlugin
Hi, I am sending this message to notify everyone of some plans for sfDoctrineGuardPlugin. Today I branched http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/trunk/ to http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/branches/1.3/ If you are using symfony 1.3 or 1.4 and want a stable sfDoctrineGuardPlugin you should use this branch. Today I will begin development of a new version of sfDoctrineGuardPlugin that merges some functionality from sfSympalUserPlugin for forgot password, registration, etc. so that sfSympalPlugin can just use sfDoctrineGuardPlugin instead of maintaining its own sfSympalUserPlugin. I will maintain BC in this version for the most part and only add new functionality. Once I have this version done, Dustin Whittle and I will branch yet again to work on another newer version that is not BC at all and will be a completely new version of sfDoctrineGuardPlugin containing many new cool things. Thanks, Jon -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org You should follow me on Twitter: http://www.twitter.com/jwage You can contact Jonathan about Doctrine, Symfony and Open-Source or for training, consulting, application development, or business related questions at jonathan.w...@sensio.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-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: Problem with ysfYUIPlugin installation... Help me please!!! :(
Why don't u try to download the pear package, if any? sent via htc magic On Dec 16, 2009 7:20 PM, Marco V. vantaggiat...@gmail.com wrote: Sorry, can someone give me the link for downloading ysfYUIPlugin? Because I download it from this link: http://svn.symfony-project.org/plugins/ysfYUIPlugin/branches/1.3/ but now i checked all folders and i have noticed that this package is incomplete compared to this package: http://trac.symfony-project.org/browser/plugins/ysfYUIPlugin/trunk?rev=10317 For example in first package there aren't the helpers, the config files in config folder, etc... I tried to download the second link, but I was not able. :( Is this my problem? How I can download the folder at second link? Help!!! :( :( On 16 Dic, 16:40, Marco V. vantaggiat...@gmail.com wrote: My ProjectConfiguration class conta... -- 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] sfRenderException
Check ic that does not include any css with it. sent via htc magic On Dec 16, 2009 11:16 PM, cbsi.cnb cbsi@gmail.com wrote: There are errors being logged in Apache's php_error.log with the following: PHP Fatal error: Uncaught exception 'sfRenderException' with message 'The template error404Success.css.tpl does not exist or is unreadable in .' I have a directory with the structure as outlined below. --app | --modules | --errors | --actions | --actions.class.php --templates | --error404Success.tpl The actions.class.php file contains class errorsActions extends sfActions { public function executeError404($request) { header(HTTP/1.0 404 Not Found); echo file_get_contents('http://www.zdnet.com/error.html'); } } and the error404Success.tpl file does not have any code as it is not needed. I cannot determine why the app is looking for a file error404Success.css.tpl instead of error404Success.tpl. -- 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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] sfRenderException
You do not return anything, so symfony presumes Success - that is why it is looking for your Success template. On Wed, Dec 16, 2009 at 22:04, cbsi.cnb cbsi@gmail.com wrote: public function executeError404($request) { header(HTTP/1.0 404 Not Found); echo file_get_contents('http://www.zdnet.com/error.html'); } -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Problem with ysfYUIPlugin installation... Help me please!!! :(
How can I do? Everytime that I write in cli symfony plugin:install ysfYUIPlugin, it return me this message No release available for plugin ysfYUIPlugin and also many function deprecated. On 16 Dic, 19:55, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Why don't u try to download the pear package, if any? sent via htc magic On Dec 16, 2009 7:20 PM, Marco V. vantaggiat...@gmail.com wrote: Sorry, can someone give me the link for downloading ysfYUIPlugin? Because I download it from this link:http://svn.symfony-project.org/plugins/ysfYUIPlugin/branches/1.3/ but now i checked all folders and i have noticed that this package is incomplete compared to this package:http://trac.symfony-project.org/browser/plugins/ysfYUIPlugin/trunk?re... For example in first package there aren't the helpers, the config files in config folder, etc... I tried to download the second link, but I was not able. :( Is this my problem? How I can download the folder at second link? Help!!! :( :( On 16 Dic, 16:40, Marco V. vantaggiat...@gmail.com wrote: My ProjectConfiguration class conta... -- 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: Problem with ysfYUIPlugin installation... Help me please!!! :(
Hi, Try in command line pear download $package_url ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! 2009/12/16 Marco V. vantaggiat...@gmail.com How can I do? Everytime that I write in cli symfony plugin:install ysfYUIPlugin, it return me this message No release available for plugin ysfYUIPlugin and also many function deprecated. On 16 Dic, 19:55, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Why don't u try to download the pear package, if any? sent via htc magic On Dec 16, 2009 7:20 PM, Marco V. vantaggiat...@gmail.com wrote: Sorry, can someone give me the link for downloading ysfYUIPlugin? Because I download it from this link: http://svn.symfony-project.org/plugins/ysfYUIPlugin/branches/1.3/ but now i checked all folders and i have noticed that this package is incomplete compared to this package: http://trac.symfony-project.org/browser/plugins/ysfYUIPlugin/trunk?re... For example in first package there aren't the helpers, the config files in config folder, etc... I tried to download the second link, but I was not able. :( Is this my problem? How I can download the folder at second link? Help!!! :( :( On 16 Dic, 16:40, Marco V. vantaggiat...@gmail.com wrote: My ProjectConfiguration class conta... -- 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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] Re: Problem with ysfYUIPlugin installation... Help me please!!! :(
You can also install subversion client (svn-client or tortoise) and try svn co http://svn.symfony-project.com/plugins/ysfYUIPlugin/path/to/your/plugins/dir; in cmd line or right-clicktortoisecheckout or maybe playing with svn prop:external(s) in your plugins dir ? If think this can work afaik. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! 2009/12/16 Stéphane stephane.er...@gmail.com Hi, Try in command line pear download $package_url ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! 2009/12/16 Marco V. vantaggiat...@gmail.com How can I do? Everytime that I write in cli symfony plugin:install ysfYUIPlugin, it return me this message No release available for plugin ysfYUIPlugin and also many function deprecated. On 16 Dic, 19:55, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Why don't u try to download the pear package, if any? sent via htc magic On Dec 16, 2009 7:20 PM, Marco V. vantaggiat...@gmail.com wrote: Sorry, can someone give me the link for downloading ysfYUIPlugin? Because I download it from this link: http://svn.symfony-project.org/plugins/ysfYUIPlugin/branches/1.3/ but now i checked all folders and i have noticed that this package is incomplete compared to this package: http://trac.symfony-project.org/browser/plugins/ysfYUIPlugin/trunk?re... For example in first package there aren't the helpers, the config files in config folder, etc... I tried to download the second link, but I was not able. :( Is this my problem? How I can download the folder at second link? Help!!! :( :( On 16 Dic, 16:40, Marco V. vantaggiat...@gmail.com wrote: My ProjectConfiguration class conta... -- 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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] Re: Question about link_to_remote: 'complete' option
This means your javascript code is not getting executed. On Wed, Dec 16, 2009 at 11:14 PM, tirengarfio tirengar...@gmail.com wrote: I have this: ?php echo javascript_tag( function myfuncion1() { alert('Test'); } ) ? div class=non_read_message id=message_1 ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido', 'update' = 'message_1', 'complete' = 'myfunction1()', 'loading' = visual_effect(''), 'complete'= visual_effect(''), )); ? /div The javascript window with the word Test is not showed after clicking on the link. Javi On Dec 16, 3:33 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: try putting alert(Test) in front of it. On Wed, Dec 16, 2009 at 6:40 PM, tirengarfio tirengar...@gmail.com wrote: Thanks Deepak, but it didn't work.. Javi On Dec 16, 1:42 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com wrote: Hi, i want to change the class of a div after clicking a link. In the same time i would like to execute a symfony action. For that, im using link_to_remote this way: div class=non_read_message id=message_1 Message's content div class=footer ?php echo link_to_remote('Already read it', array( 'url' = 'mensaje/cambiarEstadoLeido, 'update' = 'message_1', 'complete' = 'document.getElementById (message_1).className(read_message);', )); ? /div /div My problem: after clicking on the link the class of the div doesn't change... I don't have any problem using link_to_function and a .js file. Any idea? Regards 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@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.comsymfony-users%2bunsubscr...@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.
Re: [symfony-users] Help A Newbie! sfdoctrineapply - setting group id upon registration
Override the save method in your sfGuardUser class. Sf creates 3 files in the case of the plugins. A base class, a plugin class and the instantiated class I will be more verbose in around 1 hour sent via htc magic On Dec 17, 2009 5:33 AM, Billy Paradise billyparad...@gmail.com wrote: Hi all, I've been spinning for a few hours on this - admittedly I'm a very junior programmer at this point. Could you please point me in the direction so I can auto-assign all new registrations through /apply to sfGuardUserGroup 1 (for example)? I have different classes of user, and all auto-created users need to be be given a group, rather than left as NULL. I believe the magic happens in apps/frontend/modules/sfApply/lib/ BasesfApplyActions.class.php, in the executeApply function. Thanks! -- 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.comsymfony-users%2bunsubscr...@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.