[symfony-users] Re: function testing restful api json format

2010-09-24 Thread Shihab KB
In the chapter 15 of Jobeet tutorial I found that the following code for testing . Can somebody explain me this? info('2 - The jobs returned are limited to the categories configured for the affiliate')- get('/api/sensio_labs/jobs.xml')- with('request')-isFormat('xml')-

Re: [symfony-users] How to set security.yml for an abstract module like : sfGuardPermission / sfGuardGroup

2010-09-24 Thread Viktor Loósz
Just create apps/backend/modules/{sfGuardPermission,sfGuardGroup}/config and write your security.yml efpe On 2010 Sep 24, at 04:39 , Tristan wrote: Hello, i'm securing my backend because i'm going to recruit some moderators. The probel is that i can access to the sfGuardPermission /

[symfony-users] Sf1.4 doctrine fixtures inline won't insert data

2010-09-24 Thread Marco Rocci
Symfony 1.4.7 I'm having a problem using doctrine fixtures. The build --all --and-load completes with success... but part of the data is not loaded in the db. I am using the inline syntax in the fixtures to load the related detail data along with the relating master data. Well, the detail

[symfony-users] Sf1.4 doctrine fixtures inline won't insert data

2010-09-24 Thread Marco Rocci
Symfony 1.4.7 I'm having a problem using doctrine fixtures. The build --all --and- load completes with success... but part of the data is not loaded in the db. I am using the inline syntax in the fixtures to load the related detail data along with the relating master data. Well, the detail

Re: [symfony-users] some questions about sf

