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 }
templates/_add
Thanks for the info, Alexandre.
It works fine, but using cache() or cache_save() is not the best
solution for this case, since I prefer to cache whole action for atom
request, not for partial.
I think conditionalCacheFilter is the better solution, and that's what
I did, but if config.yml support
Hi,
Has anyone come across any good solutions for having a disabled user
in symfony? Ideally, I'd like a person whose account has been
disabled to be sent to a special page. I'm using sfguard for my login
and ACL. Currently, I just change the user's active status to false,
but this merely prev
i'm just new to symfony, i'm having trouble with using ffmpeg on
symfony. i just modified this code which work properly on code igniter
framework for symfony. but it doesn't save the 10sec audio file on the
directory path? and i need to save this as well to the database?
here's my code:
public f
Maybe I haven't understand but it doesn't work.
Let's see the code i've written. I think i've forgot something..
In my code the Feature class is named Interview (generates the parent
form). The Options classes are named PersonalAnswers (generate the
related forms).
When i start a new Interview i h
Not a problem. Here goes - sorry for the long mail then ;-)
Controller code:
hasParameter('drinkdb_id'))
{
$im = new JustdrinkImporter();
$this->drink = $im->loadDrink($request->getParameter
('drinkdb_id'));
} else {
$this->drink = Doctrine::getTable('Drink')->findOneByI
> A fixaround would be to create a batch :
>
> c:\windows\system32\php.bat
>
> that contains
>
> "c:\program files\\php.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9
2009/10/20 ridcully
>
> The Idee comes not from us, Zend Server CE install PHP under Programm
> Files.
>
> On Oct 20, 2:40 pm, david wrote
The thing you should change is your boss ;)
I'm kidding :P There are several ways for making a counter and depending of
required stats, each solution has his advantages.
In your case, create an integer field on your model and increment it each
time the object is displayed.
public function execut
It works with string.
So if you give it an array, it will not works.
2009/10/21 tirengarfio
>
>
>
> On Oct 21, 1:22 pm, Alexandre SALOME
> wrote:
>
> > And sfValidatorEmail excepts a string.
>
> Thanks Alexandre, but... what do you mean with that sentence? Sorry
> because my english..
> >
>
First, refactor your code :
Actions
class myModelActions extends sfActions
{
public function executeIndex($request)
{
$this->form = new WebsiteForm();
if ($request->isMethod('post'))
{
$this->form->bind($request->getParameter('website'),
$request->getFiles('website'));
To publish a project, just ZIP it ;)
There is no magic method, you have deploy method, it allows you to export
your project to a remote server.
No freeze task.
2009/10/20 a b
>
> I want to publish project.
> Should I write command: symfony project:freeze ?? Because here:
> http
You should remove widget/validator from the form and use a partial in your
form to display value.
Alexandre
2009/10/21 Morris
>
> Hello,
>
> I'm a beginner with Symfony. Intend to use version 1.3 (currently
> working with alpha1) to develop an admin interface to a website with
> 4-5 tables.
>
>
You can do that using cache() and cache_save() methods in your template :
Refer to doc.
Alexandre
2009/10/20 shin
>
> Hello,
>
> I would like to use cache, but only for feed.
> I have an action called "list". and it has two templates, which are
> html and atom.
>
> listSuccess.php
>
If you have problem with Apache, please go to Apache group.
2009/10/20 Jesse
>
> So we have the following problem when trying to switch over to fcgi
> rather than mod_php
>
> I can get all normal symfony routes etc working fine. The only issue
> is when we try to do special rewrites for certain
In your template :
hasCredentials(...)): ?>
2009/10/21 Konrad
>
> Hi,
>
> does anybody know how to include specific js script (file) for
> specific module/action only for authorized users in a nice/proper way?
>
> thx in advance.
> Konrad
>
> >
>
--
Alexandre Salomé -- alexandre.sal...@gma
In my opinion, you should rewrite your model with events.
Events-oriented model would be better for unit testing.
Alexandre
2009/10/22 Henning Glatter-Gotz
>
> David,
>
> Thanks so much for pointing this out. At first glance this looks fantastic.
> I am more used to the xUnit family of testing
Hello,
Is it the generated form or did you add some code ? (copy/paste it if yes)
Can you give us the POST variables too ?
Can you give us the form names, the schema ?
Thanks,
Alexandre
2009/10/22 phil0
>
> I am importing some data from an external data source. For that I
> decided
You should add widget/validator to your form.
2009/10/22 ashton
>
> Hi,
> I'm trying to add a method ('endTime') that doesn't exist in the
> model, it's essentially a convenience method to set just the time part
> of time_ts which is a timestamp. It shows up properly in the list,
> however, t
What I wanted to say was : speak english :)
Le 23 octobre 2009 00:35, Alexandre SALOME a
écrit :
> Speak french, or go to symfony-fr.
>
> Alexandre
>
> Le 21 octobre 2009 17:47, hhaythem a écrit :
>
>
>> bonsoir tout le monde,
>>
>> je suis nouveau sur ce forum et débutant avec symfony, voila e
Speak french, or go to symfony-fr.
Alexandre
Le 21 octobre 2009 17:47, hhaythem a écrit :
>
> bonsoir tout le monde,
>
> je suis nouveau sur ce forum et débutant avec symfony, voila en bref
> j'ai besoin d'un peu d'aide concernant la création des fenêtres popup
> avec l'admin generator de symfo
David,
Thanks so much for pointing this out. At first glance this looks fantastic. I
am more used to the xUnit family of testing frameworks because that is what I
learned first and probably the reason I was a bit disappointed when reading the
lime doc.
In any case, I will definitely look into
On Thu, 22 Oct 2009, noel guilbert wrote:
> Hello,
>
> In your routing.yml, you can a this rule:
>
> random_image:
> url: /random.gif
> param: { action: image, action: random }
>
> And in your imageActions class:
>
> public function executeRandom()
> {
>$this->getResponse()->setConten
Take a look at the lime plugin - which extends lime - it appears to
support auto-creation of mock objects.
http://webmozarts.com/2009/06/30/easy-unit-testing/
On Thu, 22 Oct 2009 21:32:13 +0200, Henning Glatter-Gotz
wrote:
> Thomas,
>
>
> Thanks for your reply.
>
> Not sure if that would b
Finally!
We must use SabreAMF_ArrayCollection() to conver the associate array and
pass back to flex in order to read the key!
On Thu, Oct 22, 2009 at 2:22 PM, Frank He wrote:
> I did an extensive research and found this may be the bug in amfPhpPlugin
>
> In order to prove it, I downloaded amfph
Thomas,
Thanks for your reply.
Not sure if that would be practical:
Class MyClass
{
:
:
public function doSomething($parameters)
{
:
//do a bunch of processing
:
$db = new MyModel();
:
// set model properties
:
$db->s
You can pass an array of IDs to EventPeer::doDelete() instead of a
Criteria object. It'll translate that to a DELETE FROM .. WHERE ID IN
(...) query. All of this is in the base peer class for your object in
the lib/model/om dir.
On Oct 22, 2009, at 3:18 PM, fbg wrote:
>
> Thanks Jacob.
Thanks Jacob. In my case I will have already hydrated the objects and
need to use them before the delete anyway.
My question relates to how best to do the delete after that. i.e.
rather than have 1000 lines like this:
DELETE FROM mytable WHERE id=1
DELETE FROM mytable WHERE id=2
etc...
DELETE
You can open a transaction and just rollback at the end.
On Thu, Oct 22, 2009 at 8:58 PM, Henning Glatter-Gotz <
henn...@glatter-gotz.com> wrote:
> Hi,
>
>
>
> I have a class I would like to unit/functional test that uses several
> propel model classes that are used to write to the db (in this s
Hi,
I have a class I would like to unit/functional test that uses several propel
model classes that are used to write to the db (in this scenario I am not
getting any data out of the db). At this point I am not worried about
checking if data actually ends up in the db, I will rely on propel to
Hi,
> I have a list of the elements of a table. This table shows
> relationships with other tables. I would like to know how to,
> instead of displaying the id of the element of another table, show the name
> this element.
You must implement the __toString method in the related classes.
Bye,
-
I did an extensive research and found this may be the bug in amfPhpPlugin
In order to prove it, I downloaded amfphp and use that directly:
This is the code I throw into HelloWorld.php:
function say($sMessage)
{
$array=array();
$user=array();
$user["firstname"]="first
Hi,
Is it possible to do a query like this in propel (using criteria):
select city, state_iso_value as state, country_iso_value as country,
count(provider_id) as goalies from
(select distinct f.city as city, p.provider_id, f.state_iso_value,
f.country_iso_value from v_facility f, facility_provid
simple untyped Object() is only in as3, in PHP, I can not find that type. So
how can we pass untyped simple object from PHP to AS3?
On Thu, Oct 22, 2009 at 1:03 PM, NairuS wrote:
>
> 2009/10/22 Frank He
>
>> Also in as3, we can use array as this;
>>
>> var tmp:Array=new Array();
>>
Hello,
In your routing.yml, you can a this rule:
random_image:
url: /random.gif
param: { action: image, action: random }
And in your imageActions class:
public function executeRandom()
{
$this->getResponse()->setContentType('image/gif');
$im = imagecreatetruecolor(100, 100);
imagegi
$c = new Criteria();
$c->add(your delete criteria);
EventPeer::doDelete($c);
That will delete the rows according to your criteria without hydrating
objects into memory.
On Oct 22, 2009, at 12:24 PM, fbg wrote:
>
> Suppose that I have a symfony 1.0 app and perform a propel query, work
> with
2009/10/22 Frank He
> Also in as3, we can use array as this;
>
> var tmp:Array=new Array();
> tmp["name"]="name1";
> tmp["lastname"]="lastname";
> trace ("array is " + tmp["name"]);
>
Yes, it's true
Reading the Adobe doc, the only way to create an associative
Also in as3, we can use array as this;
var tmp:Array=new Array();
tmp["name"]="name1";
tmp["lastname"]="lastname";
trace ("array is " + tmp["name"]);
Just wondered if as3 and php can communicate with each other through amf and
pass this kind of value
On Thu, O
Using VO may be another solution, but it will require creation of many VO in
AS3 sides as there may be many afm functions to be called.
So if Associate Array can be pased correctly with Key value, it will be
terrific.
Have you ever passed associate array from PHP to AS3 succesfully with the
name
Hello,
2009/10/22 xhe
>
> I am using sfAmfPlugin to communicate with frontend flex.
>
> in PHP, I used this:
>
> function getFlexUsers($nickname){
> $u=array();
> $user["firstname"]="name1";
> $user["lastname"]="name2";
> array_push($u,$user);
> $user["firstname"]="name3";
> $user["lastname"]="n
Suppose that I have a symfony 1.0 app and perform a propel query, work
with the results a bit, and then wish to delete the underlying
database records (for example, to scrub a log table, send out any
needed alert emails, and roll the log events into a flat file to keep
the DB fresh).
What is the
in your configure function you should do something like this:
In Doctrine:
for($i=0;$i<5;$i++){
$option = new Option;
$this->getObject()->Options[] = $option;//relate the option to the
form's object, which I am assuming is Feature object
$this->embedForm('optform_'.$i, new OptionForm($opti
bonsoir tout le monde,
je suis nouveau sur ce forum et débutant avec symfony, voila en bref
j'ai besoin d'un peu d'aide concernant la création des fenêtres popup
avec l'admin generator de symfony.
pour être plus claire j'ai crée un object_action "addcomment" dans le
generator.yml et par la suite
Hi,
I'm trying to add a method ('endTime') that doesn't exist in the
model, it's essentially a convenience method to set just the time part
of time_ts which is a timestamp. It shows up properly in the list,
however, the widget is never populated with a value in the edit page.
As far as I can tell
Some more information would apt.
random.gif is not a static image. It is being generated dynamically. The
parameters provided in query string will decide the image generation which
will vary.
This makes it necessary that I serve this image using a symfony action.
-Strike
On Thu, Oct 22, 2009 at
Hi,
How can I serve an image for request something like
http://mysite.com/random.gif?a=87&b=87
using symfony.
Is there a way to configure route for such a request?
-Strike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I am importing some data from an external data source. For that I
decided to load the data into a model object, and then pass that to a
form (generated by Doctrine).
The object that I am editing is has a many-to-many relation, so it
seems that Doctrine saves the data temporarily and then deletes
custom field on the edit page in the admin generator not calling
getter
I need some help with adding a custom field to the admin generator:
I have a model that contains a field 'end_ts'. I want to make a
custom getter/setter/field end_time that doesn't exist in the model.
Everything works but th
Hello,
I would like to use cache, but only for feed.
I have an action called "list". and it has two templates, which are
html and atom.
listSuccess.php
listSuccess.atom.php
I want atom to cache, but not html.
Has anybody dones this?
--
shin
--~--~-~--~~~---~--~---
I have a list of the elements of a table. This table shows
relationships with other tables. I would like to know how to,
instead of displaying the id of the element of another table, show the name
this element.
Grateful
Nelson Luis Rodrigues Pereira
Bacharel em Ciência da Computação
Desenvolvedor
Hi,
does anybody know how to include specific js script (file) for
specific module/action only for authorized users in a nice/proper way?
thx in advance.
Konrad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symf
Hello,
I'm a beginner with Symfony. Intend to use version 1.3 (currently
working with alpha1) to develop an admin interface to a website with
4-5 tables.
I have generated the backend application with the admin-generator and
is working fine, but I need that the user can see some fields but I
don'
So we have the following problem when trying to switch over to fcgi
rather than mod_php
I can get all normal symfony routes etc working fine. The only issue
is when we try to do special rewrites for certain paths using
mod_rewrite. For instance: (from .htaccess in the webroot)
RewriteRule ^celeb
Hello,
does anybody have idea what should be the proper way to acheive
paricular js file inclusion only for authenticated user and particular
module / action?
Right now I got:
apps/front/config/view.yml with: javascripts:[]
/apps/front/modules/mymodule/config/view.yml with:
default:
javasc
I want to publish project.
Should I write command: symfony project:freeze ?? Because here:
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/23
there is nothing about freeze so I don't know.
--~--~-~--~~~---~--~~
You received this message because you are subscr
i'm just new to symfony, i'm working with file upload and everytime i
upload a file the output is "csrf token: Required."
here's my code:
my action
public function executeIndex($request)
{
$this->form = new WebsiteForm();
if ($request->isMethod('post'))
{
$this->form->bind($request->getParamete
I want to publish my project.
Should I write:
symfony project:freeze
before publication ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@goo
On Thu, 22 Oct 2009, cosmy wrote:
> Where would you add this save() method exactly?
In your form class. For example, I have a category object embedded in my
form that is not part of the 'regular' object so I defined a
savedCategory() method and call it from my doSave() method:
public func
its possible...
because the ajax helpers dont has in core symfony after 1.2
but you error is in dont uses:
return $this->renderText('('.$output.')');
or
return $this->renderPartial('partial', array('var1' => $var1));
you are trying render an action, its not possible, you need text or partial
Did you read this:
http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin
?
Javi
On Oct 22, 4:05 pm, Simone Fumagalli
wrote:
> I'm using sfDoctrineGuardPlugin and I'm trying to access my user
> detail in this way
>
> (In my view)
> echo $sf_user->getG
really nobody used link_to_remote() ??
On 22 Paź, 14:21, dziobacz wrote:
> ok thx, but now after deleted post I see inside div 'ajaxclass' (where
> should be posts) small website with 500 error :(
>
> On 22 Paź, 14:13, Gareth McCumskey wrote:
>
> > The link_to_remote function needs a div ID pas
I'm using sfDoctrineGuardPlugin and I'm trying to access my user
detail in this way
(In my view)
echo $sf_user->getGuardUser()->getUserInfo()->getFirstName();
but I get this error
Fatal error: Call to undefined method Doctrine_Collection::getFirstName
()
if I write
$myUser = $sf_user->getGuard
I am using sfAmfPlugin to communicate with frontend flex.
in PHP, I used this:
function getFlexUsers($nickname){
$u=array();
$user["firstname"]="name1";
$user["lastname"]="name2";
array_push($u,$user);
$user["firstname"]="name3";
$user["lastname"]="name4";
array_push($u,$user);
return $u;
}
I
The IP is useless, just saved for db admin information, may be.
Look at the filter :
$c = new Criteria();
$c->add(sfGuardRememberKeyPeer::REMEMBER_KEY, $cookie);
$rk = sfGuardRememberKeyPeer::doSelectOne($c);
if ($rk && $rk->getSfGuardUser())
{
//Automatic-signin
}
On Oct 19, 11:39 pm, HiDDeN
> There are methods to check if this is a new object or not (i.e. isNew()
> method in form). I would add a save() method that checks this and inserts
> the 'parent' object in the database before adding the related objects. If
> its not a new method, you can read the ID directly from the objects.
On Thu, 22 Oct 2009, cosmy wrote:
> I'm tryng to realize a nested form for a simple structure: I should
> insert through an unique form a Feature and many Options related to
> this by a foreign key (idFeature) on the primary key of the Feature
> object (the id record).
> So in the FeatureForm i e
On Wed, 21 Oct 2009, Ari Army wrote:
> if there was a return sfView::Success somewhere) which i would expect since
> it gets posted to the siteadd*ed*user action and siteaddeduser.yml validates
> that info
Note: sfView::SUCCESS is the default return value when you dont explicitly
return any val
On Thu, Oct 22, 2009 at 2:38 PM, Alexandru-Emil Lupu
wrote:
>
>
> On Thu, Oct 22, 2009 at 12:35 PM, Alexandru-Emil Lupu <
> gang.al...@gmail.com> wrote:
>
>> Hi there!
>>
>> I have a problem with my mailer system on sf 1.3. i do get this error:
>>
>> Catchable fatal error: Argument 1 passed to
>>
ok thx, but now after deleted post I see inside div 'ajaxclass' (where
should be posts) small website with 500 error :(
On 22 Paź, 14:13, Gareth McCumskey wrote:
> The link_to_remote function needs a div ID passed not a div CLASS. So class="ajaxclass"> should be
>
>
>
> On Thu, Oct 22, 2009 at
It is described as such quite plainly in the documentation:
"In this example, clicking the 'Delete this post' link will issue a call to
the post/delete action in the background. The response returned by the
server will appear in the element of *id feedback*"
http://www.symfony-project.org/book/1_
The link_to_remote function needs a div ID passed not a div CLASS. So should be
On Thu, Oct 22, 2009 at 1:12 PM, dziobacz wrote:
>
> I want to delete posts from my forum without refresh page but now
> after clicked link 'Delete post' post is deleting without refreshing
> page but it is still s
Check you've enabled the modules in your settings.yml - you should have:
sfGuardAuth in your settings -> all:-> .settings:-> enabled_modules
On Thu, 22 Oct 2009 12:59:00 +0200, pcummins wrote:
>
> Did you follow all of the steps in the install guide?
>
> Doctrine version is here:
> http:
On Thu, Oct 22, 2009 at 12:35 PM, Alexandru-Emil Lupu
wrote:
> Hi there!
>
> I have a problem with my mailer system on sf 1.3. i do get this error:
>
> Catchable fatal error: Argument 1 passed to
> Swift_Transport_SpoolTransport::registerPlugin() must be an instance of
> Swift_Events_EventListener
I want to delete posts from my forum without refresh page but now
after clicked link 'Delete post' post is deleting without refreshing
page but it is still showing - I must refresh page and then it isn't
showing - why ?
I have actions:
class forumActions extends sfActions
{
public function ex
Hi all, i'm always here to break your patience.. :)
I can't find valid resources and documentation about forms so i'm
writing in this group, so I hope this topic could be usefull to many
users.
I'm tryng to realize a nested form for a simple structure: I should
insert through an unique form a Fea
Did you follow all of the steps in the install guide?
Doctrine version is here:
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin
Lots of people miss the part about changing the myUser class, and of
course don't forget to 'symfony cc'
On Oct 21, 3:02 pm, Martin Settle wrote:
> Sorr
Hi there!
I have a problem with my mailer system on sf 1.3. i do get this error:
Catchable fatal error: Argument 1 passed to
Swift_Transport_SpoolTransport::registerPlugin() must be an instance of
Swift_Events_EventListener, instance of sfMailerMessageLoggerPlugin given,
called in /media/disk1/sy
76 matches
Mail list logo