Re: [symfony-users] Use event dispatcher on asynchronous mode

2010-04-09 Thread Frank Stelzer
Asynchronous executing is not possible, as there are no threads in PHP. However you could create a new shell task in your event listener. This process will run independant from your current PHP process. Am 08.04.2010 um 18:50 schrieb Dong YANG: Hello everyone, I have a question about

Re: [symfony-users] symfony and doctrine svn commit history visualization with Gource and Code Swarm

2010-04-05 Thread Frank Stelzer
Very nice! I have seen CodeSwarm already for other projects and it is always impressive :) Very interesting to see, how the swarm looks like and behaves during release times. I recommend an additional english version of this blog post :) Frank Am 03.04.2010 um 20:17 schrieb ruslanix:

Re: [symfony-users] Blackberry Browser Requests result in Strange Template Assignment

2010-03-28 Thread Frank Stelzer
Have a look at this blog post: http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optimized-version-of-your-website-for-the-iphone-in-symfony-1-1 I think you should do the same thing as it is shown in the first ProjectConfiguration listing. Add your own event listener and fix the

Re: [symfony-users] no web debug toolbar in symfony 1.2.12

2010-03-25 Thread Frank Stelzer
Search your complete project for sf_web_debug. Maybe the other developer has disabled the web debug toolbar by hand [1] somewhere else in the code. Btw on/off in yml files would still work. The parser was replaced in 1.3 imho. [1] with sfConfig::set('sf_web_debug', false); Am

Re: [symfony-users] Unable to put sfGuardUser tables in a different database that the rest of the tables

2010-03-19 Thread Frank Stelzer
Mmh, i think the only chance getting this working is the way of defining a different db connection for all of your custom schema. So the propel connection would only point to the guard schema and your project schema to the rest. This would only work, when you do not use other plugins, which

Re: [symfony-users] Please help me with plugin development

2010-03-13 Thread Frank Stelzer
First of all you should define the list of your files and folders correctly. The folder definitions (lib, lib/storage ...) are missing withing your content tag. Am 12.03.2010 um 14:02 schrieb Yura Rodchyn: Hi, I'm write sfUserOnlinePlugin then put package.xml file into root plugin

Re: [symfony-users] sfPhpunitPlugin - working on sf1.4.2

2010-03-04 Thread Frank Stelzer
Hi, You may have a look at sfPHPUnit2Plugin: http://www.symfony-project.org/plugins/sfPHPUnit2Plugin It's written for sf 1.4.X. Frank Am 20.02.2010 um 20:50 schrieb Stéphane: Hi list, Does someone use this plugin with symfony 1.4.2 ? Thanks, Salut, Est-ce que quelqu'un utilise ce

Re: [symfony-users] Facebook Connect added auth_token

2010-03-04 Thread Frank Stelzer
Hi, I wrote a complete fb application and had a similar problem. The problem was that the fb requests lost the session in the sf app all the time. The fb requests do not support cookies and so the normal session storage does not work. In my case, I worked with a special session storage

Re: [symfony-users] Re: how to set up and configure memcache?

2010-02-07 Thread Frank Stelzer
Hi, Here is explained, how you could configure memcache for the view cache or how you can handle memcache using within a singleton using it for everything: http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ Frank Am 08.02.2010 um 05:05 schrieb Joshua: My end goal here

Re: [symfony-users] Route making automatic database calls

2010-02-07 Thread Frank Stelzer
Is $product in your foreach loop a simple array or a doctrine record? When it is a doctrine record, this would work too (without doing further db queries): ?php echo link_to($product['title'], 'product', $product) ? Frank Am 08.02.2010 um 01:24 schrieb HiDDeN: I have this route:

Re: [symfony-users] Logging not working.

2010-02-03 Thread Frank Stelzer
You should have a look at this doc page: http://www.symfony-project.org/book/1_0/19-Mastering-Symfony-s-Configuration-Files#Symfony%20Settings The logging in production environment has to be enabled via the logging_enabled flag in the settings.yml first. Otherwise the logging.yml will be

Re: [symfony-users] Auto save data

2010-02-03 Thread Frank Stelzer
What should this snippet do? You do not call any setter of your model. btw: '.date('Y').'-'.date('m').'-01' - date('Y-m').'-01' looks better :P Am 03.02.2010 um 22:23 schrieb Germana Oliveira: im trying to make the system to save some data, so i do this: $audiencia = new Audiencia();

Re: [symfony-users] Existing site and symfony integration

