Hi,
I might have missed something, but does symfony have a way to write
tests for tasks?
I got a task I would like to have test coverage for and the best way
seems to be do some kind of functional testing on it.
Kind regards,
Tarjei
--
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63
HI!
Well is a Unit after all.
Alecs
On Thu, Mar 4, 2010 at 10:07 AM, Tarjei Huse tar...@scanmine.com wrote:
Hi,
I might have missed something, but does symfony have a way to write
tests for tasks?
I got a task I would like to have test coverage for and the best way
seems to be do some
Hi,
I have problem with customizing the generator of the sfGuardUser. I
want to remove the permissions_list from the filter form.
I've copied the generator.yml file from the plugin folder to my apps/
backend/modules/sfGuardUser/config/generator.yml
If I siply remove the permissions_list from
I found a solution, not nice, but it's simple and it works for me
filter:
display: [username, is_active, is_active, is_active]
It somehow overwrites the array of the original generator.yml, and the
is_active is showed only once.
On 4 bře, 09:52, Tom Ptacnik to...@tomor.cz wrote:
Hi,
There is another way. It's one that does not involve these hacky things.
Simply copy the sfGuardUserGeneratorConfiguration.class.php to your
apps/backend/modules/sfGuardUser/lib/ folder and add the following code:
public function getFilterDisplay()
{
$display = parent::getFilterDisplay();
sorry to bothe abain, but the pastebin expired... now it's all here:
http://pastebin.com/quQfBXTy
and here:
?php
/*
*filters.yml
rendering: ~
remember_me:
class: sfGuardRememberMeFilter
clear_owner:
class: ownerFilter
security: ~
# insert your own filters here
cache: ~
execution:
Note: x-posted to the forum here:
http://forum.symfony-project.org/index.php/m/94760/
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To
Forms framework was introduced in symfony 1.1 and the older forms
helpers and validators were deprecated in 1.2 I believe. You can set
the sfCompat10 plugin to be used for 1.1 and things should still
work but really is better to migrate over to the forms framework. We
are currently reworking our
Hello!
Thanks for your reply, but none of your solutions worked for me. By
the way the sfLoader is deprecated and was removed since symfony
version 1.4.
I found the sfContext::getInstance()-getConfiguration()-
loadHelpers() method which works perfectly.
Two questions remaing:
1) How does it
Hi guys.
I want to use the symfony tasks for the doctrine migration but I can't
find any consistent piece of information.
I read this:
- http://www.doctrine-project.org/documentation/manual/1_2/en/migrations
and this:
-
In Propel I have a double JOIN: the Zipcode table is joined in a query
on the User table.
Now I have two functions which both join the Zipcode table:
* addSortCriteria()
* addFilterCriteria()
When a user sorts on a record from the Zipcode table
(addSortCriteria), the Zipcode table is joined, as
Hi!!
I want to know if i can have a different users in my data base depending the
application the user access..
i meant, i have a 'public' app and 'intranet' app, so if a user access the
app i want he connect with a specific user of the data base so i can define
restrictions.
How can i do that
Does anyone has a tutorial about that ? The backend is usefull but a
good tutorial would be appreciate in order to be able to do that kind
of common functionnalities.
Tnak you
On 18 fév, 11:16, ziclo lauren...@gmail.com wrote:
Hello,
That what i'm going to do. Thank you
On 18 fév, 09:12,
I am having some issues finding a good example on how to display the many to
many fields in a form, actually on an embeded form. Can somebody point me in
the right direction?
Thank you.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
Hello,
I am trying to setup a new project using NetBeans and this tutorial:
http://wiki.netbeans.org/NB68symfony
It is using propel, but I am setup with Doctrine.
Everything seems to be setup correctly, but when I am trying to insert-sql, I
get this error;
You must pass a valid path to a
I defined validators to my Doctrine model, so it generated automatic
validators (such as maxlength, required, etc).
Now I would like to add a validator directly in my form, but without
losing the ones defined by Doctrine, is this possible? How could I
achieve it?
Thanks!
--
If you want to
Hi guys, I have used generate:module to generate a CRUD module,
however it does not have getForm() in it like my admin generated
section. How would I accomodate this?
I am getting my form like:
$this-form = new CustomerForm($customer);
But how can I do it like I am in my other by calling
$this-validatorSchema['email'] = new sfValidatorAnd(array(
$this-validatorSchema['email'],
new sfValidatorEmail(),
));
On Thu, Mar 4, 2010 at 17:56, HiDDeN davidmoralesmoj...@gmail.com wrote:
I defined validators to my Doctrine model, so it generated automatic
validators (such as
I just generated an admin to use.
On Mar 4, 9:06 am, Darren884 darren...@gmail.com wrote:
Hi guys, I have used generate:module to generate a CRUD module,
however it does not have getForm() in it like my admin generated
section. How would I accomodate this?
I am getting my form like:
Heres the deal, I created an admin generated form in my backend, and I
am able to edit my customers easily. However when I try to make a form
on the main site for them to update their date I simply cannot do it.
The form system makes it so when I try to use the previous form class
its impossible
Hey Aadaam,
I tried doing this:
$this-setDefault('startdate', date('Y-m-d'));
and it works for me.
Can you try it and see?
Thanks,
Susan
On Sun, Feb 28, 2010 at 7:16 PM, Aadaam aad...@gmail.com wrote:
Hi all,
I now this is a silly question, but I simply can't set a date widget
to a
Hi,
I've seen a link to the 'symfony Forms in Action' in the symfony blog,
I'm wondering why it's not linked on the 'Documentation' page, it's a
helpful resource.
http://www.symfony-project.org/forms/
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Hello,
I am trying to create a kind of child module with admin generator.
I wanted to know if you have solutions.
Take for example the following model :
Article:
columns:
title: { type: string(45) }
headline: { type: string(500) }
ArticlePage:
columns:
title: { type: string(45),
Merci de me guider par rapport à la documentation de base pour débuter
dans symfony.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To
hi,
Have you tried to defined the relation with
type: many
I don't know if it could change anything for you but it should be
test ?
On 3 mar, 20:56, axel at axel.zu...@gmail.com wrote:
I have a list of persons, and an m:n relation that relates one person
with several other persons:
Person:
When I use:
$this-widgetSchema[1] = new sfWidgetFormChoice(array('default' =
'b', 'choices' = array('a' = 'a', 'b' = 'b')));
The option with value b will not get the selected attribute.
But when I use:
$this-widgetSchema[(1).'foo'] = new
sfWidgetFormChoice(array('default' = 'b', 'choices' =
Hi Daniel,
try using this .htaccess modified version. I've added two new rules.
Options +FollowSymLinks +ExecCGI
DirectoryIndex index.php
IfModule mod_rewrite.c
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /
For a new application we are looking for a php web framework that
supports multiple databases with the same schema/model. Every customer
of us will become his own webserver with his own database. On top of
this we want to develop a central administration app that works on all
customer databases,
Hello everyone:
I'm developing an app with symfony-1.2.12, Doctrine and PostgreSQL.
Deployed it according the steps defined in Jobeet. The files were
successfully transferred after deploy task (done in the same pc), but
some AJAX queries don't work in deployment. Checked with Firebug and
the .js
If you just want to sort the results on the immediate page, you can use this
with the jquery plugin:
http://tablesorter.com/docs/
If you want to be able to sort across multiple pages, tell me what you're
using for pagination and I can give you a few ideas (but it will be more
difficult).
On
Hi,
Sorry for my english.
I try test email sending, but when I call action ($browser-post('/
genre/save')) it call in prod environment (in production environment
mailer settings is incorrect), not in test. How can I change
environment?
My factories.yml:
test:
mailer:
param:
Hi all,
I'm having a problem with routing.
route.yml settings:
Send:
url: /exp/send/:token
param: { module: exp, action: Send }
And my action.php file:
public function executeSend(sfWebRequest $request){
var_dump($request-getParameter('token')); //don't work.
Thanks but Apostrophe still doesn't do it for me.
I'm looking for specific code implementation suggestions from
developers.
On Mar 4, 1:50 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
Apostrophe is symfony based
On Thu, Mar 4, 2010 at 7:11 AM, Joshua houseaddi...@gmail.com
(not sure if i posted this correctly last time)
Hello,
I am trying to setup a new project using NetBeans and this tutorial:
http://wiki.netbeans.org/NB68symfony
It is using propel, but I am setup with Doctrine.
Everything seems to be setup correctly, but when I am trying to insert-sql, I
On Thu, 4 Mar 2010, Bill P. wrote:
I am trying to setup a new project using NetBeans and this tutorial:
http://wiki.netbeans.org/NB68symfony
It is using propel, but I am setup with Doctrine.
Everything seems to be setup correctly, but when I am trying to insert-sql, I
get this error;
Hey Darren,
just look at what the getForm method is doing internally and mimic the
behavior in your code.
Daniel
On Mar 4, 9:06 am, Darren884 darren...@gmail.com wrote:
Hi guys, I have used generate:module to generate a CRUD module,
however it does not have getForm() in it like my admin
Thanks!
On 4 mar, 18:22, Gábor Fási maerl...@gmail.com wrote:
$this-validatorSchema['email'] = new sfValidatorAnd(array(
$this-validatorSchema['email'],
new sfValidatorEmail(),
));
On Thu, Mar 4, 2010 at 17:56, HiDDeN davidmoralesmoj...@gmail.com wrote:
I defined validators
hi,
you surely wanted to say 'generate-migrations-diff' in your third
try ?
The doctrine:generate-migrations-diff task calculates the difference
between your model classes and the yml schema.
So when you want to modify your model, do this in *this exact order* :
- make sure your model is up
Hi,
1. By default only Partial and Cache Helpers are include
You load what you need ..
2. It s not really about accessing helper from a form, but
I think that the JQueryHelper is to generate html and js code.
So anything about final rendering should be in your template,
especially for
I am doing that and it is still giving me the error.
On Mar 4, 12:00 pm, Richtermeister nex...@gmail.com wrote:
Hey Darren,
when you use a form to update a record, make sure you pass the record
into the form at creation time,
for example:
$customer = CustomerPeer::retrieveByPk(123123);
These forms will simply not work. They keep resetting my record id to
0.
On Mar 4, 2:38 pm, Darren884 darren...@gmail.com wrote:
I am doing that and it is still giving me the error.
On Mar 4, 12:00 pm, Richtermeister nex...@gmail.com wrote:
Hey Darren,
when you use a form to update a
I've been working on internationalization for apostrophePlugin. I've
succeeded in adding __() calls as needed for a large portion of it,
but it turns out that extracting all of the candidate strings for
translation to a reasonable XLIFF file is not trivial. The
extract:i18n task only looks at
On Thu, 4 Mar 2010, Darren884 wrote:
These forms will simply not work. They keep resetting my record id to
0.
It would help if you provided the source of the page when doing an update
so we can see what the form looks like. Form go boom-boom is not an
error message and without sufficient
On Thu, 4 Mar 2010, Darren884 wrote:
Hi guys, I have used generate:module to generate a CRUD module,
however it does not have getForm() in it like my admin generated
section. How would I accomodate this?
I am getting my form like:
$this-form = new CustomerForm($customer);
Correct if you
Hi everybody,
I'm implementing a Facebook Connect application with Symfony and the
sfFacebookConnectPlugin.
For some strange reason for every page that uses the Facebook PHP-
Client the page first get's delivered as requested and then it is
redirected to the same url with
I apologize if I get frustrated guys, I have been extensively looking
through them today and think I may have found the solution.
On Mar 4, 3:17 pm, Eno symb...@gmail.com wrote:
On Thu, 4 Mar 2010, Darren884 wrote:
These forms will simply not work. They keep resetting my record id to
0.
It
Hi Florian!
Thx for the help.
Yah, you're right, I meant 'generate-migrations-diff'. Was a bit tired
from the day probably :-p
Yah, also I got the flow. Actually I think I've found why it didn't
work, there's an error in the yml file (found when I've tried to build
the classes anyway).
But it
In your view in the header cell:
th?php echo
link_to(image_tag('sort_icon.png'),'module/action?sort=column_name')
? /th
In your action:
$this-data = TablePeer::getData($parameters, $request-getParameter('sort'));
In your model for class TablePeer:
public static function getData($parameters,
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
Hi,
On 03/04/2010 09:16 AM, Alexandru-Emil Lupu wrote:
HI!
Well is a Unit after all.
The reason I asked was because tasks like actions connect to a lot of
different symfony services (templating , the dispatcher , the mailer
etc). What I ended up doing was the following:
?php
Maybe it's only a typo here, but in relation definition in the Person
table you have foreign: related and it should be foreign:
relatedId
Or maybe the problem is that if you have M:N relation, you have schema
like this:
Table1
...
relation:
local: id1
foreign: id2
...
Table2
...
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
I'm not good at doctrine at all, but I think that i you don't know how
to write this in DQL (Doctrine Query Language) there is a way how to
write pure SQL and execute it
On 4 bře, 08:58, SymfonyNewbie shore.cl...@gmail.com wrote:
You are right,I'm using doctrine.
Looking for information how
I already have sfGuardUserGeneratorConfiguration.class.php in my
application, so adding this function to it is exactly what i
needed :-)
I like this solution.
Thank you very much.
On 4 bře, 10:14, Daniel Lohse annismcken...@googlemail.com wrote:
There is another way. It's one that does not
Oh, but this $display array looks like this:
array(4) { [0]= string(8) username [1]= string(9)
is_active [2]= string(11) groups_list [3]= string(16)
permissions_list }
so I have to unset permissions_list by unset($display[3]);
Or better find the permissions_list value somehow and then unset
55 matches
Mail list logo