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 an
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 wrote:
> There is another way. It's one that does not involve these "hacky" things.
>
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 wrote:
> You are right,I'm using doctrine.
>
> Looking for information how it deals with dml li
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 act
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
...
rel
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:
getParameters();
$
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 pl
In your view in the header cell:
In your action:
$this->data = TablePeer::getData($parameters, $request->getParameter('sort'));
In your model for class TablePeer:
public static function getData($parameters, $sort_by)
{
$c = new Criteria();
//Set all criteria that needs setting
$c->addA
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 sti
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 wrote:
> On Thu, 4 Mar 2010, Darren884 wrote:
> > These forms will simply not work. They keep resetting my record id to
> > 0.
>
> It would help
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 "?&auth_token=fcb52bab7
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
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
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 appli
These forms will simply not work. They keep resetting my record id to
0.
On Mar 4, 2:38 pm, Darren884 wrote:
> I am doing that and it is still giving me the error.
>
> On Mar 4, 12:00 pm, Richtermeister wrote:
>
> > Hey Darren,
>
> > when you use a form to update a record, make sure you pass the
I am doing that and it is still giving me the error.
On Mar 4, 12:00 pm, Richtermeister 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);
> $this -> fo
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 javascript.
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
Thanks!
On 4 mar, 18:22, Gábor Fási wrote:
> $this->validatorSchema['email'] = new sfValidatorAnd(array(
> $this->validatorSchema['email'],
> new sfValidatorEmail(),
> ));
>
>
>
> On Thu, Mar 4, 2010 at 17:56, HiDDeN wrote:
> > I defined validators to my Doctrine model, so it generat
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 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. H
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);
$this -> form = new CustomerForm($customer);
this way the form knows that even if the email is already in the
system, if
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 err
(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
ge
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 wrote:
> Apostrophe is symfony based
>
>
>
> On Thu, Mar 4, 2010 at 7:11 AM, Joshua wrote:
> > Thanks daniel. There are a lot o
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:
delivery
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.
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 Thu,
Hi Daniel,
try using this .htaccess modified version. I've added two new rules.
Options +FollowSymLinks +ExecCGI
DirectoryIndex index.php
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /
RewriteCond %{REQUEST_FI
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, wh
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
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,
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 wrote:
> I have a list of persons, and an m:n relation that relates one person
> with several other persons:
>
> Person:
> columns:
>
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 p
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),
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 symfo
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 wrote:
> Hi all,
>
> I now this is a silly question, but I simply can't set a date widget
> to a default value,
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 to
I just generated an admin to use.
On Mar 4, 9:06 am, 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 Cus
$this->validatorSchema['email'] = new sfValidatorAnd(array(
$this->validatorSchema['email'],
new sfValidatorEmail(),
));
On Thu, Mar 4, 2010 at 17:56, HiDDeN wrote:
> I defined validators to my Doctrine model, so it generated automatic
> validators (such as maxlength, required, etc)
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 getForm
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 repo
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 direct
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
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 wrote:
> Hello,
>
> That what i'm going to do. Thank you
>
> On 18 fév, 09:12, Gareth McCumskey
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 in
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 w
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:
-
http://www.symfony-project.org/reference/1_4/en/16-Tasks#chapter_16_sub_doct
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 co
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
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
sorry to bothe abain, but the pastebin expired... now it's all here:
http://pastebin.com/quQfBXTy
and here:
getContext()->getUser();
$request = $this->getContext()->getRequest();
$model = tools::getModelNameFromModule($request-
>getParameter('module'));
var_dump($request
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();
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 wrote:
> Hi,
>
> I have pr
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 the
HI!
Well is a Unit after all.
Alecs
On Thu, Mar 4, 2010 at 10:07 AM, Tarjei Huse 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 kind of function
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 413
56 matches
Mail list logo