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
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
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' =
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.
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
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
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 /
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
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:
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
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
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()) ?
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:
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
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.
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?
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
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
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,
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
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
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
--~--~-~--~~~---~--~~
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');
}
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
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
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
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
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
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 -
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
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
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
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
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.
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
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
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
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]',
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
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,
40 matches
Mail list logo