[symfony-users] Re: Logout message

2010-02-24 Thread Tom Ptacnik
Sorry if it's obvious, but what do you use for logging in. sfDoctrineGuardPlugin? On 23 ún, 12:25, sajt wrote: > Hello, > > I have a web application, where every page is secure. I like to show a > message when the user is automatically logged out from the site. > > I have this in my factory.yml:

[symfony-users] Re: Form in popup

2010-02-24 Thread Tom Ptacnik
So "completly lost" meant that the form in the popup isn't showed correctly? On 23 ún, 13:45, Ellishia Owens wrote: > Hi! > I'm completely lost about ajax and javascript. > I have to forms  (enterprise and category). > I want a button in the enterprise form that makes a new window or popup with

Re: [symfony-users] Problem in cache when the session is lost

2010-02-24 Thread Eno
On Wed, 24 Feb 2010, Piero Recchia wrote: > Hi everybody, I write you this message because I was looking for a > solution to my problem and not found it. I enabled the cache in > symfony, when the session is lost it save the template of login and > then re-enter the system when I want to see the l

[symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread jL
Javi, Symfony creates its own log files in $sf_root/log ... if nothing appears there, you ought to make sure that both cache and log are writable by the web server. Best, jL On Feb 24, 4:03 pm, Javier Garcia wrote: > On 02/24/2010 09:33 PM, Eno wrote: > > > Ah, free hosting, that explains i

[symfony-users] How can I get rendered partial content in a task(or cli)

2010-02-24 Thread chrisyue
Hi all, I want to use cron to send email by using symfony task, My email is i18n mail and should be rendered before sending. To do the work, I have two thoughts in my mind but still not very clear. So I need some help from you: 1. Is there a way to get rendered partial content by directly use s

[symfony-users] How does the local field for relation work ?

2010-02-24 Thread SymfonyNewbie
Dinner: columns: date: { type: timestamp, notnull: true } nb_presents: { type: integer, notnull: true } relations: Marks: class:Criteria local:dinner_id foreign: criteria_id refClass: Mark type: many

Re: [symfony-users] Why are useful commands like "doctrine:build-all-reload" removed in symfony 1.4?

2010-02-24 Thread Mr Shore
Oh,I should have "run symfony help build" thanks! 2010/2/25 Gábor Fási > php symfony doctrine:build --all --and-load > > On Wed, Feb 24, 2010 at 16:50, SymfonyNewbie > wrote: > > Here is all the commands: > > > > Available tasks for the "doctrine" namespace: > > :build > > :build-db > > :bui

[symfony-users] Problem in cache when the session is lost

2010-02-24 Thread Piero Recchia
Hi everybody, I write you this message because I was looking for a solution to my problem and not found it. I enabled the cache in symfony, when the session is lost it save the template of login and then re-enter the system when I want to see the link, it shows me the login template. Then I wanted

Re: [symfony-users] Re: Possible SQL injection

2010-02-24 Thread Michał Piotrowski
2010/2/25 Kris Wallsmith : > I've committed a fix to Subversion and will be releasing soon. Please > test the fix in the meantime and report any issues here or on Trac. Works for me. Thanks for fast response. > > http://trac.symfony-project.org/changeset/28260 > > Thanks, > Kris > Regards, Micha

[symfony-users] Re: Possible SQL injection

2010-02-24 Thread Kris Wallsmith
I've committed a fix to Subversion and will be releasing soon. Please test the fix in the meantime and report any issues here or on Trac. http://trac.symfony-project.org/changeset/28260 Thanks, Kris On Feb 24, 1:35 pm, Michał Piotrowski wrote: > W dniu 24 lutego 2010 22:32 u¿ytkownik Micha³ Pio

Re: [symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread Dong YANG
Thanks guys, I will try your suggestions tommorrow Regards, JoJo 2010/2/24 Gábor Fási > That would be pretty bad, as it would re-hash the password field at every > save. > > On Wed, Feb 24, 2010 at 21:36, Alexandru-Emil Lupu > wrote: > > You can do it like that : > > > > public function save(

Re: [symfony-users] Re: Task "configure:database" is not defined

2010-02-24 Thread Trung Huynh
Got it working just a minute ago! What a newb mistake of me to use the symfony in the lib/vendor/symfony/data/lib/bin instead of the working directory. Pardon me for the newb mistake, it has been 6 years I've done some coding with PHP. I really love symfony's filosophy and documentation. On Wed,

[symfony-users] Re: Task "configure:database" is not defined

2010-02-24 Thread jp_morvan
Hi, Verify that php.ini for php cli is activated and is well configurated. Try to use php ./symfony configure:database in your project, sometimes, symfony is already installed and another symfony is launch. On 24 fév, 22:18, Trung Huynh wrote: > Hi > > After setting up the latest 1.4 stable vers

Re: [symfony-users] Possible SQL injection

2010-02-24 Thread Michał Piotrowski
W dniu 24 lutego 2010 22:32 użytkownik Michał Piotrowski napisał: > 2010/2/24 roko : >> I found that on backend admin modules generated with ./symfony >> doctrine:generate-admin is possible to inject SQL in the url. >> >> Example: >> >> http://example.com/backend_dev.php/partner?sort=status&sort_t

Re: [symfony-users] Possible SQL injection

2010-02-24 Thread Michał Piotrowski
2010/2/24 roko : > I found that on backend admin modules generated with ./symfony > doctrine:generate-admin is possible to inject SQL in the url. > > Example: > > http://example.com/backend_dev.php/partner?sort=status&sort_type=desc > LIMIT 1 -- Indeed. > > > This is with symfony 1.4 svn. > > Doe

Re: [symfony-users] Why are useful commands like "doctrine:build-all-reload" removed in symfony 1.4?

2010-02-24 Thread Gábor Fási
php symfony doctrine:build --all --and-load On Wed, Feb 24, 2010 at 16:50, SymfonyNewbie wrote: > Here is all the commands: > > Available tasks for the "doctrine" namespace: >  :build >  :build-db >  :build-filters >  :build-forms >  :build-model >  :build-schema >  :build-sql >  :clean-model-fil

[symfony-users] Task "configure:database" is not defined

2010-02-24 Thread Trung Huynh
Hi After setting up the latest 1.4 stable version of Symfony according the official documentation I ran into this error: executing "php symfony configure:database "mysql:host=localhost;dbname=dbname" root password" " Task "configure:database" is not defined. " symfony -V gives: symfony version

[symfony-users] Possible SQL injection

2010-02-24 Thread roko
I found that on backend admin modules generated with ./symfony doctrine:generate-admin is possible to inject SQL in the url. Example: http://example.com/backend_dev.php/partner?sort=status&sort_type=desc LIMIT 1 -- This is with symfony 1.4 svn. Does anybody know how to protect against this sec

[symfony-users] Why are useful commands like "doctrine:build-all-reload" removed in symfony 1.4?

2010-02-24 Thread SymfonyNewbie
Here is all the commands: Available tasks for the "doctrine" namespace: :build :build-db :build-filters :build-forms :build-model :build-schema :build-sql :clean-model-files :create-model-tables :data-dump :data-load :delete-model-files :dql :drop-db :generate-admin

Re: [symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Eno
On Wed, 24 Feb 2010, Javier Garcia wrote: > So... could you tell me a hosting provider with a log where i can see > the errors? Its pretty much a standard feature from many hosting providers. -- -- You received this message because you are subscribed to the Google Groups "symfony users" g

Re: [symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia
On 02/24/2010 09:33 PM, Eno wrote: Ah, free hosting, that explains it... So... could you tell me a hosting provider with a log where i can see the errors? Javi -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, sen

Re: [symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread Gábor Fási
That would be pretty bad, as it would re-hash the password field at every save. On Wed, Feb 24, 2010 at 21:36, Alexandru-Emil Lupu wrote: > You can do it like that : > > public function save(PropelPDO $con = null) > { >  $this->password = md5($this->password); >  parent::save(); > } > -- You re

Re: [symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread Alexandru-Emil Lupu
You can do it like that : public function save(PropelPDO $con = null) { $this->password = md5($this->password); parent::save(); } but you could do like this as well ... public function setPassword($v) { $v = md5($v); return parent::setPassword($v); } Alecs On Wed, Feb 24, 2010 at 10:27 PM,

Re: [symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread Gábor Fási
Overwrite the setPassword() function of your object class, something like this: function setPassword($v) { return parent::setPassword(md5($v)); } On Wed, Feb 24, 2010 at 18:05, Dong YANG wrote: > Hi JP, > > Thanks for your reply. > > I use propel 1.5 and I have a form which contains

Re: [symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Eno
On Wed, 24 Feb 2010, Javier Garcia wrote: > So where do you consider could i find that log? Please, tell me a host > provider (with free hosting ) where you know i can find it. Ah, free hosting, that explains it... k -- You received this message because you are subscribed to the Google Groups

Re: [symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Alexandru-Emil Lupu
I could suggest you to comment out the security things in your _dev file and try see what that file sais ... You might get the answer there .. if still can't see a bit, then check your projectConfiguration file and see if the "autoloader" is loaded via an absolute path or not. A motive of why you

[symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread jp_morvan
Hum, Why don't you did it in the save() method ? public function save(PropelPDO $con = null) { $this->password = md5($this->password); parent::save(); } I don't really know Propel but I do this with Doctrine. On 24 fév, 18:05, Dong YANG wrote: > Hi JP, > >      Thanks for your reply. > >  

[symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia
So where do you consider could i find that log? Please, tell me a host provider (with free hosting ) where you know i can find it. Anyway after clearing the cache the error persists... Javi On Feb 24, 9:21 pm, Gábor Fási wrote: > That thread is about another kind of log. You need your site's er

Re: [symfony-users] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Gábor Fási
That thread is about another kind of log. You need your site's error log. On Wed, Feb 24, 2010 at 21:19, Javier Garcia wrote: > On 02/24/2010 09:14 PM, Eno wrote: >> >> Did you clear cache? >> >> I would also question why your provider can't have logs... >> > > Ok, just remove the content of the

Re: [symfony-users] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia
On 02/24/2010 09:14 PM, Eno wrote: Did you clear cache? I would also question why your provider can't have logs... Ok, just remove the content of the cache folder...Thanks. This is what i got about the log: http://byet.net/showthread.php?15957-Is-there-any-log-file-to-check-the-uploading

Re: [symfony-users] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Eno
On Wed, 24 Feb 2010, Javier Garcia wrote: > i freezed the project and then i have uploaded it. > > When i open an URL it shows a blank page. > > There isnt any log in my hosting provider... Did you clear cache? I would also question why your provider can't have logs... -- -- You receive

[symfony-users] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia
Hi, i freezed the project and then i have uploaded it. When i open an URL it shows a blank page. There isnt any log in my hosting provider... Javi -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony

Re: [symfony-users] Hiding / Not showing a column from DB in CRUD forms

2010-02-24 Thread Javier Garcia
Hi, read the chapter about the Backend in the symfony manual. It's easy. Javi On 02/24/2010 03:45 PM, Bill P. wrote: Hello, I have been recently working in Grails (Java's symfony framework) and there is some weirdness if i want to create columns (properties) but not have them show up in the

[symfony-users] Re: Custom logger via factory.yml?

2010-02-24 Thread Richtermeister
Hey Christian, it's simpler than that. Look in your factories.yml at the bottom where the loggers are being set up. The main logger is an aggregate logger, and you can add your logger to this like so: (under loggers) my_logger: class: BlahLogger param: level: whateverlevel file: pat

Re: [symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread Dong YANG
Hi JP, Thanks for your reply. I use propel 1.5 and I have a form which contains the field *password*. Before do save (create), I would like call md5() to encode it. So I tried to use preSave() to do this thing. But in this method, I cant get the value entered by user. Here is the

[symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-24 Thread Bruno Reis
I figured out it has nothing to do with the event handler. I´s happening on every page. On my "error_404_action", I redirect to the homepage and it shows the uncaught exception message. Anybody knows why? 2010/2/24 Bruno Reis > Hi, > > I´m connecting the "application.throw_exception" event to m

[symfony-users] Error on Exception Handling using Event Notifications

2010-02-24 Thread Bruno Reis
Hi, I´m connecting the "application.throw_exception" event to my exception handler class. public function configure() { $this->dispatcher->connect( 'application.throw_exception', array('MyExceptionHandler', 'listenToApplicationException') ); } On the e

[symfony-users] Re: How to get form object in preSave()

2010-02-24 Thread jp_morvan
On 24 fév, 14:52, Dong YANG wrote: > Hello everyone, > >         I would like to know if is that possible to get form object in > preSave() method? > >         In fact, before save the form value (fill in by user), I want to > treate the input value in preSave() method. But I don't know how to a

[symfony-users] Doctrine Inheritance and Forms

2010-02-24 Thread m.s.
I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 + Propel a lot before). I thought to give Doctrine a try, because of the fast and huge Development process in the past. Thanks to jwage ;-) Im using Table Inheritance. This is a small portion of my schema.yml: Articles: columns:

[symfony-users] Re: Id being lost on update..

2010-02-24 Thread bajohns
I have this exact same problem. Did you ever solve the missing id field problem? My situation: When I dynamically embed a form for object A into object B and check the generated html it looks like this Note that the Id value is not present. It should be! Thanks On Feb 19, 9:29 am, Eno wr

[symfony-users] Hiding / Not showing a column from DB in CRUD forms

2010-02-24 Thread Bill P.
Hello, I have been recently working in Grails (Java's symfony framework) and there is some weirdness if i want to create columns (properties) but not have them show up in the forms or be editable. So in symfony, how would I create 2 properties such as 'DateInserted' and 'beenProcessed' but hav

[symfony-users] How to get form object in preSave()

2010-02-24 Thread Dong YANG
Hello everyone, I would like to know if is that possible to get form object in preSave() method? In fact, before save the form value (fill in by user), I want to treate the input value in preSave() method. But I don't know how to and I don't know whether I can do so. Ple

[symfony-users] autoloading fails while task execution on customized plugins

2010-02-24 Thread Zdanek
Hi, I've strange problem with autoloading. I have sfGuardPlugin installed and sfGuardUser.php class generated in guard plugin directory. I also have customized sfGuardUser class: class sfGuardUser extends PluginsfGuardUser { . located in my application directory lib/model/sfGuardPlugin/ sfG

[symfony-users] Re: Forms howto symfony 1.4

2010-02-24 Thread Massimiliano Arione
http://www.symfony-project.org/forms/1_4/ On 22 Feb, 20:49, Diego Bello wrote: > Hi guys, > > Is there any documentation about how to use forms in symfony 1.4?. > What I want to do is to change a field from text input to select. > > I tried rewritting the form putting the new content in > lib/for

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-24 Thread Christian Hammers
Hello Thanks for this hint! I could not figure out how to use the factory.yml without interfering with the standard logger as you apparently can't create arbitrary objects with it. But after adding the following function: class BlahLogger { public static function getInstance() { r

[symfony-users] m:n problem

2010-02-24 Thread axel at
hello list, problem: I have to build a symfony model for an existing database structure and I'm not allowed to change the existing structure. there are two m:n related tables using the same m:n table partitioned with a type attribute: table1 id ... table2 id ... table3 id ... table1_to_table2_

[symfony-users] Re: Problem with File Upload

2010-02-24 Thread Maicol
Thanks Dennis. Now works fine, but I have another problem: Validation failed in class People 1 field had validation error: * 1 validator failed on image (type) why? thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gro

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-24 Thread Gábor Fási
Put your id (or something else unique) in the url, so you can use that to retrieve the object. On Wed, Feb 24, 2010 at 01:04, Roland Cruse wrote: > Thanks. That did it! > > Now I have: > > $parameters = $request->getParameter('td_excursion'); >  $this->excursion = > Doctrine::getTable('TdExcursio