[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] Re: Can a form post to a component ?

2009-06-25 Thread Giselle Cantador
Sid is right. I've several components and one action to manipulate them. On Wed, Jun 24, 2009 at 11:35 PM, Sid Bachtiar sid.bacht...@gmail.comwrote: As far as I know, the answer is no. You have to use action for that, but the action can call components, so you can still reuse your

[symfony-users] Ajax - 304 Handle

2009-06-25 Thread Guychmyrat Amanmyradov
Hi, i have perodicall call function               ?php echo jq_periodically_call_remote(array(                'frequency' = '10',               'update' = 'divname',               'raw_with' = 'online_user_list=' + $('#online_user_list').val(),               'url'    =

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

2009-06-25 Thread Nickolas Daskalou
Do you have permissions on the machine to create sockets? If so, and you want an all PHP solution, you could create an extremely small PHP script that runs as a daemon (the server), and create a socket with it, from which this script will continuously wait for (any number of) clients to connect.

[symfony-users] Re: Ajax - 304 Handle

2009-06-25 Thread Nickolas Daskalou
Stupid question, but in your real code do you add the dollar sign ($) in front of online_user_list? Ie.: if ($online_user_list == 1) and not: if (online_user_list == 1) ? 2009/6/25 Guychmyrat Amanmyradov guychmy...@yahoo.com.tr Hi, i have perodicall call function ?php echo

Yan: [symfony-users] Re: Ajax - 304 Handle

2009-06-25 Thread Guychmyrat Amanmyradov
i did not copy / pasted the code. in real code there is no such error. i am not asking syntax errors. i am asking about 304. if it is stupid question, why not u answer ? --- 25/06/09 Per tarihinde Nickolas Daskalou n...@daskalou.com şöyle yazıyor: Kimden: Nickolas Daskalou n...@daskalou.com

Re: Yan: [symfony-users] Re: Ajax - 304 Handle

2009-06-25 Thread Nickolas Daskalou
Sorry, it came out wrong, I mean't MY question would probably be stupid, not yours, my apologies. Ok so it's not syntax. Have you tried replacing: return sfView::HEADER_ONLY with: return $this-renderText(''); ? 2009/6/25 Guychmyrat Amanmyradov guychmy...@yahoo.com.tr i did not copy /

[symfony-users] Re: Can a form post to a component ?

2009-06-25 Thread juro
Why did you manhandle my discussion for you question? How rude! On Jun 25, 2:51 am, Patrick Fong patr...@ddns.com.au wrote: Hi all, I've done a bit of searching but have not been able to dig up any information. Does anyone know if it is possible for form post data to be handled by a

Re: Yan: [symfony-users] Re: Ajax - 304 Handle

2009-06-25 Thread Guychmyrat Amanmyradov
unfortunatly i did not work :( i think i must set some more header informations... thnx for answer. --- 25/06/09 Per tarihinde Nickolas Daskalou n...@daskalou.com şöyle yazıyor: Kimden: Nickolas Daskalou n...@daskalou.com Konu: Re: Yan: [symfony-users] Re: Ajax - 304 Handle Kime:

[symfony-users] Re: Admin generator: the model class does not exist?

2009-06-25 Thread Gustavo
OK, It seems that my model was generated outside the standard lib.model PHP package defined in propel.ini. When I generated my model using lib.model, all worked. So my question now is how to configure propel to generate model classes outside the default lib.model package in a way that the admin

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

2009-06-25 Thread Tom Haskins-Vaughan
Just come across this problem. What's the best way to test if the model class is being called by the cli or not? Cheers, Tom Frank Stelzer wrote: 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

[symfony-users] my-first-project-1.2: error listing 1-26

2009-06-25 Thread Cyrille37
Hello, I'm discovering Symfony and it seems really nice. I'm running the tutorial my-first-project-1.2-en.pdf and I've found a error in listing 1-26 on page 11 : the action should be new not edit : The code : ?php echo link_to('Add a comment', 'comment/edit?post_id='.$blog_post- getId()) ?

[symfony-users] Handling embedded forms that are embedded

2009-06-25 Thread juro
Hi, seeing that someone decided to hijack my thread (no idea why), I shall try again: I have a (simplified) model Template: columns: id: [ integer, primary, autoincrement ] name: [ varchar(40) ] relations: Exercises: class: Exercise local: id foreign:

[symfony-users] Re: Customizing sfGuardAuth signin

2009-06-25 Thread justin_davis
Yeah, that's the problem. There's a redirect at the end of the executeSignin action that sends the user back to the page they were on before doing the signin loop. I'm not sure how to override the signin action to log the signin without having it redirect before it gets to my action. Perhaps a

[symfony-users] Re: Customizing sfGuardAuth signin

2009-06-25 Thread Richtermeister
Hey Justin, as part of the authorization, a signin() method is called on the sfGuardSecurityUser object (myUser). That's the function I would overwrite and add the logging to. Hope this helps, Daniel On Jun 25, 7:59 am, justin_davis jdavis1...@gmail.com wrote: Yeah, that's the problem.  

[symfony-users] Re: SOT: Help with Doctrine query

2009-06-25 Thread Reynier Pérez Mira
Bertrand Zuchuat wrote: Hello, Check your model name. Relation is -leftJoin('aliasRoot.ModelName aliasModelName) Best regards Thanks again Bertrand. I build the relations and now it works fine. I just have a last question: How I can show the results in templates? Any tutorial?

[symfony-users] Re: Shopping Cart Plugin - 1.2 - Doctrine

2009-06-25 Thread Richtermeister
Hey Guys, From what I remember the shopping cart plugin doesn't make any use of symfony resources that have changed between 1.0 and 1.2, so I'm pretty sure you're save. As for the propel dependency, yes, there's some code in there that is hardly ever used. The whole plugin is very, very simple

[symfony-users] Mocks and Stubs with sfLimeExtraPlugin - Developer Preview

2009-06-25 Thread Bernhard Schussek
Hello everyone, I created a small plugin that supports generating mock objects for use in lime tests. It is heavily inspired by EasyMock, mockobjects and PHPUnit. The plugin currently also features expectation lists, sets and bags. The plugin is still an early alpha and probably subject to

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

2009-06-25 Thread Bernhard Schussek
I personally would pass a parameter. Anything else is pure magic. What is it that you are trying to achieve? Bernhard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] Re: my-first-project-1.2: error listing 1-28

2009-06-25 Thread Bernhard Schussek
Hi Cyrille, Instead of posting lots of messages to this list, you're much better off by creating tickets in trac ;-) http://trac.symfony-project.org Set the ticket type to documentation and it surely will be fixed sooner or later. Bernhard

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

2009-06-25 Thread Tom Haskins-Vaughan
I've modified the save() method of a model class to deal with created_by/updated_by. But since I use sfContext::getInstance()-getUser(), it breaks on the cli. How would I pass a parameter? I notice that there's a nice looking plugin for propel actAsSignableBehvaviour or something, but I

[symfony-users] propel:data-load error: Unknown class propelPeer

2009-06-25 Thread Cyrille37
Hi, I'm still discovering the great Symfony framework. When I launch the command : symfony.bat propel:data-load it throw the error Unknown class propelPeer. Other commands like propel:build-all work fine. thanks for help Sheers cyrille --~--~-~--~~~---~--~~

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

2009-06-25 Thread Bernhard Schussek
I'll let the code speak. class MyModel extends ... { private $user = null; public function setUser(sfUser $user) { $this-user = $user; } public function save(...) { if (is_null($this-user)) { throw new LogicException('User must be set before saving'); }

[symfony-users] Re: propel:data-load error: Unknown class propelPeer

2009-06-25 Thread Eno
On Thu, 25 Jun 2009, Cyrille37 wrote: When I launch the command : symfony.bat propel:data-load it throw the error Unknown class propelPeer. Sounds like your fixtures file is incorrect. Can we see it? -- --~--~-~--~~~---~--~~ You received this

[symfony-users] Re: ysfDimensions and multiple dimension

2009-06-25 Thread Dustin Whittle
Alex, 1) APC - check! 2) Enabled ysfDimensionsPlugin in ProjectConfiguration::setup() 3) Changed parent class for ProjectConfiguration (extends ysfProjectConfiguration), frontendConfiguration (extends ysfApplicationConfiguration) 4) Updated dimensions.yml with valid dimensions 5) Update

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