2010-09-24 Thread ahmed shehata
thank you for your satisfied response On Thu, Sep 23, 2010 at 2:56 AM, Hoang Nguyen hoan...@gmail.com wrote: Hi Ahmed, 1. You can try Netbeans for PHP (it's free): Home page here: http://netbeans.org/features/php/ And the getting-start video here:

[symfony-users] SF2: How inject container as service into model

2010-09-24 Thread Ladislav Prskavec
I have simple controller: class HelloController extends Controller { public function indexAction($name) { $owner = $this['cd']-getOwner(); return $this-render('HelloBundle:Hello:index', array('name' = $owner)); } } model: namespace Application\HelloBundle\Models;

[symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-24 Thread Fangzx
I am from Python/Django, in a big project, I have many routes, and give each route a name is not necessary, and will add extra maintenance burden! On 9月13日, 下午11时14分, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 9/12/10 4:23 PM, Fangzx wrote: I play Symfony2 and Doctrine2

Re: [symfony-users] SF2: How inject container as service into model

2010-09-24 Thread Alan Bem
I would create a factory but IMHO it is bad design decision to couple domain models with container. 2010/9/24 Ladislav Prskavec ladislav.prska...@gmail.com I have simple controller: class HelloController extends Controller { public function indexAction($name) { $owner =

[symfony-users] Sf1.4 doctrine fixtures unique rowids

2010-09-24 Thread Marco Rocci
Supposing I have to insert 20 records, I now do something like: User: user_1: {name: sldkflas} user_2: {name: lijrtecl} ... user_20: {name: dklvoweoif} I was wondering if I can avoid specifying unique row ids in my fixtures when I actually do not intend do reference the rows anywhere

[symfony-users] Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-09-24 Thread Loïc Vernet
Hi, Did someone looked at this bug ? http://trac.symfony-project.org/ticket/9092 It seems like a regression since 1.4.6... ++ COil -- 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

[symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-09-24 Thread BenjaM1
Hi Loïc, I had this bug too and I found this which works fine for me : http://www.doctrine-project.org/jira/browse/DC-421 But I hope it will be resolved as fast as possible ... :( On Sep 24, 1:14 pm, Loïc Vernet vernet.l...@gmail.com wrote: Hi, Did someone looked at this bug ?

[symfony-users] automated response

2010-09-24 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 25 septembre. L'accès à mes courriels pourrait être limité durant cette période. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante:

[symfony-users] Re: Um checbox em cada linha (A checbox in each row)

2010-09-24 Thread rafaelgou
Gerda, Se compreendi bem, cada registro na tabela é referente a uma habilidade, não? (If I realy got it, each record refers to one habilidade, does'n it?) Então me parece que sua abordagem está equivocada - não a modelagem do banco, mas a do uso do formulário. (So, it seems that your thought is

[symfony-users] [Symfony 1.4] Column_aggregation + i18n. Base Translation forms inheritance problem

2010-09-24 Thread Gustavo Adrian
Hi, Suppose you have this schema: TextElement: actAs: I18n: fields: - title - short_description - content columns: title: type: string(255) notnull: true short_description: type: string(255) content:

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Eliana Montoya
Hi Gustavo. the value shown in $values[ 'extension' ] = array(1) { [0]= string(5) Array } when I use sfWidgetFormChoice and sfWidgetFormDoctrineChoice. but y I do not understand when you say me: Finally, you could simply create a many-to-many relationship between your users and your filetypes,

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Gustavo Adrian
I mean this: User: columns: username: type:string(255) relations: Filetype: class:Filetype local: user_id foreign: filetype_id refClass:UserFiletype Filetype: columns: extension: type: string(10)

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-24 Thread Richtermeister
Sure, in the action: public function showCustomers(sfWebRequest $request) { $this - form = new CustomerFormFilter(); if($request - isMethod(POST)) { $this - form - bind($request - getParameter($this - form - getName())); if($this - form - isValid()) { $query = $this -

Re: [symfony-users] Official replacement for getParameter() in Symfony2PR3?

2010-09-24 Thread Pablo Godel
Funny I just posted a question in the devs list about the same getRequest() issue. Pablo On Mon, Sep 20, 2010 at 9:29 PM, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com wrote: I'm trying to get the Form stuff working and while I'm reasonably successfull I'm not sure I'm doing things the

Re: [symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-24 Thread Pablo Godel
Fabien, this seems like good information to include in the Official Documentation. Pablo On Sun, Sep 19, 2010 at 3:13 AM, Fabien Potencier fabien.potenc...@symfony-project.com wrote: The following statements are all equivalent: $this['doctrine.orm.entity_manager']

Re: [symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-24 Thread Fabien Potencier
On 9/24/10 7:03 PM, Pablo Godel wrote: Fabien, this seems like good information to include in the Official Documentation. I know, but the container documentation is not written yet ;) Pablo On Sun, Sep 19, 2010 at 3:13 AM, Fabien Potencier fabien.potenc...@symfony-project.com

[symfony-users] Help on sfValidatorDoctrineUnique during UPDATE please

2010-09-24 Thread trent
Hi, I have this validator that works great when doing an INSERT but it fails on UPDATE. During UPDATE it returns that the URL is a duplicate. I know I should use $this-validatorSchema-setPostValidator, however, I'm having a tough time getting it to work due to the way I'm using

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Eliana Montoya
Hi Gustavo.. I solved my problem!. I change the function doUpdateObject by the function doBind, and it works to perfection Again, thank you very much! Best regards -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Re: linik trouble

2010-09-24 Thread Gareth McCumskey
You use the redirect() method then either through a filter or in the action to force use of https On Thu, Sep 23, 2010 at 6:01 PM, wittygraphy wittygra...@gmail.com wrote: Agreed w/ the recommendation of using url_for() and link_to(). However the first form is needed if you want to switch the

[symfony-users] problem with how to manage image size....

2010-09-24 Thread Nova Lina
dear all... i have a problem with manage image on my web im junior programer, first time using symfony 1.4 i dont understand how manage it. div?php echo image_tag('casual_boots.jpg', array()) ?/div,.. -_-! thankyou -- If you want to report a vulnerability issue on symfony,