Re: [symfony-users] Re: Coloured command prompt output in Windows

2010-08-30 Thread Augusto Flavio
Hi Paulo, if you understand portuguese you can check this: http://augustomorais.wordpress.com/2010/02/01/symfony-cli-colorido-cygwin/ Bye Augusto Morais 2010/8/30 Paulo Ribeiro ribeiro.pau...@googlemail.com Hi! I forgot to mention that in some cases you must follow the steps in

Re: [symfony-users] Symfony on Shared Hosting

2010-07-19 Thread Augusto Flavio
I have done it. Do you change the document root on ProjectConfiguration ? Try to enable the dev env to check where is the problem. The project should works without change the .htaccess. Bye Augusto Morais -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Symfony and WSDL

2010-07-08 Thread Augusto Flavio
Hi, I have a webservice working but I want migrate this webservice to the symfony. I tried use the ckwebservice plugin but I don't like of It. The WSDL generated is not so good. Then i tried not use this plugin. I followed the tutorial about wsdl and symfony (1.0) but it didn't worked well.

Re: [symfony-users] Routing: frontend_dev.php vs. index.php

2010-05-19 Thread Augusto Flavio
This problem is your .htaccess maybe you have not it in your public_html or web directory. You just need to create this file and configure. Maybe you forgot to upload the .htaccess to your prod server. bye Augusto Morais -- If you want to report a vulnerability issue on symfony, please send

Re: [symfony-users] language

2010-05-18 Thread Augusto Flavio
Then you can try to copy the /lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/i18n/sf_admin.fr.xml to /apps/frontend/i18n note: use the sfDoctrine with you use the doctrine as ORM. bye Augusto Morais -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] language

2010-05-17 Thread Augusto Flavio
Hi. Try to clear the cache. If it not work, then the problem can be the cache of the browser. Try to open the page in a different browser. Bye Augusto Morais -- 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: Hidden field in backend

2010-05-04 Thread Augusto Flavio
Hi Casey, yes. The correct is widgetSchema. I was using setWidgets. Thanks. Augusto Morais -- 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

[symfony-users] Hidden field in backend

2010-05-03 Thread Augusto Flavio
Hi, What is the best way to add a hidden field in a form in the backend ? Is there some way to do it using the generator.yml or need i change the _form.php template? Thanks Augusto Morais -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Deploying: if i write the password in properties.ini, why i have to write it again?

2010-03-18 Thread Augusto Flavio
Hi Javier, try to create a ssh connection without password. You can do it using a ssh public key. Bye. Augusto Morais 2010/3/18 Javier Garcia tirengar...@gmail.com Hi, this is my properties.ini. When i deploy my project (deploy --go) it asks me the password. [symfony] name=rs

[symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
Hi, i have a form that i need to check whether 2 strings is equal and i'm using a setPostvalidator to check duplicated fields in my DB. The 2 codes works fine. But only one for time. not the both together. here is the code: class UsersForm extends BaseUsersForm { (...) public function

Re: [symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
'))), new sfValidatorSchemaCompare('senha', sfValidatorSchemaCompare::EQUAL, 'password_again', array('throw_global_error' = true), array('invalid' = 'The passwords need be equal') ) ))); Cheers, Lea On Mar 16, 2010, at 14:53 , Augusto Flavio wrote: Hi, i

Re: [symfony-users] best practice change web directory

2010-03-11 Thread Augusto Flavio
You can do this: $this-setWebDir($this-getRootDir().'/public_html'); bye Augusto Morais 2010/3/11 Kevin kevinb...@gmail.com Hello, just wondering if the following is considered the best practice for changing the web directory from the default www to html? class ProjectConfiguration

Re: [symfony-users] Building XML from models

2010-03-09 Thread Augusto Flavio
Hi Ashton, i don't know what specifically do you want but maybe this code help you: class mymoduleActions extends sfActions { public function executeXML(sfWebRequest $request) { $this-rows = Doctrine::getTable('table') -createQuery('a') -execute(); } } //template ?php

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-08 Thread Augusto Flavio
and cleans them. Try it yourself if you don't believe me. Its one of the great benefits of using a framework. On Fri, Mar 5, 2010 at 8:12 PM, Augusto Flavio afla...@gmail.com wrote: Hi Gareth, the method that you show us have a security problem: inject sql. You need to check

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-05 Thread Augusto Flavio
Hi Gareth, the method that you show us have a security problem: inject sql. You need to check what kind of parameter the user is sending. if (!in_array($parameter, array('asc', 'desc'))) { //do something } else { //execute the query } bye Augusto Morais -- If you want to report

[symfony-users] Deployment Problem - Fixed

2010-02-25 Thread Augusto Flavio
Hi everybody, some time ago i had a problem with the deployment interface of symfony 1.4. When i run the command: symfony project:deploy production --go nothing happened. It was a loop. Well, i found the problem and then i wrote a article about this issue. You can check it in:

Re: [symfony-users] foreign key not substituted with title in admin-generated list

2010-02-22 Thread Augusto Flavio
The correct is: public function __toString() { ... } Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: [symfony-users] Re: symfony project:deploy dry-run no output

2010-02-10 Thread Augusto Flavio
Do you use the -e option for what? I think that the problem is in the class that execute the rsync process. sfFileSystem method execute(). I will work inside this problem. The next week i think i have a answer. bye. Augusto Morais -- You received this message because you are subscribed

[symfony-users] Where to put the model code?

2010-02-08 Thread Augusto Flavio
Hi. I create a partial file that will be added in all page request by users. I put this partial file, i.e. partial.php in the global layout template? layout.php. Ok. My doubt is where to put the model code of the partial file. some idea? Augusto Morais -- You received this message

[symfony-users] Re: Where to put the model code?

2010-02-08 Thread Augusto Flavio
HI. I use the sfComponents class to do it. Worked fine. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send

Re: [symfony-users] Re: Deployment problem/bug?

2010-02-05 Thread Augusto Flavio
Hi Adrian, Try to run the deployment manually. Works fine. Bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email

Re: [symfony-users] How to create an totally customized admin

2010-02-04 Thread Augusto Flavio
Hi Yang, you said the you need two modules based on the same model class. One for display a graph a other to i have not idea. But ok. I, in your person, would create just one module and not two. Then i would create 2 actions, one to shows the graph and other to anything. Yes, you need rewrite

Re: [symfony-users] Re: [sf1.4] symfony project:deploy dry-run no output

2010-02-04 Thread Augusto Flavio
Hi Evert. there is no relation with error_reporting with the deploy using the argument --dry-run. The problem that is see is in the class that execute the rsync command. For one time i thought it's the outbuffer in the class that do the deployment: sfProjectDeployTask.class.php. However i see

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Augusto Flavio
Hi Romain, Which version of symfony you are using. Is ok your DB connection? This is a common problem that happen after the deploy to the prod server. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Augusto Flavio
I had a similar problem too with the symfomy's deployment. Not building the classes but in deployment. The symfony's interface of rsync doenst clear the buffer in *sfProjectDeployTask at the moment that the rsync is executed. *The fix is only clear the outbuffer before execute the rsync command. I

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Augusto Flavio
No. I don't have /tmp folder on my prod server too and the project works fine. Have you sure that all files is sync with the dev environment (dev server)? Did you fix the permissions? Check whether the sql file correctly. To do it run only the sql schema. ./symfony doctrine:build-sql ./symfony

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Augusto Flavio
Yes Romain. You need have permission to access your temp dir. Ask then to your client. Bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe

[symfony-users] Deployment problem/bug?

2010-01-24 Thread Augusto Flavio
Hi all, i set up the deployment using the rsync on symfony. What i did was configure the properties.ini like this: [production] host=domain.com.br port=22 -i E:/cygwin/home/Augusto/.ssh/id_rsa user=user dir=/home/username/website parameters=-rtgoDzCv --progress --force --delete

[symfony-users] deployment

2010-01-23 Thread Augusto Flavio
Hi all, i'm working with the deploy system of the symfony for a good time. But i have one doubt about this feature, specifically about the rsync. Here is my properties.ini: [production] host=www.domain.com port=22 -i E:\cygwin\home\Augusto\.ssh\id_rsa user=user dir=/home/USER/website

Re: [symfony-users] Anyone used symfony with Flash Builder 4 Data Service?

2010-01-09 Thread Augusto Flavio
Hi, This issue is interesting. I will start a project that will use flex in the frontend and backend. I dont know whether symfony is good for this job. More than it, i dont know whether have some framework that can be used in this kind of project. bye. Augusto Morais -- You received this

[symfony-users] Batch File

2010-01-08 Thread Augusto Flavio
Hi everybody, i'm looking for the best way to create a automatic script that runs every day in the same hour. The script needs download several PDF's files from a specific website and save it in a specific folder. Have some implementation in symfony that helps do it or need i create a simple

Re: [symfony-users] Batch File

2010-01-08 Thread Augusto Flavio
I made a Task using the sfBaseTask class. Worked fine. Is more better than wget because i will use it in several projects and the management of it is more easy instead bash script with many wget. All in a symfony project. Maintainability is good for every project. Bye. Augusto Morais -- You

Re: [symfony-users] showsuccess

2010-01-06 Thread Augusto Flavio
This can be your main template. Check it in apps/env/templates. bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email

Re: [symfony-users] get id from new row

2010-01-06 Thread Augusto Flavio
Hi Gabo, i was working with embedforms and i need do this for my forms works well. You need save the record that you want get the ID and after save the record that needs the FK. Look this: $author = new author(); ... (set values for author object) $author-save(); //now you save the book

Re: [symfony-users] Bad culture detected

2009-12-14 Thread Augusto Flavio
clear your cache and restart your browser and make sure that you configure the settings.yml correctly. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com.

Re: [symfony-users] Making Symfony Web Site Secure

2009-12-11 Thread Augusto Flavio
Hi, yes, exists anothers kinds of attacks like SQL injection (but the symfony prevents it). Another thing that you need pay atention is the command injection(exec, system, passthru). A good way to prevents this problem is escape the shell output. I believe that with the XSS and CSRF, in most

[symfony-users] Dot and comma

2009-12-11 Thread Augusto Flavio
Hi all, i'm working with numbers and currency in symfony and i got a problem: dot and comma. I'm using the Brazilian notation(likes the UK notation : $ 2,00 (two dollars)) . How can i change the US notation to BRL notation ? thanks Augusto Morais -- You received this message because

Re: [symfony-users] Re: Guardar formularios embebidos

2009-11-30 Thread Augusto Flavio
Hi, i dont know how are you doing it but a some weeks ago i worked with embedform using symfony 1.2 - Doctrine as ORM. I wrote a article about it in portuguese. Maybe you understand a bit because the portuguese is a language near to spanish. Here is the link of the article:

[symfony-users] Logout with sfUser

2009-11-27 Thread Augusto Flavio
Hi all, i'm managing my users using the sfBasicSecurityUser class and now i'm trying to create a action to the user do logout. I create this method in my myUser class public function logout($user, $con = null) { //$this-getAttributeHolder('usuario_id', null,

[symfony-users] set defaults values dynamically

2009-11-25 Thread Augusto Flavio
Hi, i'm trying to set defaults values dinamically for a form. Works using the configure method in my form class, ExemploForm but not from the action. i followed the steps of the symfony's manual:

Re: [symfony-users] set defaults values dynamically

2009-11-25 Thread Augusto Flavio
Ok. I did it works fine and ok. but how can i do it in the actions? thanks Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group,