2009-06-25 Thread Bernhard Schussek
Usually in your actions, or wherever else the save() call originates from and the user variable is available. I can't give you a more detailed reply unless you tell me a little bit about your code. I've never been that great at this telepathy stuff. :-) Bernhard

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

2009-06-25 Thread Bernhard Schussek
In that case I recommend to call setUser() before you feed the form with the record. Otherwise you have to pass the user to the form, from where you have to pass it to the model, from where ... you know the drill :-) $record-setUser($this-getUser()); $form = new Form($record); // etc. One of

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

2009-06-25 Thread Tom Haskins-Vaughan
Thanks, for all your help (and patience!), Bernard. I'll let you know how I get on. Cheers, Tom Bernhard Schussek wrote: In that case I recommend to call setUser() before you feed the form with the record. Otherwise you have to pass the user to the form, from where you have to pass it to

[symfony-users] Re: ysfDimensions and multiple dimension

2009-06-25 Thread Thomas Rabaix
Dustin, A while ago I have opened a ticket about the cache handler definition in ysfDimension, maybe this can be integrated into the plugin ? http://trac.symfony-project.org/ticket/6267 Thanks On Thu, Jun 25, 2009 at 6:21 PM, Dustin Whittle dustin.whit...@gmail.comwrote: Alex, 1) APC -