2010-01-30 Thread Frank Stelzer
Hi, I have the same problem. The most tricky part in our case is, that the new symfony rendered parts have to feel and look like the old rendered parts. How did you do that in your cases? Did you manage two parallel code bases for your css and js which did almost the same thing? Frank

Re: [symfony-users] Using an action to generate an image as an image tag src attribute

2010-01-28 Thread Frank Stelzer
Hi, Step 1: Define a custom route for it , e.g: user_image: url: /user/image/:id.jpg param: { module: userImage, action: show } Then your suggested call would work quite well: img src=?php echo url_for('@user_image?id='.$id); ? alt=blah / Do not know exactly if this would work either:

Re: [symfony-users] Drag'n'drop

2010-01-11 Thread Frank Stelzer
... or use an according sf plugin, which includes your requirements (e.g sfJqueryReloadedPlugin, when you use jQuery as js lib). DragDrop and the rest of the js features aren't anymore parts of the sf core. Am 10.01.2010 um 14:42 schrieb Thomas Rabaix: This feature is deprecated. You must

Re: [symfony-users] sfDoctrineGuard is killing me

2010-01-10 Thread Frank Stelzer
Hi, Looks like a SQL Problem. You should get a detailed explained error, when you try to execute this query directly to your database: ALTER TABLE sf_guard_group_permission ADD CONSTRAINT sf_guard_group_permission_permission_id_sf_guard_permission_id FOREIGN KEY (permission_id) REFERENCES

Re: [symfony-users] sfJqueryReloadedPlugin in 1.4

2009-12-14 Thread Frank Stelzer
You can download the package (http://plugins.symfony-project.org/get/sfJqueryReloadedPlugin/sfJqueryReloadedPlugin-1.2.4.tgz ) and install the plugin by hand. In this way you bypass the compatibility check and in most of the cases this workaround will work, until the plugin get some

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
Hi, You have to understand the purposes of the two different user classes: The myUser class handles all security and session related stuff. It does not know any model specific details, as there might be something like a username field or an email field in some database table. The guard

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
here my problem is that it does not seem possible to extend my custom user class to sfBasicSecurityUser cause it already extends its base class! i'm stuck here... 1. Take the myUser class and extend it from sfBasicSecurityUser as it is by default. 2. Leave your MyCustomUser model class as

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
You do not have to re-implement those methods, as your model class has it already done. You cann access them via: $this-getUser()-getCustomUser()-getEmail(); or add wrapper methods in your myUser class: myUser: --- public function getEmail() { return $this-getCustomUser()-getEmail(); }

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
that it should return a MyCustomUser instance... On Oct 26, 11:45 pm, Frank Stelzer d...@bleedingmoon.de wrote: You do not have to re-implement those methods, as your model class has it already done. You cann access them via: $this-getUser()-getCustomUser()-getEmail(); or add wrapper

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
')) { $this-user = MyCustomUserPeer::retrieveByPk($id); } return $this-user; } } On Oct 26, 11:57 pm, Frank Stelzer d...@bleedingmoon.de wrote: Yes Add a method in your myUser class for retrieving an according and valid instance of your guard user entry and thats it (see

[symfony-users] Re: custom user class

2009-10-26 Thread Frank Stelzer
you think you've finished with me! :P $id = $this-getAttribute('id', null, 'MyCustomUser') does not return any id... :( i've even tried: $this-getAttribute('id', null, 'sfGuardSecurityUser') and $this-getAttribute('user_id', null, 'sfGuardSecurityUser') On Oct 27, 12:11 am, Frank Stelzer

[symfony-users] Re: popup

2009-10-22 Thread Frank Stelzer
Hi, Include a custom partial to your generator.yml. In this template for this action you could do whatever you want and create the link for your popup. list: display: [id, , _add_comment] fields: add_comment:{ label: Add a comment }

[symfony-users] Re: Optimizing Lots of Routes

2009-10-20 Thread Frank Stelzer
Hi, In my pretty easy CMS application i have written a own configuration handler, which is called very early during a request. This request fetches all cms pages from the database and adds all according routes to the routing. In this way you could use the link_to and url_for helpers as you

[symfony-users] Re: cross application functional testing possible?

2009-09-10 Thread Frank Stelzer
Nice to see someone, who uses the sfPhpunitPlugin :) I'll take the isolate option over to the upcoming release, which has much more functional testing support, than the 1.0.4 version. Frank Am 10.09.2009 um 08:56 schrieb Максим Олейник: I've got this problem too. But i'm using