[symfony-users] Reports Tutorial

2009-06-25 Thread roberto german puentes diaz
hi to all... yesterday eclipse release a new PDT 2.1 with Eclipse/Galileo 3.5 I'm looking for a tutorial report for symfony/php. I see : http://www.eclipse.org/birt/phoenix/deploy/usingPHP.php http://www.samaxes.com/2006/12/birt-and-php-reporting/ I propose or ask, a tutorial of symfony's

[symfony-users] Problem with doctrine and id fields on I18n

2009-06-25 Thread Fabrizio
Hi, I have the following scheme that works properly. In particular, generates the correct field relations musica_recensioni.creato_da_ana_nomi_id and musica_recensioni.aggiornato_da_ana_nomi_id AnaNomi: tableName: ana_nomi actAs: Timestampable: created: name: creato_il

[symfony-users] Re: Customizing sfGuardAuth signin

2009-06-25 Thread justin_davis
Beautiful - works like a charm. Thanks so much! Justin On Jun 25, 10:25 am, Richtermeister nex...@gmail.com wrote: Hey Justin, as part of the authorization, a signin() method is called on the sfGuardSecurityUser object (myUser). That's the function I would overwrite and add the logging

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

2009-06-25 Thread Lee Bolding
On 25 Jun 2009, at 15:26, Tom Haskins-Vaughan wrote: Just come across this problem. What's the best way to test if the model class is being called by the cli or not? Test for the presence of the $_SERVER array. --~--~-~--~~~---~--~~ You received this

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

2009-06-25 Thread Tom Haskins-Vaughan
But $_SERVER exits even on the CLI :( Lee Bolding wrote: On 25 Jun 2009, at 15:26, Tom Haskins-Vaughan wrote: Just come across this problem. What's the best way to test if the model class is being called by the cli or not? Test for the presence of the $_SERVER array.

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

2009-06-25 Thread Tom Haskins-Vaughan
But this seems to work: if (!array_key_exists('REMOTE_ADDR', $_SERVER)) { return parent::save($conn); } $user = sfContext::getInstance()-getUser(); ... Tom Haskins-Vaughan wrote: But $_SERVER exits even on the CLI :( Lee Bolding wrote: On 25 Jun 2009, at 15:26, Tom Haskins-Vaughan

[symfony-users] $this-getUser() - lime - functional (TDD)

2009-06-25 Thread sikk
hey guys, I'm currently trying to put in place some functional testing with symfony 1.2.* I can't find the right solution to be able to simulate the user as logged in correctly to be used in many test case. Someone got any strategy already implemented and workin ? Thanks a lot ! sikk

[symfony-users] Problems with sfDoctrinePager

2009-06-25 Thread Reynier Pérez Mira
Hi every: I'm trying to paginate. For this in my model I do that: Job.class.php -- class Job extends BaseJob { static public function obtenerUltimosTrabajos($current = 1, $limit) { $last1day = date('Y-m-d H:i:s', time() - 86400); $pager = new

[symfony-users] Re: $this-getUser() - lime - functional (TDD)

2009-06-25 Thread particul.es
Yo Sikk, Not sure, that's the best practice... --- class myTestBrowser extends sfTestFunctional { public function signin($username, $password) { return $this-get('/sfGuardAuth/signin')- setField('signin[username]', $username)- setField('signin[password]',

[symfony-users] Re: Status of PayPal plugin(s)

2009-06-25 Thread a...@speedypin.com
I think Simon Cast has a point, a) Paypal is crucial, but Amazon Payments is building traction, (it’s a solid affordable solution for many vendors) b) Support reoccuring payments. [I am thinking through the adapter pattern as each provider that supports it will have a different implementation. I

[symfony-users] Re: $this-getUser() - lime - functional (TDD)

2009-06-25 Thread sikk
I know i will post a lot of code within this msg, i'll try to keep it light as possible : The only things i test actually is to act as logged user and if the page /address is correctly loaded (200). I discover that if i go into setting.yml and change the php error level, i have kind of success,