[symfony-users] Re: how do I found our if anything has been added to a Criteria object? How do I find the length of the current query?

2009-08-31 Thread Frank Stelzer
Mmmh, why not this way? --- $this-listOfMembersWhoMeetSearchCriteria = array(); $c = new Criteria(); $uvaStatusArray = $request-getParameter('uva_status'); if (is_array($uvaStatusArray)) { for ($i=0; $i count($uvaStatusArray); $i++) { if ($i 0) {

[symfony-users] Re: remote_function in input_date_tag

2009-08-07 Thread Frank Stelzer
You need the with parameter. http://www.symfony-project.org/book/1_2/11-Ajax-Integration#Basic%20JavaScript%20Helpers remote_function(array( 'update' = 'common_area', 'url' = 'home/showbooking, 'script' = true, 'with' = 'selectdate='+ some_javascript_value );

[symfony-users] Re: remote_function in input_date_tag

2009-08-07 Thread Frank Stelzer
it isn't that difficult: 'with' = 'selectdate='+ this.value Am 07.08.2009 um 08:31 schrieb DEEPAK BHATIA: Hi, Thanks for your mail. I am not able to get some_javascript_value. Please help me in this regard. Thanks Deepak On Fri, Aug 7, 2009 at 11:46 AM, Frank

[symfony-users] Re: routing.data.cache

2009-07-28 Thread Frank Stelzer
I would not share the cache folder of a symfony application. The risk for dead locks is too big, like you have experienced it. I would do this: - define the cache folder to a local and not shared directory like / tmp/someproject/cache - purge all your caches when you have deployed something

[symfony-users] Re: sfMemcache sfAdvMemcache

2009-07-27 Thread Frank Stelzer
Memcached is best installed via PECL, as you already pointed out. When you use symfony 1.2 you do not need a plugin for it. sfMemcacheCache will do the job build in. Am 27.07.2009 um 21:56 schrieb Eno: Anyone using these plugins? If so, do you know which PHP extension they need

[symfony-users] Re: sfMemcache sfAdvMemcache

2009-07-27 Thread Frank Stelzer
: On Mon, 27 Jul 2009, Frank Stelzer wrote: Memcached is best installed via PECL, as you already pointed out. When you use symfony 1.2 you do not need a plugin for it. sfMemcacheCache will do the job build in. Ive installed the memcached PECL extension. We're running symfony 1.2.7 - you're

[symfony-users] Re: link_to_remote

2009-07-24 Thread Frank Stelzer
But your former posted ajax template works (the alert example)?? Why the hell do use the body tag there? ... The body tag should be listed in your decoration template. Am 24.07.2009 um 08:34 schrieb DEEPAK BHATIA: Hi, Thanks for the info. But the code below in test2Success.php is YUI

[symfony-users] Re: link_to_remote

2009-07-23 Thread Frank Stelzer
You need the script flag in your remote function call, otherwise you permit to execute javascript within ajax responses: http://www.symfony-project.org/book/1_2/11-Ajax-Integration#chapter_11_sub_authorizing_script_execution Am 24.07.2009 um 07:41 schrieb DEEPAK BHATIA: Hi, The code in

[symfony-users] Re: Access not allowed to frontend_dev.php

2009-07-15 Thread Frank Stelzer
Aeh, the error message tells you, what you have to do :) Look in web/frontend_dev.php and recognize the localhost restriction. Modify this restricition to your needs. Frank Am 15.07.2009 um 21:49 schrieb miza: Hi Guys, I am still trying to follow the first steps into symfony, I am

[symfony-users] Re: Step by Step Guide for learning symfony

2009-07-10 Thread Frank Stelzer
Is it so complicated? :P Just hit the documentation page: http://www.symfony-project.org/doc/1_2/ One of the first sentences points you to Jobeet: 24 tutorials of 1 hour each, that's all it takes to build up a complete and effective application from scratch. Definitely the best way to become

[symfony-users] Re: Deployment Strategies

2009-07-10 Thread Frank Stelzer
Hi, We have a more complicated deployment process. Our requirements: - One svn server: S-SVN - One sync server: SVN-SYNC - dozens of web servers * We have for every project a seperat checked out (and installed) project on S-SVN. * This checkout is updated on every release * This fresh code is

[symfony-users] Re: backend inside a sub folder

2009-07-09 Thread Frank Stelzer
Use symlinks to point from your admin directory to your common web dir. Am 09.07.2009 um 02:49 schrieb Sid Ferreira: Guys, how can I achieve the following: I have a working frontend in the rootdir. And the backend I want to be inside the '/admin' directory. It possible, I don't want to

[symfony-users] Re: Get record values before save()

2009-07-09 Thread Frank Stelzer
Hi, overwrite the setValue method and save the old value there: public function setValue($v) { $this-setOldValue($this-getValue()); parent::setValue($v); } Frank Am 09.07.2009 um 15:53 schrieb Tom Haskins-Vaughan: They way I have it set up at the moment, is overriding the save()

[symfony-users] Re: Symfony sandbox 1.2 installation fatal error

2009-06-30 Thread Frank Stelzer
Without any more information, we couldn't help you much. Which PHP Version do you have? Am 30.06.2009 um 07:08 schrieb Apul: extension=php_domxml.dll is already uncommented and enable. Also, While checking using command prompt, I get a list of enabled modules:

[symfony-users] Re: make front controller invisible

2009-06-29 Thread Frank Stelzer
Hi, 1. Create for every application an subfolder (web_frontend, web_backend, web_something ...) 2. place the front controllers there 3. rename them to index.php 4. adept the relativ paths in the front controller to the subfolder 5. let the virtual hosts point to the just created subfolders 6.

[symfony-users] Re: Using sfEvent in propel objects. NOT behaviors

2009-06-26 Thread Frank Stelzer
Hi, Using the sfContext instance in the model layer is a very often discussed topic in the last days. The latest one is this: http://groups.google.com/group/symfony-users/browse_thread/thread/75b9b1df4398b195?hl=en Fetching the context in the model is a very bad practise and you should find

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-06-25 Thread Frank Stelzer
Hi Chris, The sfJobQueuePlugin will work for some basic actions, like fetching rss feeds or sending emails. I tried to ported the plugin to an 1.2 version, but i had to stop my work on it then and could not implement everything i wanted. But it's pretty easy to create your own rss feed

[symfony-users] Fetch object from routing with user specific data

2009-06-23 Thread Frank Stelzer
Hallo, i am on the implementation of my own routing classes, where i want to fetch some objects (i don't use an ORM) in actions. Now i have a problem, which Fabien has already solved here: http://www.symfony-project.org/plugins/api/1.0/profile.xml The API fetches some data, dependant on the

[symfony-users] Re: Fetch object from routing with user specific data

2009-06-23 Thread Frank Stelzer
Hi Bernhard, Yes, i am using sfObjectRoutes. You opened my eyes! Your trick is very nice. I really didn't think of the solution passing the sfUser object back to the routing. I searched for the link between routing and sfContext|sfUser all the time, without passing additional instances around.

[symfony-users] Re: symfony version and svn

2009-06-10 Thread Frank Stelzer
This is the stable version: http://svn.symfony-project.com/tags/RELEASE_1_2_7/ If a new 1.2 version is released, you have to change your external therefore on your own. Just change your external to the newer tag and you are done. Am 10.06.2009 um 17:22 schrieb Joan Teixidó: Hi, i use

[symfony-users] Re: Option ids in routing rules?

2009-06-08 Thread Frank Stelzer
Hi, url: /getarticle_by_id/:id/:page param: { module: xxx, action: zzz } - url: /getarticle_by_id/:id/:page param: { module: xxx, action: zzz, page: 1 } This will do it, however the routing will then generate links in the form: /getarticle_by_id/123/1, however /getarticle_by_id/123 is

[symfony-users] Re: Why the form isn't saved?

2009-06-06 Thread Frank Stelzer
When you do not have overwritten the sfGuardFormSignin then your logic fails due to the post validator of this form. Look in sfGuardValidatorUser and it should open your eyes. This validator fetches an existing user from the database and returns the cleaned data, when no user could be

[symfony-users] Re: Weird Schema Error

2009-06-04 Thread Frank Stelzer
Ok, then no chance to give more support, when you do not provide more information about your schema. You could have a typo somewhere or whatever Frank yes in that exact order.in the same file, but few comments between them On Thu, Jun 4, 2009 at 02:41, Frank Stelzer d

[symfony-users] Re: Performance: Frozen or Not?

2009-06-04 Thread Frank Stelzer
I prefer memcache too. You can define in your factory.yml that symfony should use memcache for view caching and boom its even faster than normal file caching. With little effort you can use one instance of Memcached for view caching and your custom queries. Frank Am 04.06.2009 um 21:00

[symfony-users] Re: sfForms: CSRF attack detected

2009-06-04 Thread Frank Stelzer
I just even got this error message, when i tried to post a comment to the symfony blog (http://www.symfony-project.org/blog/2009/05/08/be-part-of-the-symfony-plugins-system ). After refreshing the page it worked again. Any idea? Frank Am 28.05.2009 um 17:00 schrieb

[symfony-users] Re: Weird Schema Error

2009-06-03 Thread Frank Stelzer
Hi, Is the order of the tables like in your example? Are the tables split up into different schema files? Frank Am 04.06.2009 um 05:56 schrieb Sid Ferreira: Hi guys! I can't share the content of my schema, but, it happens that it simply can't locate one of the tables. The structure is

[symfony-users] Re: symfony-javascript

2009-06-02 Thread Frank Stelzer
Check - if your .htaccess works - if the web/sf directory is accessible (often symlinked or copied) - if other web folders of needed plugins are accessible (php symfony plugin:publish-assets) Am 02.06.2009 um 09:25 schrieb Jan Albert La Rosa: Also when i click the drop down it should put

[symfony-users] Re: get php warning while creating new instance in my symfony task!!!

2009-06-02 Thread Frank Stelzer
Check the write permissions of the /var/lib/php/session folder. I assume that only the web user can write there. Am 02.06.2009 um 05:45 schrieb ravi: here is my code for the symfony task... i want to render the partial in symfony generated task... so for that i have included few lines for

[symfony-users] Re: json jquery problem ( bug ?)

2009-06-02 Thread Frank Stelzer
This is symfony offtopic. Check your resulting code: complete:function(XMLHttpRequest, textStatus){updateJSON(request, json); That does totally makes no sense. Try something like echo jq_link_to_remote('Refresh the letter', array( 'url' = 'friend/test', 'dataType' = 'json',

[symfony-users] Re: Symfony website broken

2009-05-31 Thread Frank Stelzer
Maybe the route to new getting stared tutorial is broken, which is linked on the installation page. If you need installation information, you can get them here: http://www.symfony-project.org/getting-started/1_2/en/ - Frank Am 31.05.2009 um 13:41 schrieb alvaro: Hi, I'm trying to access

[symfony-users] Re: Alternative to # as dummy href

2009-05-30 Thread Frank Stelzer
Adding javascript events is a much better way and should be prefered. But talking about the original problem again: That should do the trick: --- ?php echo link_to(Link Text, #, array(onClick=javascriptFunction(); return false;) ? --- A href='#' will be still generated, but because of the

[symfony-users] Re: Custom config file is not loaded

2009-05-30 Thread Frank Stelzer
Hi, custom config handlers are not parsed automatically. You have to include this config somewhere first. I just tested it and added this in an action: --- public function preExecute() { include(sfContext::getInstance()-getConfigCache()-

[symfony-users] Re: Previous version save()

2009-05-27 Thread Frank Stelzer
Do not know if i got your idea, but maybe this helps. Save the original values in the setter of the model. This will only work, if the model was already hydrated: private $originalTitle = ''; public function setTitle($v) { $this-originalTitle = $v; return parent::setTitle($v); }

[symfony-users] Re: how can we find out if an URL is pointing to a template? (if we want to delete the template?)

2009-05-25 Thread Frank Stelzer
Define your custom error module and log the actions which could not be reached anymore. Otherwise you have to follow all links of your functional tests and check if the next pages are returning a 200 response, too. Am 25.05.2009 um 22:05 schrieb Lawrence: Recently, I was working on a

[symfony-users] Re: The route x does not exist

2009-05-25 Thread Frank Stelzer
This happens after the latest routing changes, i think. I still have to fight against those changes for myself, too :P Example: = sf 1.1(?) link_to( 'Some cool news', 'news' ); -- would have generate a link to: news/index or only news sf 1.2 link_to( 'Some cool news', 'news' );// same like

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-24 Thread Frank Stelzer
A component does not make sense without any module. It has to execute some logic and this logic should be placed in some module (otherwise you should prefer using a partial). When this logic does not match any other used module, then create a new internal module, where you place your

[symfony-users] Re: forum plugin for propel sf 1.2

2009-05-22 Thread Frank Stelzer
. On Mon, May 18, 2009 at 5:28 PM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: do you have it developed? maybe you could upload it as pear package somwhere else... alecs On Tue, May 19, 2009 at 12:21 AM, Frank Stelzer d...@bleedingmoon.de wrote: I wanted to branch this plugin and make

[symfony-users] Re: id in url by default

2009-05-21 Thread Frank Stelzer
This is your session id. Define php/apache that your session handling is only cookie based and your done. Am 21.05.2009 um 17:14 schrieb saturn1...@hotmail.com: Hello, sometimes i have this king of link in my urls : www.site.com/page?symfony=d21599d476b727cfb571f10668bcf1b5 How can i

[symfony-users] Re: some question for form renderError()

2009-05-20 Thread Frank Stelzer
Hi, you have to decorate your form on your own in this case. More details here: http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_rendererror_method_on_a_field - Frank Am 20.05.2009 um 07:39 schrieb ctrlming: in the template, I got some

[symfony-users] Re: i can't generate a module

2009-05-19 Thread Frank Stelzer
The form classes have to be build first. php symfony propel:build-model php symfony propel:build-forms php symfony cc php symfony propel:generate-module Am 19.05.2009 um 18:34 schrieb Maras: i did try to automatically generate a module for a given model that provides basic

[symfony-users] Re: forum plugin for propel sf 1.2

2009-05-18 Thread Frank Stelzer
I wanted to branch this plugin and make it compatible to 1.2. However my contribution request is open since days and i do not have commit permissions :/ Am 18.05.2009 um 22:51 schrieb Alexandru-Emil Lupu: HI there! do you know a simple forum application compatible with symfony 1.2 ? i

[symfony-users] Re: once again, the error The default context does not exist.

2009-05-17 Thread Frank Stelzer
Did you check, if you are using sfContext in your child model classes on your own? Something like this here would break your task: public function save(PropelPDO $con = null) { // accessing sfContext here will break task sfContext::getInstance()-getLogger()-blah();

[symfony-users] Re: Why the form isn't saved?

2009-05-17 Thread Frank Stelzer
Let me see your current used code please. Maybe there is still a mistake in binding request values to your form. Am 15.05.2009 um 14:29 schrieb Reynier Perez Mira: Your form is invalid, because your bind call is not correct. A missing array_merge call is missing there. Try this one:

[symfony-users] Re: Why this first in the feed is always throwing error

2009-05-15 Thread Frank Stelzer
It is a interpreter problem. ? is interpreted as php opening tag Try this: ?php echo ?; ?xml version=1.0 encoding=utf-8?php echo ? ; ? - Frank Am 15.05.2009 um 22:14 schrieb xhe: I want to create an atom feed, the first two lines are ?xml version=1.0 encoding=utf-8? feed

[symfony-users] Talking about performance, clustering etc.

2009-05-14 Thread Frank Stelzer
Hello, I want to write an article about best practises for performance, clustering etc. in symfony. I think there isn't enough information out there, which is talking about these topics. You all know the official performance documentation page

[symfony-users] Re: Why the form isn't saved?

2009-05-14 Thread Frank Stelzer
Hi, Your form is invalid, because your bind call is not correct. A missing array_merge call is missing there. Try this one: protected function processForm(sfWebRequest $request, sfForm $form) { $form-bind( array_merge($request-getParameter($form-getName(), array() ),

[symfony-users] Re: Symfony 1.2 and sfguard

2009-05-13 Thread Frank Stelzer
This listener does not exist for the sfGuardPlugin. It sounds, that you have defined your own listener without providing static access to it. Am 14.05.2009 um 02:26 schrieb g0d br: genExtraListeners::listenToPreExecute --~--~-~--~~~---~--~~ You received

[symfony-users] Re: symfony form 1.2 field binding

2009-05-09 Thread Frank Stelzer
Hi, just a untested try: $data = $request-getParameter( 'picture' ); $data['filedata'] = $_FILE['Filedata']; $this-form-bind( $data ); Am 09.05.2009 um 13:10 schrieb SNake!: Hi guys, Is there a way to bind a request field to a object field in symfony form? Here is my problem, I am

[symfony-users] Re: question

2009-05-06 Thread Frank Stelzer
Sure, //filter: $this-context-getRequest()-setAttribute( 'foo', 'bar' ); //action: $request-hasAttribute('foo'); $request-getAttribute('foo'); Do not mix up request attributes with normal request parameters! Cheers, Frank Am 06.05.2009 um 09:00 schrieb Jan De Coster: Hi, Is there anyway

[symfony-users] Re: sf_sandbox

2009-05-06 Thread Frank Stelzer
Hi, Can you show us the content of your plugin dir? Maybe you didn't installed the DBFinderPlugin correctly. Cheers, Frank Am 06.05.2009 um 14:11 schrieb maithili.k: I am getting the error when i run http://localhost/sf_sandbox/web Fatal error: Uncaught exception 'InvalidArgumentException'

[symfony-users] Re: Problems with sfExtraWidgetsPlugin

2009-05-05 Thread Frank Stelzer
Hi, the sfExtraWidgetsPlugin is not bundled with the jquery lib and so it is not loaded automatically. Therefore you have to define and load the according jquery and jquery ui assets. Example within PHP (but you should better define this assets in the view.yml): $response-addStyleSheet(

[symfony-users] Re: Problems with sfExtraWidgetsPlugin

2009-05-05 Thread Frank Stelzer
Hi, the jquery datepicker is a component of jquery ui. You only load the basic jquery lib in your example and the ui stuff is missing. Check this page http://jqueryui.com/, click on build custom download and on the next page you see another download button. Download this complete package and

[symfony-users] admin generator: changing field type in 1.2

2008-12-17 Thread Frank Stelzer
Hello, I have two questions about changing the field type in the 1.2 admin generator: 1. I am used ( 1.2) to configure read only timestamp fields in the admin generator like this: --- edit: fields: created_at: { type: input_tag, params: disabled=true }

[symfony-users] Re: admin generator: changing field type in 1.2

2008-12-17 Thread Frank Stelzer
Ok ignore it, layer 8 :) init-admin task is your friend and not generate-admin. I really do not know, why i typed generate-admin in my shell :) Am 17.12.2008 um 23:59 schrieb Frank Stelzer: Hello, I have two questions about changing the field type in the 1.2 admin generator: 1. I am

[symfony-users] Re: url_for ignores no_script_name settings after upgrading 1.1 - 1.2

2008-12-14 Thread Frank Stelzer
Mmmh, no one (again) ? Does nobody else have a problem with the no_script_name settings and the url_for function in 1.2? Am 05.12.2008 um 10:19 schrieb Frank Stelzer: Hello, i currently try(!) to upgrade my current 1.1 project to 1.2 (stable). I read the changelog, the what's new

[symfony-users] url_for ignores no_script_name settings after upgrading 1.1 - 1.2

2008-12-05 Thread Frank Stelzer
Hello, i currently try(!) to upgrade my current 1.1 project to 1.2 (stable). I read the changelog, the what's new and the upgrade tutorial, but i can not fix my url_for problem. Currently i have this setting (standard one): --- dev: .settings: error_reporting:?php echo

[symfony-users] Re: Symfony + smarty

2008-10-05 Thread Frank Stelzer
Hi, same opinion from my side. We use smarty in the office and we are faced very often with smarty limitations which are very annoying. Another thing is the lack of inheritance or customization possibilities of smarty. Try to add a custom handler for the compiling which does not use the

[symfony-users] Re: Adding project to server

2008-09-20 Thread Frank Stelzer
I would create a new subdomain and run the new symfony stuff there, when its only for administration purposes. Am 20.09.2008 um 22:47 schrieb torso: Hi I need help with synchronization. I have a project which is done with clear php, with out any framework. Now I have done simple admin

[symfony-users] Re: sfPropel13Plugin - 'Fatal error: Call to undefined method PDOStatement::next()'

2008-05-24 Thread Frank Stelzer
You have to assign all your custom queries to Propel 1.3 syntax. CreoleStmt:next() for example to PDOStatement::fetch() Read the documentation about PDO for more information: http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/Criteria http://us.php.net/pdo Am 24.05.2008 um 09:05

[symfony-users] Re: accessing model variable in filter

2007-11-12 Thread Frank Stelzer
Uli, there is no huge different between interacting with the model layer in a filter or in a action. Have a look at this filter for an example: http://trac.symfony-project.com/browser/plugins/sfGuardPlugin/lib/ sfGuardBasicSecurityFilter.class.php As you want to do some performance tweaks i

[symfony-users] Re: Model generate problem

2007-11-07 Thread Frank Stelzer
In case you use propel: Use timestamp instead of datetime. Propel supports date, time and timestamp as datecolumn types: http://propel.phpdb.org/docs/user_guide/chapters/ColumnTypes.html And it may read: start_date:timestamp You missed the : - Frank Am 07.11.2007 um 10:25 schrieb

[symfony-users] Different layout file with sfDimensionsPlugin

2007-11-04 Thread Frank Stelzer
Hi, I have a understanding problem with sfDimensionsPlugin. I want to set a dimension, within a preExecute action method, to be able to call a complete different layout.php than the rest does. Example my_module1 - should always be rendered with /app/templates/layout.php my_module2 - should

[symfony-users] Re: Different layout file with sfDimensionsPlugin

2007-11-04 Thread Frank Stelzer
the lookup paths for all files, not just the the layout, it is probably over kill for what you are trying to do. Cheers, Dustin On 11/4/07 5:00 PM, Frank Stelzer [EMAIL PROTECTED] wrote: Hi, I have a understanding problem with sfDimensionsPlugin. I want to set a dimension, within

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-10-23 Thread Frank Stelzer
What is the current state of this plugin? Is there any chance to contribute? I have to implement common shop functionality within the next days and do not want to reinvent the wheel. Please let me know, how you discuss this topic, beside this mailinglist. - Frank Am 04.10.2007 um 20:54

[symfony-users] Re: Propel performance patch

2007-10-16 Thread Frank Stelzer
but many problems with other plugins as well (e.g. the nested set one) Propel 1.3 has nested set support natively, so the nested set plugin is absolete. I use Propel 1.3 in a non-symfony application and it works very well. The disadvantage of Propel 1.3 is currently the lack of debug

[symfony-users] Re: ORM?

2007-10-08 Thread Frank Stelzer
I use Propel 1.3 rev701 standalone in an none symfony project and i like it so much better than 1.2. However, the nested set support has still some bugs, but the rest works very fine. I decided against doctrine because of the lack of stability. I didn't tested Propel 1.3 with symfony, but i

[symfony-users] Re: Callback with Prototype Window

2007-10-08 Thread Frank Stelzer
var json=transport.responseText.evalJSON(false); Did you changed this flag to true already? JS is not evaluated by default after a remote request. Am 08.10.2007 um 17:08 schrieb [EMAIL PROTECTED]: Hi, I got a problem with prototype Window. My goal is to call a PW with a form. The form

[symfony-users] Re: [sfGuardPlugin] Remember Me Filter

2007-10-07 Thread Frank Stelzer
a bug, IMO. If you're sure you're doing everything right, make a trac ticket telling me how to recreate this situation and then assign it to me (davedash) and I'll have a look at it. -d On 8/26/07, Frank Stelzer [EMAIL PROTECTED] wrote: Hi everybody, I have an understanding problem

[symfony-users] Re: GPLed plugins

2007-09-20 Thread Frank Stelzer
Only one small additional idea: Cause of this reason, we could add a extra license filter, which goes throw all installed plugins and check there licenses (so every symfony project could be license validated). Therefore you have to define a plugin_license_only: MIT in your settings.yml or

[symfony-users] Re: sfGuardUser : profile

2007-09-19 Thread Frank Stelzer
try $sf_user-getGuardUser()-getProfile()-getId(); $sf_guard_user is not available in templates normally. Hi everyone, I'm having trouble creating a partial link to the edit user profile in sfGuardUser I've created _userprofile.php in the templates/ directory, but when I try to; ?php

[symfony-users] Re: GPLed plugins

2007-09-19 Thread Frank Stelzer
+1 When i use a plugin hosted on the project website, i assume that the plugin has the same license than the project itself. That means, i would seperate the normal plugins from plugins with other licenses. Tagging would be the first step, but i think it would be too confusing, when there

[symfony-users] Re: single record in the table

2007-09-18 Thread Frank Stelzer
Why do you not add an unique constraint to the name field? Look at the sfPropelUniqueValidator, if you want to validate this constraint on php side. - Frank Am 18.09.2007 um 19:34 schrieb jhon cañas: hi.. I need validate if a record exist in a table before insert. example: id | name

[symfony-users] Re: Image generator

2007-09-10 Thread Frank Stelzer
have a look at this cookbook chapter: http://www.symfony-project.com/cookbook/1_0/upload - Frank Am 10.09.2007 um 20:20 schrieb Eno: Is it possible to manage image uploads through the Symfony generator? If not, is there a plugin that does something similar that's easy to integrate?

[symfony-users] Re: Two new plugins: polling and rating

2007-09-05 Thread Frank Stelzer
Great work! I need this functionality for my current project the next days and i was afraid, that i have to do all the work alone. But so, you saved me lots of hours of work! Thanks! - Frank Am 05.09.2007 um 18:21 schrieb Nicolas Perriault: Francois Zaninotto a écrit : May I suggest

  1   2   >