[symfony-users] Re: Embedded forms. Again...
Hi, Vit228! I found another solution. I tried to make form similar to http://www.rabota.ru/v3_myResume.html?action=create&edit_type=2 . If you are not registered there (I doubt that though :-) - here is little description. There are kinda embedded forms (experience, education etc) - and these forms are saved via ajax with personal "save" button. But on that site there is only one form tag - but I have them as many as I want. And when I click save, AJAX will save this form. There are still some challenges - but I'm sure it will work. Anyway - thanks a lot for help! On 9 дек, 22:54, Vit228 <[EMAIL PROTECTED]> wrote: > Got same problem > "xxxField required" means form is not valid, I see many id-ref fields > in shema, > you may not include necessary fields in form-widget-schema, set unused > fields to hidden, DONT JUST REMOVE THEM from widget shema > This must help, at least helps me. > > Or contact me by ICQ 24072198 > Udachi ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Embedded forms. Again...
I've made population by hand - using setDefault method, but it doesn't seem natural. When I save the form, the empty embedded form returns with errors: "xxxField required"... Just don't get it - why aren't they autopopulated??? On 8 дек, 16:10, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi guys, I'm using symfony 1.2 and Propel, and I have the problem with > autopopulation of embedded forms. They are saved correctly, but when > displayed they are empty. Here is the code: > > //schema.yml > propel: > # it is resume of emploee > seeker_resume: > _attributes: { idMethod: native } > id: { type: INTEGER, required: true, primaryKey: true, > autoIncrement: true, unsigned:true } > user_id: { type: integer, foreignTable: sf_guard_user, > foreignReference: id, required: true, onDelete: cascade } > sector_id: { type: integer, foreignTable: sector, > foreignReference: id, onDelete: cascade } > position: { type: varchar(255), required: true } > currency: { type: varchar(10), required: true } > salary: { type: integer, required: true } > schedule: { type: varchar(100), required: true } > city_live_id: { type: integer, foreignTable: city, > foreignReference: id, onDelete: cascade, required: false } > seek_job_in_native_city: { type: varchar(3), required: false } > ready_to_move: { type: varchar(3), required: false } > experience: { type: varchar(100), required: true } > > # it is the description of emploee's experience > resume_experience: > _attributes: { idMethod: native } > id: { type: INTEGER, required: true, primaryKey: true, > autoIncrement: true, unsigned:true } > seeker_resume_id: { type: integer, foreignTable: seeker_resume, > foreignReference: id, onDelete: cascade } > user_id: { type: integer, foreignTable: sf_guard_user, > foreignReference: id, required: true, onDelete: cascade } > company_name: { type: varchar(100), required: true } > start_date: { type: timestamp, sqltype:datetime } > end_date: { type: timestamp, sqltype:datetime } > post: { type: varchar(255), required: true } > description: { type: longvarchar, required: true } > > public function executeEdit($request) > { > $seekerResume = SeekerResumePeer::retrieveByPk($request- > > >getParameter('id')); > > $this->form = new SeekerResumeForm($seekerResume); > > $experiences = $seekerResume->getResumeExperiences(); > > foreach($experiences as $experience) { > > $experienceForm = new ResumeExperienceForm($experience); > > $this->form->embedForm('experienceForm-' . > $experience->getId(), > $experienceForm); > } > > if ($request->isMethod('post')) > { > //here is saving > ... > } > } > > What am I doing wrong? Any hints will be much appreciated... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Embedded forms. Again...
Hi guys, I'm using symfony 1.2 and Propel, and I have the problem with autopopulation of embedded forms. They are saved correctly, but when displayed they are empty. Here is the code: //schema.yml propel: # it is resume of emploee seeker_resume: _attributes: { idMethod: native } id: { type: INTEGER, required: true, primaryKey: true, autoIncrement: true, unsigned:true } user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } sector_id: { type: integer, foreignTable: sector, foreignReference: id, onDelete: cascade } position: { type: varchar(255), required: true } currency: { type: varchar(10), required: true } salary: { type: integer, required: true } schedule: { type: varchar(100), required: true } city_live_id: { type: integer, foreignTable: city, foreignReference: id, onDelete: cascade, required: false } seek_job_in_native_city: { type: varchar(3), required: false } ready_to_move: { type: varchar(3), required: false } experience: { type: varchar(100), required: true } # it is the description of emploee's experience resume_experience: _attributes: { idMethod: native } id: { type: INTEGER, required: true, primaryKey: true, autoIncrement: true, unsigned:true } seeker_resume_id: { type: integer, foreignTable: seeker_resume, foreignReference: id, onDelete: cascade } user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } company_name: { type: varchar(100), required: true } start_date: { type: timestamp, sqltype:datetime } end_date: { type: timestamp, sqltype:datetime } post: { type: varchar(255), required: true } description: { type: longvarchar, required: true } public function executeEdit($request) { $seekerResume = SeekerResumePeer::retrieveByPk($request- >getParameter('id')); $this->form = new SeekerResumeForm($seekerResume); $experiences = $seekerResume->getResumeExperiences(); foreach($experiences as $experience) { $experienceForm = new ResumeExperienceForm($experience); $this->form->embedForm('experienceForm-' . $experience->getId(), $experienceForm); } if ($request->isMethod('post')) { //here is saving ... } } What am I doing wrong? Any hints will be much appreciated... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: embed propel forms
Hi guys, I'm interested in that problem too, and I got a question: I use symfony 1.2 and propel, and actually I've never seen the 'relations' field in schema.yml. Should I write that? And where I can read about it? On Oct 30, 6:30 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote: > It works for me both ways. > > - Jon > > > > On Thu, Oct 30, 2008 at 10:26 AM, kayoone <[EMAIL PROTECTED]> wrote: > > > that works now, but i dont really get why but oh well...maybe i should > > have done it the other way round, embedding the profile in the sfguard > > user form or something like that. > > > Anyway, thanks alot > > > On Oct 30, 4:02 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote: > > > It works for me with this: > > > > schema > > > -- > > > Profile: > > > columns: > > > first_name: string(255) > > > last_name: string(255) > > > email_address: string(255) > > > sf_guard_user_id: integer(4) > > > relations: > > > User: > > > class: sfGuardUser > > > type: one > > > foreignType: one > > > > user form > > > -- > > > class sfGuardUserForm extends PluginsfGuardUserForm > > > { > > > public function configure() > > > { > > > unset($this['is_active'], $this['is_super_admin'], > > $this['created_at'], > > > $this['updated_at'], $this['last_login'], $this['algorithm'], > > $this['salt'], > > > $this['groups_list'], $this['permissions_list']); > > > $profile = new ProfileForm(); > > > unset($profile['sf_guard_user_id']); > > > $this->embedForm('Profile', $profile); > > > } > > > > } > > > > actions > > > -- > > > class testActions extends sfActions > > > { > > > /** > > > * Executes index action > > > * > > > * @param sfRequest $request A request object > > > */ > > > public function executeIndex($request) > > > { > > > $this->form = new sfGuardUserForm(); > > > if ($request->getMethod() == sfRequest::POST) > > > { > > > $this->form->bindAndSave($request->getParameter('sf_guard_user')); > > > $this->redirect('test/index'); > > > } > > > } > > > > } > > > > template > > > --- > > > > > > > > > > > > > > > > > > > > > > On Thu, Oct 30, 2008 at 9:49 AM, kayoone <[EMAIL PROTECTED]> wrote: > > > > > complete and updated code: > > > >http://nopaste.php-q.net/66370 > > > > -- > > > Jonathan H. Wage > > > Open Source Software Developer & > > Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp:// > >www.symfony-project.org > > -- > Jonathan H. Wage > Open Source Software Developer & > Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://www.symfony-project.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] symfony 1.2 toolbar timers...
The percentages shouldn't sum 100??? Total: # Time 1260 ms Timers typecalls time (ms) time (%) Configuration 9 24.92 1 Action "default/index" 1 12.14 0 View "Success" for "default/index" 1 98.17 7 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: spanish translation for the new jobeet tutorial
Thanks, It's truly amazing the job the symfony team has done and the amount of time Fabien spends. Thanks again. On Dec 2, 3:51 am, Fabien Potencier <[EMAIL PROTECTED] project.com> wrote: > Subscribe to the documentation mailing-list > (http://groups.google.com/group/symfony-docs), as all translations are > coordinated there and some people have already expressed interest in > such translations. > > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.com | aide-de-camp.org > Tél: +33 1 40 99 80 80 > > [EMAIL PROTECTED] wrote: > > Hello, > > > I wan't to cooperate with the spanish translation of the jobett > > tutorial. > > > How and who? > > > Thanks! > > > Pablo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] spanish translation for the new jobeet tutorial
Hello, I wan't to cooperate with the spanish translation of the jobett tutorial. How and who? Thanks! Pablo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony on shared host
Julien I use a simpler solution, this is what I do on 1and1: my / folder is visible so: I have .htaccess deny from all there I created the symfony folders projects for each of my projects and point the folder destination for each domain/sub domain to the / myappproject/web/ folder. the web server makes sure then that all the requests are served from the proper folder. the root htacces is a justincaseparanoid measure. works like a charm, no need to hack the symfony classes. On Nov 20, 3:22 pm, "julien Bessiere" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to put online a website just created using symfony 1.1. > I found some tutorial such > ashttp://trac.symfony-project.org/wiki/InstallingSymfonyOnSharedHostNoSsh > but still... I'm little bit confused (very confused...) > > The tutorial refers to an arborescence with a document root of the virtual > host named /html. > In my host, I don't have that... the document root is directly /. > So, shall I take everything from the web folder and put at the root? > But, I guess this is gonna break all the link controllers and stuff like > that ? > > Thanks for any ligthing ! > > Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony 1.2 has been released
I'm not going to tell to anyone, It's to good to be shared. How can I download all the copies from the server? ;) Thanks!!! Fabian Lange wrote: > Dear symfony community, > I do not want you to miss our symfony 1.2 release. > So head over to our blog and check my posting: > http://www.symfony-project.org/blog/2008/12/01/symfony-1-2-is-already-available > > Read it, try the release and tell everybody that it is great, via Twitter, > Blogs, Forums, Mailing Lists, SMS, or I heard some people actually meet in > person, so better not miss that chance too! > > Enjoy! > Fabian & the symfony team --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autocompletion issue
develop7, thanks a lot - I guess it's exactly I was looking for! On 26 нояб, 19:58, develop7 <[EMAIL PROTECTED]> wrote: > Hi. > > Look athttp://www.symfony-project.org/plugins/sfFormExtraPlugin > > On 26 нояб, 12:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hi guys, > > > I want to make one of my inputs autocompleted. I use symfony 1.1 with > > form model that differs a lot from symfony's 1.0 one. So I don't want > > to use input_auto_complete_tag. Are there any ways that I can make an > > autocompletion in a way compatible with symfony 1.1 form model? If I > > can - would you give an example please? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Autocompletion issue
Hi guys, I want to make one of my inputs autocompleted. I use symfony 1.1 with form model that differs a lot from symfony's 1.0 one. So I don't want to use input_auto_complete_tag. Are there any ways that I can make an autocompletion in a way compatible with symfony 1.1 form model? If I can - would you give an example please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: javascript file linkinking
What a stupid I am. I just forgot to place "/" before my file path: On 24 нояб, 15:51, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I'm facing the following problem. I need to place a folder with > javascript files in my symfony project, but symfony takes all > javascripts from 'js/' folder by default. I didn't find how can i > change this. And how can I link javascript files if they are located > in multidepth folders? Sure that some of you came across the same > issue. What did you do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] javascript file linkinking
Hi guys, I'm facing the following problem. I need to place a folder with javascript files in my symfony project, but symfony takes all javascripts from 'js/' folder by default. I didn't find how can i change this. And how can I link javascript files if they are located in multidepth folders? Sure that some of you came across the same issue. What did you do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How would you.. Combine URLs from the database and the routing system?
W odpowiedzi na e-mail od: Richtermeister otrzymany dnia 2008-11-21 15:45 : > Hi Christian, > > I've done a similar CMS module at one point, and I used the config.php > file to query the database and add a list of valid routes to the > routing on the fly. It's fast enough and holds up great. Let me know > if you need specifics. > > Daniel > > Are you using ORM to do that? Can you publish fragments of your solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Filter problem
My filter is a little bit longer, so I deleted some lines that didn't matter here - and one of that lines was $context = $this->getContext (); . So the problem still remains. On 18 нояб, 20:55, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry, I missed to mention > > $context = $this->getContext(); > > On 18 нояб, 19:47, Lee Bolding <[EMAIL PROTECTED]> wrote: > > > On 18 Nov 2008, at 16:12, [EMAIL PROTECTED] wrote: > > > > public function execute($filterChain) > > > { > > > > if ($this->isFirstCall()) > > > { > > > if(!$this->getContext()->getUser()->isAuthenticated()) { > > > $context->getController()->forward('sfGuardAuth', 'signin'); > > > Shouldn't that be: > > > if (!$this->getContext()->getUser()->isAuthenticate()) { > > $this->getContext()->getController()->forward('sfGuardAuth', > > 'signin'); > > > ??? --~--~-~--~~----~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Filter problem
Sorry, I missed to mention $context = $this->getContext(); On 18 нояб, 19:47, Lee Bolding <[EMAIL PROTECTED]> wrote: > On 18 Nov 2008, at 16:12, [EMAIL PROTECTED] wrote: > > > public function execute($filterChain) > > { > > > if ($this->isFirstCall()) > > { > > if(!$this->getContext()->getUser()->isAuthenticated()) { > > $context->getController()->forward('sfGuardAuth', 'signin'); > > Shouldn't that be: > > if (!$this->getContext()->getUser()->isAuthenticate()) { > $this->getContext()->getController()->forward('sfGuardAuth', > 'signin'); > > ??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Filter problem
Hi guys, I've made a filter that forwards the unregistered users to a sfGuardAuth/signin (I use sfGuardPlugin). The problem is that after forwarding the signin page is displayed twice with an error, i.e. _ HEADER __ SIGNIN FORM ___ FOOTER ___ Warning: Cannot modify header information - headers already sent by (output started at U:\home\symfony\lib\response\sfResponse.class.php: 105) in U:\home\symfony\lib\response\sfWebResponse.class.php on line 303 Warning: Cannot modify header information - headers already sent by (output started at U:\home\symfony\lib\response\sfResponse.class.php: 105) in U:\home\symfony\lib\response\sfWebResponse.class.php on line 317 _ HEADER __ SIGNIN FORM ___ FOOTER ___ The filter code itself seems to be easy, can't comprehend where is the mistake... public function execute($filterChain) { if ($this->isFirstCall()) { if(!$this->getContext()->getUser()->isAuthenticated()) { $context->getController()->forward('sfGuardAuth', 'signin'); } } $filterChain->execute(); } Anticipating the advices to use the security.yml file instead: I know that I can do it, and I will, but I just can't figure out what's wrong here? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autoloading problem
Thanks a lot, Kiril - I just didn't clear cache after I changed the case, as you told. On 18 нояб, 15:06, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Having used symfony a lot, I know for a fact that that is not > possible, that is to have autoloading work only in one action and not > in the other. After you change your file names and class names, make > sure you do "php symfony cc" and then try again. > > 2008/11/18 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > Kiril, I made sure that filenames and classnames have the same case. > > The problem is that the file is autoloaded only in index actions - and > > the same file is not autoloaded in any others. > > > On 14 нояб, 22:21, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > >> Make sure you are using the right name for your file myClass.class.php > >> and MyClass.class.php are different on a case sensitive sistem and I > >> think that is your problem. PHP classes and functions are not case > >> sensitive (as far as I know) and if one time you call your class > >> $something = new myClass() and another time $something = new > >> MyClass(), these differ for the autoloading. > > >> Kiril > > >> On Wed, Nov 12, 2008 at 9:47 PM, [EMAIL PROTECTED] > > >> <[EMAIL PROTECTED]> wrote: > > >> > This path is relative to the site root. > >> > I use symfony 1.1 by the way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autoloading problem
Kiril, I made sure that filenames and classnames have the same case. The problem is that the file is autoloaded only in index actions - and the same file is not autoloaded in any others. On 14 нояб, 22:21, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Make sure you are using the right name for your file myClass.class.php > and MyClass.class.php are different on a case sensitive sistem and I > think that is your problem. PHP classes and functions are not case > sensitive (as far as I know) and if one time you call your class > $something = new myClass() and another time $something = new > MyClass(), these differ for the autoloading. > > Kiril > > On Wed, Nov 12, 2008 at 9:47 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > This path is relative to the site root. > > I use symfony 1.1 by the way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: AJAX doesn't work on prod box
Alright I fixed the issue, but I'm still not sure what the underlying problem was. I had to download prototype and link to it explicitly in my template, but I think I'll attribute this to being a noob and not deploying my application correctly. Thanks for the help though, -Brendan On Nov 17, 1:01 pm, Lee Bolding <[EMAIL PROTECTED]> wrote: > firebug is your friend for debugging AJAX ;) > > On 17 Nov 2008, at 17:53, Jonathan Wage wrote: > > > Turn on logging and see if the requests are making it to the server > > and just erroring out. > > > Tail the production log files > > > $ tail -f log/appname_prod.log > > > Then execute your action and see if anything is logged. > > > - Jon > > > On Mon, Nov 17, 2008 at 11:17 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED] > > > wrote: > > > When I froze and uploaded my source to my production box (on > > slicehost), my AJAX-ed links won't work. They were tested and fine in > > my dev environment, but on the server, the code is displayed in the > > source, but clicking on the link has the same effect as an > href="#"> tag. I feel like this is a server or browser issue rather > > than a symfony issue, but if anyone can point me in the right > > direction, I'd really appreciate it. > > > Thank you, > > > Brendan > > > -- > > Jonathan H. Wage > > Open Source Software Developer & Evangelist > >http://www.jwage.com > >http://www.doctrine-project.org > >http://www.symfony-project.org --~--~-~--~~~---~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: AJAX doesn't work on prod box
Yeah it says AJAX isn't defined, which would lead me to believe that prototype isn't working for some reason, and I don't know why that would be, besides the fact that I am not good at deploying my application. -Brendan On Nov 17, 1:01 pm, Lee Bolding <[EMAIL PROTECTED]> wrote: > firebug is your friend for debugging AJAX ;) > > On 17 Nov 2008, at 17:53, Jonathan Wage wrote: > > > Turn on logging and see if the requests are making it to the server > > and just erroring out. > > > Tail the production log files > > > $ tail -f log/appname_prod.log > > > Then execute your action and see if anything is logged. > > > - Jon > > > On Mon, Nov 17, 2008 at 11:17 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED] > > > wrote: > > > When I froze and uploaded my source to my production box (on > > slicehost), my AJAX-ed links won't work. They were tested and fine in > > my dev environment, but on the server, the code is displayed in the > > source, but clicking on the link has the same effect as an > href="#"> tag. I feel like this is a server or browser issue rather > > than a symfony issue, but if anyone can point me in the right > > direction, I'd really appreciate it. > > > Thank you, > > > Brendan > > > -- > > Jonathan H. Wage > > Open Source Software Developer & Evangelist > >http://www.jwage.com > >http://www.doctrine-project.org > >http://www.symfony-project.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: unique user in my article index
Wait, actually I didn't realize you were trying to select the latest 10 articles, I thought you were just getting 10 articles from different users. That would make things more difficult. I'm not sure how you'd do that. On Nov 17, 12:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > No it wouldn't. Use this: > > $c = new Criteria(); > $c->addDescendingOrderByColumn(UserPeer::CREATED_AT); > $pager = new sfPropelPager('User', 10); > > and then, when you have 10 user objects in your template, > > getLatestArticle()->printArticle() ?> > > What you're really trying to do is retrieve a list of users, and then > get an article from each of them. > > -Brendan > > On Nov 17, 12:44 pm, javo <[EMAIL PROTECTED]> wrote: > > > That would select the latest articles from one user, wouldn't it? > > > I want to select 10 articles (latest) from different users :) > > > On Nov 17, 5:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Why not just get users with criteria and write a $user- > > > > >getLatestArticle() method that's called in your view? > > > > On Nov 17, 12:28 pm, javo <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I use this code to display articles on my page, > > > > > public function executeIndex() > > > > { > > > > > $c = new Criteria(); > > > > $c->addDescendingOrderByColumn(ArticlePeer::CREATED_AT); > > > > $pager = new sfPropelPager('Article', 10); > > > > $pager->setPeerMethod('doSelectJoinSfGuardUserProfile'); > > > > $pager->setCriteria($c); > > > > > $pager->setPage($this->getRequestParameter('page', 1)); > > > > $pager->init(); > > > > $this->pager = $pager; > > > > > } > > > > > It list 10 articles, it's all fine but is there any way to display > > > > only one article from one author? so the SfGuardUserProfileId would be > > > > unique? > > > > > Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: unique user in my article index
No it wouldn't. Use this: $c = new Criteria(); $c->addDescendingOrderByColumn(UserPeer::CREATED_AT); $pager = new sfPropelPager('User', 10); and then, when you have 10 user objects in your template, getLatestArticle()->printArticle() ?> What you're really trying to do is retrieve a list of users, and then get an article from each of them. -Brendan On Nov 17, 12:44 pm, javo <[EMAIL PROTECTED]> wrote: > That would select the latest articles from one user, wouldn't it? > > I want to select 10 articles (latest) from different users :) > > On Nov 17, 5:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Why not just get users with criteria and write a $user- > > > >getLatestArticle() method that's called in your view? > > > On Nov 17, 12:28 pm, javo <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I use this code to display articles on my page, > > > > public function executeIndex() > > > { > > > > $c = new Criteria(); > > > $c->addDescendingOrderByColumn(ArticlePeer::CREATED_AT); > > > $pager = new sfPropelPager('Article', 10); > > > $pager->setPeerMethod('doSelectJoinSfGuardUserProfile'); > > > $pager->setCriteria($c); > > > > $pager->setPage($this->getRequestParameter('page', 1)); > > > $pager->init(); > > > $this->pager = $pager; > > > > } > > > > It list 10 articles, it's all fine but is there any way to display > > > only one article from one author? so the SfGuardUserProfileId would be > > > unique? > > > > Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: unique user in my article index
Why not just get users with criteria and write a $user- >getLatestArticle() method that's called in your view? On Nov 17, 12:28 pm, javo <[EMAIL PROTECTED]> wrote: > Hi, > > I use this code to display articles on my page, > > public function executeIndex() > { > > $c = new Criteria(); > $c->addDescendingOrderByColumn(ArticlePeer::CREATED_AT); > $pager = new sfPropelPager('Article', 10); > $pager->setPeerMethod('doSelectJoinSfGuardUserProfile'); > $pager->setCriteria($c); > > $pager->setPage($this->getRequestParameter('page', 1)); > $pager->init(); > $this->pager = $pager; > > } > > It list 10 articles, it's all fine but is there any way to display > only one article from one author? so the SfGuardUserProfileId would be > unique? > > Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] AJAX doesn't work on prod box
When I froze and uploaded my source to my production box (on slicehost), my AJAX-ed links won't work. They were tested and fine in my dev environment, but on the server, the code is displayed in the source, but clicking on the link has the same effect as an tag. I feel like this is a server or browser issue rather than a symfony issue, but if anyone can point me in the right direction, I'd really appreciate it. Thank you, Brendan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: timestamp default value
Actually it was not me who chose the symfony version to work in. It's interesting - why are they going to maintain v1.0 for whole three years - but 1.1 and 1.2 only for 1 year? On 17 нояб, 16:45, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > I am personally using the plugin on Symfony 1.0 and it works just > fine, if you want to stay as close as possible to the symfony library > versions. Why not use Symfony 1.2, btw? It is ready for use and as it > seems you are not working on a production ready project yet. There is > not point to start with symfony 1.1 now. > > Kiril > > 2008/11/17 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > I'm using Propel 1.2, though 1.3 may be installed as plugin, right? > > Actually I don't know - does it worth it? Installing Propel 1.3 as > > plugin I mean? One advantage I've already seen - are there any others? > > > On 17 нояб, 16:17, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > >> Did you try: > > >> sess_time: { type: datetime, defaultExpr: "NOW()" } > > >> You must be using Propel 1.3 for this to work, though. > > >> 2008/11/17 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > >> > Hi Kirill, look what I found out. When I define session table in > >> > schema.yml like that: > > >> > session: > >> > sess_id: { type: VARCHAR, size: '40', required: true, default: > >> > '' } > >> > sess_data: { type: LONGVARCHAR, required: false } > >> > sess_time: { type: INTEGER, unsigned:true } > > >> > console tells me that I specified autoincrement for column id but > >> > haven't specified idMethod="native" for table session. But - God sees > >> > - I don't have id column! Though I have sess_id column - I haven't > >> > specified autoincrement for it! > > >> > OK then, I defined id column with idMethod="native". > > >> > session: > >> > _attributes: { idMethod: native } > >> > id: { type: INTEGER, required: true, autoIncrement: true, > >> > primaryKey: true, unsigned:true } > >> > sess_id: { type: VARCHAR, size: '40', required: true, default: > >> > '' } > >> > sess_data: { type: LONGVARCHAR, required: false } > >> > sess_time: { type: INTEGER, unsigned:true } > > >> > It works fine - but once I change type:INTEGER for type: timestamp, > >> > sqltype:datetime - it all stop work. I don't see any date in my db > >> > different from -00-00 00:00. So the problem was that I used only > >> > type: timestamp, sqltype:datetime. I just tried to use type:INTEGER > >> > instead. > > >> > Truly, learning symfony is a lot of fun. > > >> > On 17 нояб, 15:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > >> > wrote: > >> >> Hi, Kiril. > > >> >> Yes, I define this table in schema.yml. So I just need to know how to > >> >> define by default the current time. I've never heard about defaultExpr > >> >> attribute so I searched - but haven't found almost anything, the first > >> >> result was this page. Please, tell me if you know how to do it! > > >> >> P.S. Sorry for answering so late - I've been in St. Petersburg. I love > >> >> this town so much! > > >> >> On 14 нояб, 22:15, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > > >> >> > Are you defining this table in your schema.yml or it is pre-created > >> >> > and you are just using it for the session storage. Give some more > >> >> > details and I am sure we will be able to help... and save one life :) > > >> >> > FYI, the default attribute in schema isn't meant to support SQL > >> >> > functions like CURRENT_TIME. Instead you should use the defaultExpr > >> >> > attribute. > > >> >> > Kiril > > >> >> > On Fri, Nov 14, 2008 at 8:04 PM, [EMAIL PROTECTED] > > >> >> > <[EMAIL PROTECTED]> wrote: > > >> >> > > Hi guys, > > >> >> > > I have the following problem. I specified a 'sessions' table with > >> >> > > some > >> >> > > fields, one of them is called sess_time. I tried to set it's default > >> >> > > value as NOW(), i tried CURRENT_TIMESTAMP, with braces and without > >> >> > > them, with qutations and without them - I tried almost everything > >> >> > > one > >> >> > > can ever imagine - but it didn't work. Either it was an error in > >> >> > > console or symfony error: fail to write data in session table. I > >> >> > > just > >> >> > > don't know what to do. I don't want to live anymore. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: timestamp default value
I'm using Propel 1.2, though 1.3 may be installed as plugin, right? Actually I don't know - does it worth it? Installing Propel 1.3 as plugin I mean? One advantage I've already seen - are there any others? On 17 нояб, 16:17, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Did you try: > > sess_time: { type: datetime, defaultExpr: "NOW()" } > > You must be using Propel 1.3 for this to work, though. > > 2008/11/17 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > Hi Kirill, look what I found out. When I define session table in > > schema.yml like that: > > > session: > > sess_id: { type: VARCHAR, size: '40', required: true, default: > > '' } > > sess_data: { type: LONGVARCHAR, required: false } > > sess_time: { type: INTEGER, unsigned:true } > > > console tells me that I specified autoincrement for column id but > > haven't specified idMethod="native" for table session. But - God sees > > - I don't have id column! Though I have sess_id column - I haven't > > specified autoincrement for it! > > > OK then, I defined id column with idMethod="native". > > > session: > > _attributes: { idMethod: native } > > id: { type: INTEGER, required: true, autoIncrement: true, > > primaryKey: true, unsigned:true } > > sess_id: { type: VARCHAR, size: '40', required: true, default: > > '' } > > sess_data: { type: LONGVARCHAR, required: false } > > sess_time: { type: INTEGER, unsigned:true } > > > It works fine - but once I change type:INTEGER for type: timestamp, > > sqltype:datetime - it all stop work. I don't see any date in my db > > different from -00-00 00:00. So the problem was that I used only > > type: timestamp, sqltype:datetime. I just tried to use type:INTEGER > > instead. > > > Truly, learning symfony is a lot of fun. > > > On 17 нояб, 15:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > >> Hi, Kiril. > > >> Yes, I define this table in schema.yml. So I just need to know how to > >> define by default the current time. I've never heard about defaultExpr > >> attribute so I searched - but haven't found almost anything, the first > >> result was this page. Please, tell me if you know how to do it! > > >> P.S. Sorry for answering so late - I've been in St. Petersburg. I love > >> this town so much! > > >> On 14 нояб, 22:15, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > > >> > Are you defining this table in your schema.yml or it is pre-created > >> > and you are just using it for the session storage. Give some more > >> > details and I am sure we will be able to help... and save one life :) > > >> > FYI, the default attribute in schema isn't meant to support SQL > >> > functions like CURRENT_TIME. Instead you should use the defaultExpr > >> > attribute. > > >> > Kiril > > >> > On Fri, Nov 14, 2008 at 8:04 PM, [EMAIL PROTECTED] > > >> > <[EMAIL PROTECTED]> wrote: > > >> > > Hi guys, > > >> > > I have the following problem. I specified a 'sessions' table with some > >> > > fields, one of them is called sess_time. I tried to set it's default > >> > > value as NOW(), i tried CURRENT_TIMESTAMP, with braces and without > >> > > them, with qutations and without them - I tried almost everything one > >> > > can ever imagine - but it didn't work. Either it was an error in > >> > > console or symfony error: fail to write data in session table. I just > >> > > don't know what to do. I don't want to live anymore. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: timestamp default value
Hi Kirill, look what I found out. When I define session table in schema.yml like that: session: sess_id: { type: VARCHAR, size: '40', required: true, default: '' } sess_data: { type: LONGVARCHAR, required: false } sess_time: { type: INTEGER, unsigned:true } console tells me that I specified autoincrement for column id but haven't specified idMethod="native" for table session. But - God sees - I don't have id column! Though I have sess_id column - I haven't specified autoincrement for it! OK then, I defined id column with idMethod="native". session: _attributes: { idMethod: native } id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true, unsigned:true } sess_id: { type: VARCHAR, size: '40', required: true, default: '' } sess_data: { type: LONGVARCHAR, required: false } sess_time: { type: INTEGER, unsigned:true } It works fine - but once I change type:INTEGER for type: timestamp, sqltype:datetime - it all stop work. I don't see any date in my db different from -00-00 00:00. So the problem was that I used only type: timestamp, sqltype:datetime. I just tried to use type:INTEGER instead. Truly, learning symfony is a lot of fun. On 17 нояб, 15:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, Kiril. > > Yes, I define this table in schema.yml. So I just need to know how to > define by default the current time. I've never heard about defaultExpr > attribute so I searched - but haven't found almost anything, the first > result was this page. Please, tell me if you know how to do it! > > P.S. Sorry for answering so late - I've been in St. Petersburg. I love > this town so much! > > On 14 нояб, 22:15, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > > > Are you defining this table in your schema.yml or it is pre-created > > and you are just using it for the session storage. Give some more > > details and I am sure we will be able to help... and save one life :) > > > FYI, the default attribute in schema isn't meant to support SQL > > functions like CURRENT_TIME. Instead you should use the defaultExpr > > attribute. > > > Kiril > > > On Fri, Nov 14, 2008 at 8:04 PM, [EMAIL PROTECTED] > > > <[EMAIL PROTECTED]> wrote: > > > > Hi guys, > > > > I have the following problem. I specified a 'sessions' table with some > > > fields, one of them is called sess_time. I tried to set it's default > > > value as NOW(), i tried CURRENT_TIMESTAMP, with braces and without > > > them, with qutations and without them - I tried almost everything one > > > can ever imagine - but it didn't work. Either it was an error in > > > console or symfony error: fail to write data in session table. I just > > > don't know what to do. I don't want to live anymore. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: timestamp default value
Hi, Kiril. Yes, I define this table in schema.yml. So I just need to know how to define by default the current time. I've never heard about defaultExpr attribute so I searched - but haven't found almost anything, the first result was this page. Please, tell me if you know how to do it! P.S. Sorry for answering so late - I've been in St. Petersburg. I love this town so much! On 14 нояб, 22:15, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Are you defining this table in your schema.yml or it is pre-created > and you are just using it for the session storage. Give some more > details and I am sure we will be able to help... and save one life :) > > FYI, the default attribute in schema isn't meant to support SQL > functions like CURRENT_TIME. Instead you should use the defaultExpr > attribute. > > Kiril > > On Fri, Nov 14, 2008 at 8:04 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > > I have the following problem. I specified a 'sessions' table with some > > fields, one of them is called sess_time. I tried to set it's default > > value as NOW(), i tried CURRENT_TIMESTAMP, with braces and without > > them, with qutations and without them - I tried almost everything one > > can ever imagine - but it didn't work. Either it was an error in > > console or symfony error: fail to write data in session table. I just > > don't know what to do. I don't want to live anymore. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] which graphical design software to maintain database for symfony??
I want to design and maintain my databases with graphical tool like xcase or altova or something else then reverse engineering to schema.yml for symfony I know that for i18n or nested set I need to create some sort of filter (XSLT?) to regenerate good schema.yml and now questions: 1.which software do you use and prefer when it comes to graphical designing database (beside DBDesigner) 2.anyone created universal tool or for specific software to convert output to symfony schema.yml (i saw on wiki solution for clay http://trac.symfony-project.org/wiki/ClayToSchema) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWidgetFormInputFile Not working ?
Just found it. sfWidgetFormInputFileEditable. Can't believe symfony 1.2 is this good. On Nov 16, 1:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've already ticket this inhttp://trac.symfony-project.org/ticket/4946 > > Is there any widget for file upload in sf1.2 admin generator, that has > the options to show and remove the current image? > > On Nov 15, 3:50 pm, fredlab <[EMAIL PROTECTED]> wrote: > > > Hey, > > > I followed the sf 1.2 admin gen tutorial. Then I added a file field to > > my author table and regenerated everything. > > Then in authorform.class.php, I added $this->widgetSchema['file'] = > > new sfWidgetFormInputFile(); > > > When I want to create a new author and attach a file, I get : > > > This form is multipart, which means you need to supply a files array > > as the bind() method second argument. > > stack trace > > > * at () > > in SF_SYMFONY_LIB_DIR\form\sfForm.class.php line 225 ... > > 222. { > > 223. if ($this->isMultipart()) > > 224. { > > 225. throw new InvalidArgumentException('This > > form is multipart, which means you need to supply a files array as the > > bind() method second argument.'); > > 226. } > > 227. > > 228. $this->taintedFiles = array(); > > * at sfForm->bind(array('id' => '', 'name' => 'tt', > > 'about' => 't')) > > in SF_ROOT_DIR\cache\backend\dev\modules\autoAuthors\actions > > \actions.class.php line 183 ... > > 180. > > 181. protected function processForm(sfWebRequest > > $request, sfForm $form) > > 182. { > > 183. $form->bind($request->getParameter('author')); > > 184. if ($form->isValid()) > > 185. { > > 186. $this->getUser()->setFlash('notice', > > $form->getObject()->isNew() ? 'The item was created successfully.' : 'The > > > item was updated successfully.'); > > * at autoAuthorsActions->processForm(object('sfWebRequest'), object > > ('AuthorForm')) > > in SF_ROOT_DIR\cache\backend\dev\modules\autoAuthors\actions > > \actions.class.php line 84 ... > > 81. $this->form = $this->configuration->getForm(); > > 82. $this->author = $this->form->getObject(); > > 83. > > 84. $this->processForm($request, $this->form); > > 85. > > 86. $this->setTemplate('new'); > > 87. } > > * at autoAuthorsActions->executeCreate(object('sfWebRequest')) > > in SF_SYMFONY_LIB_DIR\action\sfActions.class.php line 53 ... > > 50. } > > 51. > > 52. // run action > > 53. return $this->$actionToRun($request); > > 54. } > > 55. } > > 56. > > * at sfActions->execute(object('sfWebRequest')) > > in SF_SYMFONY_LIB_DIR\plugins\sfCompat10Plugin\lib\filter > > \sfValidationExecutionFilter.class.php line 167 ... > > 164. { > > 165. // execute the action > > 166. $actionInstance->preExecute(); > > 167. $viewName = > > $actionInstance->execute($this->context->getRequest()); > > > 168. $actionInstance->postExecute(); > > 169. > > 170. return $viewName ? $viewName : sfView::SUCCESS; > > * at sfValidationExecutionFilter->executeAction(object > > ('authorsActions')) > > in SF_SYMFONY_LIB_DIR\plugins\sfCompat10Plugin\lib\filter > > \sfValidationExecutionFilter.class.php line 85 ... > > 82. return sfView::SUCCESS; > > 83. } > > 84. > > 85. return $this->validateAction($filterChain, > > $actionInstance) ? $this->executeAction($actionInstance) : > > $this->handleErrorAction($actionInstance); > > > 86. } > > 87. > > 88. /** > > * at sfValidationExecutionFilter->handleAction(object > > ('sfF
[symfony-users] Re: sfWidgetFormInputFile Not working ?
I've already ticket this in http://trac.symfony-project.org/ticket/4946 Is there any widget for file upload in sf1.2 admin generator, that has the options to show and remove the current image? On Nov 15, 3:50 pm, fredlab <[EMAIL PROTECTED]> wrote: > Hey, > > I followed the sf 1.2 admin gen tutorial. Then I added a file field to > my author table and regenerated everything. > Then in authorform.class.php, I added $this->widgetSchema['file'] = > new sfWidgetFormInputFile(); > > When I want to create a new author and attach a file, I get : > > This form is multipart, which means you need to supply a files array > as the bind() method second argument. > stack trace > > * at () > in SF_SYMFONY_LIB_DIR\form\sfForm.class.php line 225 ... > 222. { > 223. if ($this->isMultipart()) > 224. { > 225. throw new InvalidArgumentException('This > form is multipart, which means you need to supply a files array as the > bind() method second argument.'); > 226. } > 227. > 228. $this->taintedFiles = array(); > * at sfForm->bind(array('id' => '', 'name' => 'tt', > 'about' => 't')) > in SF_ROOT_DIR\cache\backend\dev\modules\autoAuthors\actions > \actions.class.php line 183 ... > 180. > 181. protected function processForm(sfWebRequest > $request, sfForm $form) > 182. { > 183. $form->bind($request->getParameter('author')); > 184. if ($form->isValid()) > 185. { > 186. $this->getUser()->setFlash('notice', > $form->getObject()->isNew() ? 'The item was created successfully.' : 'The > > item was updated successfully.'); > * at autoAuthorsActions->processForm(object('sfWebRequest'), object > ('AuthorForm')) > in SF_ROOT_DIR\cache\backend\dev\modules\autoAuthors\actions > \actions.class.php line 84 ... > 81. $this->form = $this->configuration->getForm(); > 82. $this->author = $this->form->getObject(); > 83. > 84. $this->processForm($request, $this->form); > 85. > 86. $this->setTemplate('new'); > 87. } > * at autoAuthorsActions->executeCreate(object('sfWebRequest')) > in SF_SYMFONY_LIB_DIR\action\sfActions.class.php line 53 ... > 50. } > 51. > 52. // run action > 53. return $this->$actionToRun($request); > 54. } > 55. } > 56. > * at sfActions->execute(object('sfWebRequest')) > in SF_SYMFONY_LIB_DIR\plugins\sfCompat10Plugin\lib\filter > \sfValidationExecutionFilter.class.php line 167 ... > 164. { > 165. // execute the action > 166. $actionInstance->preExecute(); > 167. $viewName = > $actionInstance->execute($this->context->getRequest()); > > 168. $actionInstance->postExecute(); > 169. > 170. return $viewName ? $viewName : sfView::SUCCESS; > * at sfValidationExecutionFilter->executeAction(object > ('authorsActions')) > in SF_SYMFONY_LIB_DIR\plugins\sfCompat10Plugin\lib\filter > \sfValidationExecutionFilter.class.php line 85 ... > 82. return sfView::SUCCESS; > 83. } > 84. > 85. return $this->validateAction($filterChain, > $actionInstance) ? $this->executeAction($actionInstance) : > $this->handleErrorAction($actionInstance); > > 86. } > 87. > 88. /** > * at sfValidationExecutionFilter->handleAction(object > ('sfFilterChain'), object('authorsActions')) > in SF_SYMFONY_LIB_DIR\plugins\sfCompat10Plugin\lib\filter > \sfValidationExecutionFilter.class.php line 43 ... > 40. $timer = sfTimerManager::getTimer(sprintf > ('Action "%s/%s"', $actionInstance->getModuleName(), > $actionInstance->getActionName())); > > 41. } > 42. > 43. $viewName = $this->handleAction($filterChain, > $actionInstance); > 44. > 45. if (sfConfig::ge
[symfony-users] timestamp default value
Hi guys, I have the following problem. I specified a 'sessions' table with some fields, one of them is called sess_time. I tried to set it's default value as NOW(), i tried CURRENT_TIMESTAMP, with braces and without them, with qutations and without them - I tried almost everything one can ever imagine - but it didn't work. Either it was an error in console or symfony error: fail to write data in session table. I just don't know what to do. I don't want to live anymore. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using components
Thanks, Nicolas, but I found out that I can specify a partial in my "templates" folder that belongs to some module and a component in components.class.php in "actions" folder that belongs to the same module folder - and I can use this component in global layout.php! It's pretty fine - though not logical enough. On 12 нояб, 23:02, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > 2008/11/12 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Thanks, Dmitry - though it's very pitifully. > > You can create components in plugin modules, and then share them > accross multiple apps, though. > > ++ > > -- > Nicolas > Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com > Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using components
Thanks, Dmitry - though it's very pitifully. On 12 нояб, 20:35, "Dmitry Nesteruk" <[EMAIL PROTECTED]> wrote: > Each component related with some module, you can not create global > component. > > 2008/11/12 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > > > Hi guys, > > > I wonder if I can use component for a partial stored in apps\frontend > > \templates? If I can - where should the component be located? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autoloading problem
This path is relative to the site root. I use symfony 1.1 by the way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Autoloading problem
Hi folks, I have noticed the following autoload problem. I specified a class called "MyTools" in \lib\myTools.class.php - so it should be autoloaded anywhere in my application. But it's autoloaded only in actions called "executeIndex" and in templates called "indexSuccess". How can I change this odd behaviour and make this class autoloadable anywhere? Or how can I load it by hand? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Using components
Hi guys, I wonder if I can use component for a partial stored in apps\frontend \templates? If I can - where should the component be located? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: cache folder in web cluster
On 11 Nov, 07:49, Frank Stelzer <[EMAIL PROTECTED]> wrote: > all of this cached stuff to MemCached (overwriting sfConfigCache), but > i am not sure, if this would be the best solution. > In your factories.yml set your view_cache class to sfMemcacheCache with the right parameters: http://trac.symfony-project.org/browser/branches/1.1/lib/cache/sfMemcacheCache.class.php Otherwise look at the other available cache types in lib/cache to see if any fit your setup. > Cheers, > Frank Regards, Jamie Learmonth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] culture and sfSearch plugin ??
what is the best option to filter sfSearch results according to actual culture?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Partial helper in symfony 1.1 task
sfLoader::loadHelpers('Partial'); -- Jamie On 3 Nov, 12:53, James Cauwelier <[EMAIL PROTECTED]> wrote: > Hi, > > I want to send emails from a task, but need the partialhelper to be > available in this class. The cookbook on the symfony site is rather > vague about this. Can somebody show me some working code for emailing > from a task? > > Here is some of my task code: > > protected function execute($arguments = array(), $options = array()) > { > // Database initialization > $databaseManager = new sfDatabaseManager($this->configuration); > $connection = Propel::getConnection($options['connection'] ? > $options['connection'] : ''); > // add code here > > // retrieve all accounts that need activation > $c = new Criteria; > $c->add (ClientActivationQueuePeer::SENT, false); > $activation_count = ClientActivationQueuePeer::doCount ($c, > $connection); > > // including the partial helper > // DOES NOT WORK > use_helper ('Partial'); > > while ($activation_count > 0) > { > // get_component() as advised in the cookbook > section of the documentation > // DOES NOT WORK > $mailbody = get_component ('mailer', > 'activateClient'); > > $activation_count = > ClientActivationQueuePeer::doCount ($c); > } > } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] are there any working search plugin for symfony 1.1 ?
are there any working search plugin for symfony 1.1 ? I am getting error below when using sfLucene from SVN 1.1 branch Fatal error: Call to undefined method sfLuceneInitializeTask::bootstrapSymfony() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: is it possible to set up meta title in helper??
sfContext::getInstance()->getResponse()->addMeta('title', 'My New Title', true); -- Jamie On 2 Nov, 21:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > is it possible to set up "meta title" in helper in symfony 1.1 ?? > > i can change Title using setTitle() but how can I modify http meta title > in my custom Helper?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] is it possible to set up meta title in helper??
is it possible to set up "meta title" in helper in symfony 1.1 ?? i can change Title using setTitle() but how can I modify http meta title in my custom Helper?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Escaping array values
Hi. Having looked at "The Book" I notice that it is possible to escape the contents of arrays in order to prevent XSS attacks. However, I am having trouble understanding how to achieve this. My partial code is below: $headers, $firstcol and $endcol are declared in a component that then leads on to this partial. I would like to use $sf_data->getRaw('headers'), $sf_data- >getRaw('firstcols') and $sf_data->getRaw('endcols') to output the unescaped values of the array but when I try I get nothing output. How do I deal with the [$z] key value when using getRaw as the PHP interpreter is not going to like that! I would appreciate any help with this issue. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: jQuery and symfony 1.2
Did you get any error while installing sfJqueryPlugin using Pear ? if so you need to specify release version : symfony plugin:install sfJqueryReloadedPlugin -r=1.2.2 Also make sure you have the suffix plugin when you enable the plugin in you projectConfiguration.class.php and you put this in setup. $this->enablePlugins('sfJqueryReloadedPlugin') or $this- >enablePlugins(array('sfJqueryReloadedPlugin', 'otherplugin')); blind_down, is not supported by jquery here is the list supported effect by jquery : http://docs.jquery.com/Effects please note that sfJqueryReloadedPlugin does not support yet custom effect such Animate, stop, queue ... So if you need to do something like this: return link_to_function('interested?', visual_effect('blind_down', 'login', array('duration' => 0.5))); With sfJqueryReloadedPlugin it would be return jq_link_to_function('interested?', jq_visual_effect('slideDown', '#login', array('speed' => 500))); On Oct 23, 9:06 pm, Flancer <[EMAIL PROTECTED]> wrote: > I've been trying to achieve the hidden login form feat found > athttp://www.symfony-project.org/askeet/1_0/en/8. > > However, it seems things have changed for symfony 1.2. > > I have installed the sfJqueryReloaded plugin but it can't be enabled > from the ProjectConfiguration.class.php. > > So I've manually copy the helper to the project/lib/helper folder and > that seems to help a bit. > > However now I just can't the example to run as it can't find the > blind_down Javascript function. > > Would appreciate help on this. > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: using Session variables in my class
Almost all ;o) Kris, i have no problems. I try to help jasonb: > Its called when symfony writes to a log, basically im trying to write > the user who is writing to the log since so many users are hitting the > log i wanted a way to split up the logging > Its a custom logging class That's why i asked him about the log. Michael On 11 Okt., 01:38, Kris Wallsmith <[EMAIL PROTECTED]> wrote: > Hi Michael, > > What version of symfony are you using? > > Kris > > On Oct 10, 10:15 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Which log do you mean? Symfony logs many informations (debug > > enviroment). The first are logged, when the routing is configured (as > > in sf 1.2). I don't think that the session data is available at this > > time. > > > Michael > > > On 10 Okt., 17:51, jasonb <[EMAIL PROTECTED]> wrote: > > > > any ideas? > > > > On Oct 9, 5:19 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > When, and in which context is this class called? > > > > It seems, that whenever your class is called, the "User" object is not > > > > created yet. > > > > So when do you call it in your request? > > > > > Michael > > > > > On 9 Okt., 20:55, jasonb <[EMAIL PROTECTED]> wrote: > > > > > > this must be a difficult thing to do since I've asked on the forum and > > > > > the IRC channels and no one knows? > > > > > can someone at least direct me to where I might find my answer? > > > > > > On Oct 9, 2:42 pm, jasonb <[EMAIL PROTECTED]> wrote: > > > > > > > Im trying to use session variables in my /lib/mylogger.php class > > > > > > > everytime i reference > > > > > > $username = sfContext::getInstance()->getUser()- > > > > > > > >getAttribute('Username'); > > > > > > > the code says > > > > > > Fatal error: Call to a member function getAttribute() on a > > > > > > non-object > > > > > > > but I've been struggling and I even tried doing a > > > > > > print_r(sfContext::getInstance()) and i see the attribute in the > > > > > > page > > > > > > but it wont allow me to access it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Problem setting default values in forms.
When I try to set a default value for a form in the action like this: $this->form = new MessageForm(array('to' => $message->getUser())); I get this: Catchable fatal error: Argument 1 passed to sfFormPropel::__construct() must be an instance of BaseObject, array given, called in {THE DIRECTORY OF MY ACTIONS CLASS} on line 90 and defined in /usr/share/php/symfony/plugins/sfPropelPlugin/lib/propel/ sfFormPropel.class.php on line 42 Any help would be appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: using Session variables in my class
Which log do you mean? Symfony logs many informations (debug enviroment). The first are logged, when the routing is configured (as in sf 1.2). I don't think that the session data is available at this time. Michael On 10 Okt., 17:51, jasonb <[EMAIL PROTECTED]> wrote: > any ideas? > > On Oct 9, 5:19 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > When, and in which context is this class called? > > It seems, that whenever your class is called, the "User" object is not > > created yet. > > So when do you call it in your request? > > > Michael > > > On 9 Okt., 20:55, jasonb <[EMAIL PROTECTED]> wrote: > > > > this must be a difficult thing to do since I've asked on the forum and > > > the IRC channels and no one knows? > > > can someone at least direct me to where I might find my answer? > > > > On Oct 9, 2:42 pm, jasonb <[EMAIL PROTECTED]> wrote: > > > > > Im trying to use session variables in my /lib/mylogger.php class > > > > > everytime i reference > > > > $username = sfContext::getInstance()->getUser()- > > > > > >getAttribute('Username'); > > > > > the code says > > > > Fatal error: Call to a member function getAttribute() on a non-object > > > > > but I've been struggling and I even tried doing a > > > > print_r(sfContext::getInstance()) and i see the attribute in the page > > > > but it wont allow me to access it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: using Session variables in my class
When, and in which context is this class called? It seems, that whenever your class is called, the "User" object is not created yet. So when do you call it in your request? Michael On 9 Okt., 20:55, jasonb <[EMAIL PROTECTED]> wrote: > this must be a difficult thing to do since I've asked on the forum and > the IRC channels and no one knows? > can someone at least direct me to where I might find my answer? > > On Oct 9, 2:42 pm, jasonb <[EMAIL PROTECTED]> wrote: > > > Im trying to use session variables in my /lib/mylogger.php class > > > everytime i reference > > $username = sfContext::getInstance()->getUser()- > > > >getAttribute('Username'); > > > the code says > > Fatal error: Call to a member function getAttribute() on a non-object > > > but I've been struggling and I even tried doing a > > print_r(sfContext::getInstance()) and i see the attribute in the page > > but it wont allow me to access it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Propel Exception: Unable to convert value to timestamp
Make sure that your CREATE TABLE on production has the exact same column order as your dev if you are hydrating objects. Jamie On 7 Ott, 17:39, royallthefourth <[EMAIL PROTECTED]> wrote: > I get an error converting a database field into an object for reasons > that I do not understand. The application runs well on two other > development machines and a server, but not when I try to install it. > I've jumped many hurdles setting this up, but I find one last problem > that absolutely baffles me. I'm getting an error page that shows this > error: > > Unable to convert value at column 3 to timestamp: Feb 19 2008 > 09:55:32:373AM > > If it's any help, I'm running Symfony 1.0.18 and PHP 5.2.4 and MS SQL > Server 2005. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to install the Form Framework (plugin?) for symfony 1.0.x
As no-one answered, i think i found somethings, now the symforc website is not down anymore, one can check http://symforc.com/post/2008/01/07/sfForms11Plugin:-use-symfony-11-form/validation-framework-in-symfony-10-or-non-symfony-project out for more informations. One other tool that one can check out is the sfFormBuilderPlugin, which seems to be interesting but was obviously developped before the form framework. ++ On 2 oct, 22:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everyone, > I read for a few days that hartym developped a backport for symfony > 1.0 of the form framework used in symfony 1.1 and 1.2. Unfortunately i > can only get more information on symforc.org which is down for a few > days now. > Therefore i'm asking for information, because i can't find it on the > plugin list of the symfony-project website. > Thanks everyone for helping me out, > > Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Create an url ton the symfony project in a task
Hi Nicolas, Yes that it , or a parameter in the command or in app.yml . Maybe a solution with apache in command line.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Create an url ton the symfony project in a task
Hi, I have a task to send email. This email must contain an URL to a module of my symfony project. The genUrl method does not works because I got not host when I run a task. genURl generate : http://./symfony/my-route-to-module/ What did you think ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: real autocomplete
On 14 sep, 13:56, "Bernhard Schussek" <[EMAIL PROTECTED]> wrote: > Apart from configuring the symfony lib dir as include path, I can also > recommend setting the symfony lib dir up as a custom project and > including it in your project (right click -> configure include path -> > projects tab -> add project). To be able to include it, you have to > build the project though using Ctrl+B (this generates all the > information about classes and methods in the Eclipse cache). This way let you have recursive autocomplete? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: real autocomplete
On 14 sep, 12:20, Hugo HAMON <[EMAIL PROTECTED]> wrote: > Hello, > > Do you want a real autocomplete of the global core classes of the > symfony framework (ie sfWebRequest, sfWebResponse... ?) or only for > classes generated by the ORM ? For all > * Propel generates all accessors (getters and setters), so Eclipse PDT > gives you the autocomplete for your model. Yes, but only for a first level of dependency > > * Doctrine, by default, doesn't generate accessors so PDT doesn't > propose an autocomplete for model classes. But you can say to Doctrine > to generate accessors for your model objects. To do it, you've to add > "generate_accessors" in your schema.yml. Look at the Doctrine > documentation for more information. I don't use Doctrine yeat > * If you want to have the autocomplete for the whole symfony core > classes in PDT, you have to solutions. The first one is too freeze > your project to have all the core classes in your project folder. So, > PDT will check recursivelly in the lib/symfony to generate the > autocomplete. The second solution and maybe the best one is to add to > your project (in PDT) a new library folder to its include path. Just > right click on your symfony project -> configure include path -> > libraries tab -> add external folder -> your common symfony lib > folder. Then refresh and let's go. Yes i did it. But it's not recursive --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Tutorial: How migrate/change a website in producction
On 24 sep, 04:59, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > I used the sfPropelMigrationLight plugin for a while, it works nicely. > But as far as when you alter your schema, you have also to migrate > data, and sometimes this implies some processing and transformation, > I've now ended up with doing migration tasks by hand. But I'd love > having a "standard" way for doing this. Well, i lookinf for a solution, that no have do some dump of data or DDBB. When you have several MB in your table, can't dump to YML --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfSimpleBlog in 1.1
Francois, Carl Plugins page is reporting that sfSimpleBlog is supported by 1.1, but it's not. There are calls to quite a few depracated methods. Carl, I understand you have a patch[1] but this was never submitted. Any chance of sharing as would like to use this on a new project. Thanks Jamie [1] http://trac.symfony-project.org/ticket/3369 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] enable show sql queries in web debug toolbar with propel plugin 1.3 ??
is it possible to enable show sql queries in web debug toolbar with propel plugin 1.3 ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Criteria Object
Can somebody tell me if it is possible to translate a SQL UNION with Criteria. This is my sql request: SELECT place_city.id, place_city.city_long_name_FR AS name, place_country.country_short_name_FR, place_city.code FROM place_city LEFT JOIN place_country ON place_city.country_id = place_country.id WHERE place_city.city_long_name_FR like 'parai%' UNION select place_town.id, place_town.town_long_name_FR AS name, place_country.country_short_name_FR, place_town.town_code from place_town LEFT JOIN place_country ON place_town.country_id = place_country.id WHERE place_town.town_long_name_FR like 'para%' ORDER BY name ASC thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: OR statements in Creole
That's a great link Francois, thanks for the help. I tried Ant's solution before posting and it wasn't working. Thanks again guys, Brendan On Sep 16, 3:46 am, "Francois Zaninotto" <[EMAIL PROTECTED] project.com> wrote: > addOr() only works for columns on which you already have a criteria > condition... I think ant's solution may not work in all cases. > > To be sure, you should use a Criterion condition > (seehttp://propel.phpdb.org/docs/user_guide/chapters/FindingObjects.html). > > If you find this a bit too complicated, consider using DbFinderPlugin > (http://www.symfony-project.org/plugins/DbFinderPlugin/0_9_0?tab=plugi...) > for your Propel queries ;) > > François > > 2008/9/16 Ant Cunningham <[EMAIL PROTECTED]>: > > > > > $c = new Criteria(); > > $c->add(FriendPeer::SENDER_ID, $id); > > $c->addOr(FriendPeer::TARGET_ID, $id); > > > [EMAIL PROTECTED] wrote: > >> I feel like I'm missing something, but how do you execute OR > >> conditions with criteria? > > >> I'm populating a friends list and I'm wondering how to write an SQL > >> statement like: > > >> SELECT * FROM friend WHERE senderId = '$id' OR targetId = '$id' > > >> I feel like this is really simple and I should have figured it out, > >> but so far I haven't been able to. I'm using sfPropelPager, otherwise > >> I would just use criteria. > > >> Thanks for the help, > > >> Brendan > > > -- > > Ant Cunningham > > Graphic Designer | Web Developer > > Vector Based Design --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Propel Post Validator
Nevermind I fixed this. On Sep 15, 10:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, I'm new to symfony and I'm developing a site where users can > either be automatically generated or register, and I'm trying to > figure out the best way to implement a Propel Post validator. > > There's a column in the User table: Temporary: boolean, and the Email > column is unique. > > If a user tries to register, the script should first check if his or > her email already exists in the table, and if Temporary is true. If > Temporary is true and user exists, the script will validate true, but > if Temporary is false and user exists the script should validate > false. > > I tried using the Post Validators generated in my base class in > UserForm.class.php: > > $this->validatorSchema->setPostValidator(new sfValidatorAnd( > new sfValidatorSchemaCompare('password', > sfValidatorSchemaCompare::EQUAL, 'confirm')), > new sfValidatorAnd(array( > new sfValidatorPropelUnique(array('model' => 'SmsUser', > 'column' => array('phone'))), > new sfValidatorPropelUnique(array('model' => 'SmsUser', > 'column' => array('email'))), > )) > ); > > Should I add a criteria: > > $c = new Criteria(); > $c->add(UserPeer::TEMPORARY, false); > > and then add it as a second argument on sfValidatorPropelUnique()? > > Any help for a symfony beginner would be appreciated. > > Thanks, > > Brendan --~--~-----~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfPropelPager and Table Id's
So I'm trying to use sfPropelPager to navigate through a list of a user's friends, and I'm having some difficulty. The schema is (simplified): friend: id: ~ senderId: ~ userId: ~ confirmed: boolean user: id: ~ name: varchar(255) and I've set up a propel pager like this: $c = new Criteria(); $cton1 = $c->getNewCriterion(FriendPeer::SENDERID, $id); $cton2 = $c->getNewCriterion(FriendPeer::TARGETID, $id); $cton1->addOr($cton2); $c->add($cton1); $c->addDescendingOrderByColumn(FriendPeer::CREATED_AT); $c->addJoin(UserPeer::ID,FriendPeer::TARGETID); $c->add(FriendPeer::CONFIRMED, '1'); $pager = new sfPropelPager('User', 10); $pager->setCriteria($c); $pager->setPage($request->getParameter('page', 1)); $pager->init(); $this->pager = $pager; Everything is obviously separated into different layers. Here's the template: getNbResults() ?> results found. Displaying results getFirstIndice() ?> to getLastIndice() ?>. getResults() as $user): ?> getName() ?> haveToPaginate()): ?> getFirstPage()) ?> getPreviousPage()) ?> getLinks(); foreach ($links as $page): ?> getPage()) ? $page : link_to($page, 'article/list?page='.$page) ?> getCurrentMaxLink()): ?> - getNextPage()) ?> getLastPage()) ?> After trying to get this to work for 3 hours, my brain is numb, and if any of you could help out a symfony newbie, I'd appreciate it. I just want to display the names of a user's friends, but the script displays both names in the set. I'm not sure how to use Propel and the Pager to only return the other name. Is there another pager object that will just take an array? Finishing it fast is my first priority, so if there's a simpler way to do it, that would be preferred. Thanks, Brendan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Which IDE do you use?
PDT + APTANA of course But now zend studio can work with xdebug http://www.maxhorvath.com/2008/08/how-to-enable-the-xdebug-debugger-in-zend-studio-for-eclipse.html then ZendStudio is a great alternative --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Forms1.1 I18N and URLs Routing
Hi to all. I started play with symfony 1.2 and I just read the new chapter of book symfony forms : http://www.symfony-project.org/book/forms/1_2/en/08-Internationalisation-and-Localisation Very easy realy. But always i have questions respect to URLs if field title is in article_i18n: When i want use these titles in my URLs... is it work? how? example of URL/titleI18N by culture EN ES FR: web.com/ads/mycountry web.com/anuncio/mipais web.com/annonces/monpays obviuly this tree urls response a one rule, and if a user type or clic (usin google e.g.) once of these urls , the framework should be detedt and setting the right culture right Rober --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] real autocomplete
I use PDT I think that is very necesary have a good support when i have: $father = $obj1->(Crtl+Space).getFatherObject() also i realy want can do $fathername = $obj1->(Crtl+Space).getFatherObject()->(Crtl +Space).getName() And if it's possible have these last feature join to panel inspector of Xdebug better!! (i hope that understand what i wnat say!) :) Rober --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.2 web debug toolbar not valid for xhtml
What on earth is handler? Not even in the xhtml DTD. Jamie On 11 Set, 19:31, Sifix <[EMAIL PROTECTED]> wrote: > Hello! > I tried to use xhtml appling $this->context->getResponse()- > > >setContentType( 'application/xhtml+xml' ); > > However in dev enviroment the javascript for the web debug toolbar is > not valid. > > in sfWebDebugClass.class.php > > line 152: $content = str_ireplace('', ''.$this->getJavascript().''.$debug.'', > $content, $count); > > should change to the following: > > $content = str_ireplace('', ''. > $this->getJavascript().''.$debug.'', $content, > $count); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfView::renderPartial breaks layout.php
That is by design, not a bug. If you want your layout included, make the actionSuccess.php and include it as you have pointed out works fine. Jamie On 12 Set, 10:46, "Gareth McCumskey" <[EMAIL PROTECTED]> wrote: > Hi all, > > When attempting to use the renderPartial method from within a modules action > to call a global partial from app/frontend/templates and not within the > modules templates directory, the render partial seems to force the app to > break out of the layout.php container template: > > return $this->renderPartial('global/partialName'); > > However, when running the partial through the old fashioned way via the > indexSuccess.php view there are no problems: > > In Action: $this->setTemplate('index'); > > In indexSuccess.php: array("variable"=>$varaible)); ?> > > I was forced to use the global word since without it the partial cannot be > found. Is there any word on why this breaks out of the layout and perhaps > any fix available for it? > > Regards > > Gareth McCumskey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: A very basic doubt...
When you execute a forward(), your action class is re-instatiated therefore all the variables you set before the forward are lost. To get around this you should look at using a flash. http://www.symfony-project.org/book/1_1/06-Inside-the-Controller-Layer#Flash%20Attributes Regards, Jamie Learmonth http://www.boxlightmedia.com On 8 Set, 09:17, Sumedh <[EMAIL PROTECTED]> wrote: > Yeah, but this doesn't work if there another action getting executed > as I said above... > > On Sep 8, 1:05 pm, "Gareth McCumskey" <[EMAIL PROTECTED]> wrote: > > > > > $this->variable = "value"; > > > Then on template you can just access $variable > > > On Mon, Sep 8, 2008 at 9:22 AM, Sumedh <[EMAIL PROTECTED]> wrote: > > > > Okk...thanks for the info... > > > > Now if I have a situation like this - > > > > 1. Action A sets a few variables. > > > > 2. Action A, on some condition, forwards to Action B > > > > 3. Action B sets a few more variables. > > > > 4. A template gets executed from Action A, in case when Action B is > > > not executed. > > > > 5. A template gets executed from Action B. > > > > Both these templates should have access to variable that were set by > > > Action A. > > > > How do I set variables in Action A, so that they are accessible to the > > > template even when there is another Action getting executed in > > > between? > > > > On Sep 6, 4:39 pm, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > > This is because the template variables get added as template variables > > > > in the __set() magic method of sfComponent which only gets called when > > > > you set variables within the class and not on initialization. > > > > > Add $this->map_latitude = 12.45 in your preExecute() method of your > > > > action. > > > > > Jamie Learmonthhttp://www.boxlightmedia.com > > > > > On 6 Set, 12:26, Sumedh <[EMAIL PROTECTED]> wrote: > > > > > > When I put a member variable in a class above the methods, > > > > > > class listingActions extends sfActions > > > > > { > > > > > public $map_latitude = 12.45; > > > > > > ... > > > > > > } > > > > > > I can't access it in the template...(I get "undefined variable" error) > > > > > > But if I just put some value in the execute method, without > > > > > initializing the variable as done above, I can access it in the > > > > > template... > > > > > > Why? > > > > > > I suppose this is something very basic in PHP5 that I don't know... :| --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autoloading problem with Propel 1.3
W odpowiedzi na e-mail od: ruFog otrzymany dnia 2008-09-06 01:07 : > It`s simple to comment require line in Your Base*NestedSet*.php > files ;) > > hmm but you must do it every model rebuild really annoying --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: A very basic doubt...
This is because the template variables get added as template variables in the __set() magic method of sfComponent which only gets called when you set variables within the class and not on initialization. Add $this->map_latitude = 12.45 in your preExecute() method of your action. Jamie Learmonth http://www.boxlightmedia.com On 6 Set, 12:26, Sumedh <[EMAIL PROTECTED]> wrote: > When I put a member variable in a class above the methods, > > class listingActions extends sfActions > { > public $map_latitude = 12.45; > > ... > > } > > I can't access it in the template...(I get "undefined variable" error) > > But if I just put some value in the execute method, without > initializing the variable as done above, I can access it in the > template... > > Why? > > I suppose this is something very basic in PHP5 that I don't know... :| --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Making project creation easier
Your shell script should either checkout the latest version from the branch, or you can svn:external [1] the branch, or preferably you should scan the tags directory and checkout the latest stable version. Jamie Learmonth http://www.boxlightmedia.com [1] http://svnbook.red-bean.com/en/1.0/ch07s03.html On 5 Set, 15:41, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > Hi all, > > I have, as I suppose have many of you, come across the issue of reducing > the time it takes to get a new symfony project up and running. I spend > most of my time doing small to medium-sized projects and so cutting down > on this time is vital. > > I started off by using a shell script to create the project, copy some > common files and add it to an svn repository. But now, as I have got > more comfortable with subversion, I am thinking about creating a > templste project in a subversion repository that i just ``svn copy`` to > each new project I need. I obviously don;t intend to store any > symfony-generate model/form files in the repo. > > I guess my first question is: will this method take into account any > changes that are made to the symfony library (I'm using the 1.1 branch)? > > Secondly: how do other people do this? I tried Google but all I came up > with nothing. > > TIA > > Tom > -- > Tom Haskins-Vaughan > Temple Street Media: Design and Development for the Web > [EMAIL PROTECTED] |www.templestreetmedia.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autoloading problem with Propel 1.3
W odpowiedzi na e-mail od: notjosh otrzymany dnia 2008-09-05 12:01 : > Hm, I recall having an issue similar to this when I used nested sets > in symfony 1.1 with Propel 1.3. But, uh, I thought that was fixed. > > I had to hack together a patch for it, though, but it was ugly as > hell. If you want, I can try to dig it up. > > I'm sure it's fixed now though. Hr..! > > hmm it is not fixed in last sfPropelPlugin - 1.3.0 i have the same issue when using nested set could you send patch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Can I do this with Doctrine ?
I have a scheme like this Address: tableName: address columns: id: type: integer(4) primary: true autoincrement: true address: string(45) zip: string(45) city: string(45) relations: Companies: class: Company refClass: CompanyAddress foreignAlias: Addresses Company: tableName: company columns: id: type: integer(4) primary: true autoincrement: true name: string(254) reg_number: string(11) relations: Addresses: class: Address refClass: CompanyAddress foreignAlias: Companies CompanyAddress: tableName: company_address columns: company_id: type: integer(4) primary: true address_id: type: integer(4) primary: true apartment_number: string(45) How can I set and retrieve apartment_number field form association table CompanyAddress ? Is this posible with Doctrine. Thank you in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Form optional upload (1.1)
You can override your setAvatar() method in your model, to not allow empty or null values if one is set. Regards, Jamie Learmonth http://www.boxlightmedia.com On 31 Ago, 12:02, Yuretsz <[EMAIL PROTECTED]> wrote: > I have a form for propel object. > > It has an avatar field, which is a path to its file. It works great, but I > dont want this field to be updated, when I'm not upload file. > Currently it overwrites old value with an empy record. > > Can anybody tell me what can I do about this? > > P.S. > Im handling file upload in actions.php according to the manual > > $this->form->bind($requestFormData, $request->getFiles('profile')); > if ($this->form->isValid()) > { > $file = $this->form->getValue('avatar'); > if (!is_null($file)){ > $filename = 'uploaded_'.sha1($file->getOriginalName()); > $extension = > $file->getExtension($file->getOriginalExtension()); > > $file->save(sfConfig::get('sf_upload_dir').'/'.$filename.$extension); > }else{ > > } > $profile = $this->form->save(); > } > > -- > > Regards... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: YAML in eclipse
Here too ! :) On 27 août, 11:02, "Hasse R. Hansen" <[EMAIL PROTECTED]> wrote: > I use symfoclipse also for editing yaml files, and it's correct that > it mark the tabs by a red background, but when i save the yaml file, > it disappears and it's spaces. > > is it just me ?? > > /Hasse > > On Aug 27, 10:46 am, Alex Filatov <[EMAIL PROTECTED]> wrote: > > > > > On Aug 27, 9:50 am, Jonathan Franks <[EMAIL PROTECTED]> wrote:> symfoclipse > > is nice because it is very easy to read but it doesn't > > > convert tabs to double spaces. > > > This is good because it will help you to code by YAML rules only > > (let's imagine that you need to change YAML config by other editor and > > you used to press tabs) > > So if you press tab in Symfoclipse it will be marked with red color > > and your can notice that for sure! :) > > > > However, I've just noticed that its possible to configure eclipse to > > > always convert tabs to a double space (for all file formats) and i'm > > > thinking that perhaps this is the best solution as it's inline with > > > the symfony coding standards. > > > > regards, jonathan > > > > On 27 Aug 2008, at 07:38, Yanko Simeonoff wrote: > > > > > Jonathan Franks wrote: > > > >> Hi guys, > > > > >> Just wondering whether anybody is using a good yaml plugin for > > > >> eclipse. I've tried a few but I haven't found one I like. I'm looking > > > >> for one which automagically changes the tab key output to a double > > > >> space as well as adding some basic syntax highlighting. Anything > > > >> extra > > > >> is a bonus but those are top on my wish list! > > > > >> Thanks, Jonathan > > > > > I'm using Symfoclypse + its yaml editor > > > >http://noy.cc/symfoclipse/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] is it possible to use actions,components or partials in Tasks?
is it possible to use results of actions, components or partials in symfony Tasks? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: is nestedset from propel plugin 1.3 working correctly??
W odpowiedzi na e-mail od: Dustin Whittle otrzymany dnia 2008-08-26 18:52 : > Hi, > > What versions are you using, symfony 1.1 + sfPropelPlugin 1.3? > > - Dustin > > yes symfony from pear plugin installed from command symfony plugin:install sfPropelPlugin --release=1.3.0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: is nestedset from propel plugin 1.3 working correctly??
W odpowiedzi na e-mail od: Ant Cunningham otrzymany dnia 2008-08-26 03:24 : > turn off propel.builder.addIncludes in your propel.ini. The symfony autoload > should take care of it for you because everything in lib.model should get > loaded as needed... > i set propel.builder.addIncludes = false clear symfony cache and rebuild model but still got in top of autogenerated classes BaseUsersNestedSet.php -> require 'lib/model/om/BaseUsers.php'; instead of BaseUsersNestedSet.php -> require 'BaseUsers.php'; and must manually edit those files what am i doing wrong??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfApprovablePlugin issues
Im accesing my objects via sfPropelPager, and I get all objects, eve those unaproved. Does anyone nows how to fix that? I didnt see any code inside the sfApprovable plugin that hooks on the retrievebypk methods... Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] plugin page feature request
Hello there, It will be nice if we had a comments section per plugin, like the php manual. Is something like this already been done? Also, I keep seeing an hex numer in some plugins page, and firefox refuses to load those. Content encoding error. Best. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: is nestedset from propel plugin 1.3 working correctly??
W odpowiedzi na e-mail od: Ant Cunningham otrzymany dnia 2008-08-26 00:34 : > It shouldnt be calling BaseUsers... it should be calling UsersNestedSet. > When you apply a nested set to a column the class hierarchy looks like this: > > BaseModelClass > NestedSetModelClass > ModelClass > > BaseModelClassPeer > ModelClassNestedSetPeer > ModelClassPeer > > Beyond that i dont know. > > thx!! i found out that i must remove my model class and regenerate by propel 1.3 now another problem arise because generated NestedSetPeer classes generate - i think - wrong require statement for Base Classes instead of simply require 'BaseUsersPeer.php'; they do require 'lib/model/om/BaseUsersPeer.php'; so i must manually edit and change require lines or change/add path? to lib model generated files? or i am doing something wrong - possibly with configuration of sfpropelplugin ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] is nestedset from propel plugin 1.3 working correctly??
can anybody confirm that nestedset from propel plugin 1.3 is working correctly?? I am getting exceptions Call to undefined method BaseUsers::makeRoot when trying to make root for model Users for example $root = new Users(); $root->setUsername('test'); $root->setPassword('test'); $root->makeRoot(); $root->setScopeIdValue(1); // Tree 1 $root->save(); where Users defined in schema.yml users: _attributes: { idMethod: native, treeMode: NestedSet} id: { type: INTEGER, required: true, autoIncrement: true, primaryKey: true } username: { type: VARCHAR, size: '16', required: true, default: '' } password: { type: VARCHAR, size: '34', required: true, default: '' } fullname: { type: VARCHAR, size: '255', required: true, default: '' } email: { type: VARCHAR, size: '255', required: true, default: '' } description: { type: LONGVARCHAR, required: true } level: { type: TINYINT, required: true, default: '0' } active: { type: TINYINT, required: true, default: '0' } lft: { type: INTEGER, required: true, default: '0', nestedSetLeftKey: true } rgt: { type: INTEGER, required: true, default: '0', nestedSetRightKey: true } scope: { type: INTEGER, required: true, default: '0', treeScopeKey: true } _indexes: { lft: [lft], rgt: [rgt], scope: [scope] } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] retrieve slot name in component when called from include_component_slot
Hello, I am developing a component which could be reused several times on my layout. The content to display depend on the slot where it is put. So, when I call it using include_component_slot, I need to know which slot is the caller, in order to render the right content. The only solution I found is to pass the name of the slot in a variable as third argument of the include_component_slot function. I am wondering if it is possible to do that in a cleaner way, in order to keep the layout.php as much generic as possible. Did someone found solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] output escaping, guidelines?
Hello, I have set output scaping to on in my app, the templates from some of the best plugins I use din't use $sf_data at all. I have "fixed" those templates, is it worth uploading? Whats the convention for output scaping in the templates? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sf1.1: how to set sf_symfony_data_dir?
Klemens, The sfDoctrine plugin is not actually compatible with symfony 1.1 at the moment so those tasks won't work. It needs to be looking for sfConfig::get('sf_data_dir'); Jamie On 20 Ago, 16:07, klemens_u <[EMAIL PROTECTED]> wrote: > How to set 'sf_symfony_data_dir' path in symfony 1.1? > I'm using a symfony installation via svn in /usr/share/php/ > symfony1.1. > The task 'doctrine:generate-crud' fails because > sfConfig::get('sf_symfony_data_dir') is null. > > Thanks, Klemens :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Simple way to put different titles on each page
Slots solve this problem: http://www.symfony-project.org/book/1_1/07-Inside-the-View-Layer#Slots Regards, Jamie On 20 Ago, 11:05, Vinch <[EMAIL PROTECTED]> wrote: > Hi, > > To improve SEO, I want to put different titles on each page of my > website. At the moment, it's the same title everywhere and that's not > good for the indexation in Google (and other search engines). > > Is there a simple and centralize way to do that? > > Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony propel-build-model
NOW() is not a valid default in most RDBM's therefore Propel will not accept it. You need to add that functionality in your model classes. Override save like so: public function save($con = null) { if (!$this->getDate()) { $this->setDate(date('Y-m-d H:i:s')); } return parent::save($con); } Regards, Jamie Learmonth Boxlight Media Ltd. On 20 Ago, 06:49, "Ridvan Lakas ng Bayan S. Baluyos" <[EMAIL PROTECTED]> wrote: > Hi list, > > Whenever I run the ./symfony prople-build-model, I am encountering a problem > that states it cannot parse the date/time value. I have a column date, which > uses a default value `now()` whenever there is no value specified. The > problem here is that the propel-build-model cannot recognize the function > now() as a default value for the column. > > Is there any workaround for this? > > Thanks, > > Ridvan > > -- > リヅバン バルヨス > [EMAIL PROTECTED]://ridvan.baluyos.nethttp://www.onxiam.com/people/rbaluyos > > Registered Linux User #439466 > Registered Ubuntu User #16034 > Q: Have you heard of the Object-Oriented way to get wealthy? > A: Inheritance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Problem Filtering by Date
You can use Criteria's custom parameter like so: $c = new Criteria(); $c->add(RecordPeer::DATE, "MONTH(" . RecoredPeer::DATE .") = '". $month ."'", Criteria::CUSTOM); Regards, Jamie Learmonth Boxlight Media Ltd. On 20 Ago, 00:47, Hoaxz <[EMAIL PROTECTED]> wrote: > BTW I;ll like to get a Propel wise solution... > > On Aug 19, 3:45 pm, Hoaxz <[EMAIL PROTECTED]> wrote: > > > > > Hey every one. > > > My problem is simple to understand but I can't find an answerd. I want > > to filter records by month, meaning that if in my APP the user ask for > > record with Month 01 (January), the search will return exaclty those > > records, but I can't find a way to compare the month on a DATE field > > with the month given. > > > PseudoCode would be something like > > > SELECT * FROM record WHERE MONTH(record.date) = $month > > > Any help or orientation may help. > > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: 1.1: Automatically denote required fields in form
I would be interested too.. On Aug 20, 9:15 am, notjosh <[EMAIL PROTECTED]> wrote: > Hm, I managed a solution. Not very elegant, but not *too* bad either. > > I'll show you if you're still in need..? > > Josh > > On Aug 20, 1:02 pm, notjosh <[EMAIL PROTECTED]> wrote: > > > Did you figure it out? > > > I'm looking at it now, and it looks way harder than I'd have hoped.. > > The form schema is (intentionally) separate from the validator, and > > it's the validator that defines what's required or not. The form > > schema only (sometimes) gets the error schema that the validator > > schema spits out on error. Hrm. Wonder how we can inject requireds > > from the validator schema. > > > On Aug 6, 4:08 am, "shannon.patterson" <[EMAIL PROTECTED]> > > wrote: > > > > Hi everyone, > > > > Is there a way in the new form framework to tell the template if a > > > field is required or not? > > > > I've poured over the documentation available for sfForm and have yet > > > to find something and want to make sure I haven't missed it. > > > > I have created a custom formatter and want that to be included in part > > > of the rowFormat automatically. (protected $rowFormat = "\n%error% > > > \n %required% %label%\n %field% %help% > > > %hidden_fields%\n \n";) > > > > Thanks, > > > Shannon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] bug?
Hi! I'm sorry for my English here fragment code (it's a component): public function executeViewMailbox() { $mailbox=$this-> getRequestParameter('mailbox'); var_dump($mailbox . ''); var_dump($this->getUser()->getAttribute('curPosition') . ''); $this->getUser()->setAttribute('curPosition',$mailbox); var_dump($this->getUser()->getAttribute('curPosition')); } request - http://wosir/mail_dev.php/index/index/mailbox/INBOX.BBwEPgQ1BDUENQQ1BDUENQQ1BDU- double reload page - result - string(38) "INBOX.BBwEPgQ1BDUENQQ1BDUENQQ1BDU-" string(10) "images" string(38) "INBOX.BBwEPgQ1BDUENQQ1BDUENQQ1BDU-" question - as a line of "images" appeared in a session ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: META name=title tag
It could be a space before "" in your myWebResponse class. Make sure, that nothing is echoed there. Michael On Jul 18, 9:00 am, Sumedh <[EMAIL PROTECTED]> wrote: > Thanks Honey & Nicolas... > > I tried the approach you told...created myWebResponse class and unset > the title part of the $meta_tags array... > > But there some other problem… > > I get following errors on every page… > > Warning: session_start() [function.session-start]: Cannot send session > cookie - headers already sent by (output started at /home/brajesh/ > workspace/zam_fe/apps/frontend/lib/myWebResponse.class.php:2) in /usr/ > share/php/symfony/storage/sfSessionStorage.class.php on line 77 > > Warning: session_start() [function.session-start]: Cannot send session > cache limiter - headers already sent (output started at /home/brajesh/ > workspace/zam_fe/apps/frontend/lib/myWebResponse.class.php:2) in /usr/ > share/php/symfony/storage/sfSessionStorage.class.php on line 77 > > Warning: Cannot modify header information - headers already sent by > (output started at /home/brajesh/workspace/zam_fe/apps/frontend/lib/ > myWebResponse.class.php:2) in /usr/share/php/symfony/response/ > sfWebResponse.class.php on line 264 > > Warning: Cannot modify header information - headers already sent by > (output started at /home/brajesh/workspace/zam_fe/apps/frontend/lib/ > myWebResponse.class.php:2) in /usr/share/php/symfony/response/ > sfWebResponse.class.php on line 274 > > So, it seems that headers are getting modified while they’ve been > already sent… :| > > But we aren’t sending the META tags in myWebResponse…we are just > modifying its contents… > > Nothing seems wrong in factories.yml as well… > > cli: > controller: > class: sfConsoleController > request: > class: sfConsoleRequest > response: > class: sfConsoleResponse > > test: > storage: > class: sfSessionTestStorage > > all: > storage: > class: sfSessionStorage > param: > session_name: Zamanzar > > response: > class: myWebResponse (this is what I have added) > > Any clues why this could be happening…? :| > > On Jul 16, 10:18 am, honey <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Yes me too was facing this problem. What i did was i created a custom > > function myWebResponse.class.php in frontend\lib folder. In that > > custom function i unset the meta title. > > > This is how you can get ride of meta title and can have only > > on a page. > > > Thanks, > > honey > > > On Jul 15, 2:51 pm, Sumedh <[EMAIL PROTECTED]> wrote: > > > > Hi guys... > > > > The call in Symfony includes META tags... > > > > I want the META description and META keywords tag included... > > > > But I don't want to the META title tag to be included... > > > > The reason being the title should be included only in > > > tag...and I am afraid having it in two places...( tag as well > > > as META title tag) will affect my rankings negatively (too much > > > repetition of keywords)... > > > > It might be harmless...but it is certainly useless...why have it > > > then? :) > > > > Is there some easy way to do this? > > > > Thanks in advance... :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How do I put an "AND" clause in the LEFT JOIN statement?
My post some time ago: http://www.symfony-project.org/forum/index.php/m/43496/#msg_43446 Michael On 18 Jul., 23:53, "Daevid Vincent" <[EMAIL PROTECTED]> wrote: > How do I put an "AND" clause in the LEFT JOIN statement part? > Symfony/Propel/Whatever wants to put it in the WHERE clause... > > This is the SQL I'm trying to re-create: > > select * > from team_schedule > left join team_member_schedule > on team_schedule_id = team_schedule.id > and team_member_id = 10 and team_id = 1; > > this is in our action.class.php > > public static function getTeamSchedulesFromTeamMember($team_member) > { > $c = new Criteria(); > > // must be a valid team > $c->add(TeamSchedulePeer::TEAM_ID, $team_member->getTeamId()); > > $c->addJoin(TeamMemberSchedulePeer::TEAM_SCHEDULE_ID, > TeamSchedulePeer::ID, Criteria::LEFT_JOIN); > $c->addAnd(TeamMemberSchedulePeer::TEAM_MEMBER_ID, > $team_member->getId()); > > return self::doSelect($c); > } > > And this is the WRONG SQL query it generated... > > SELECT team_schedule.ID, team_schedule.TEAM_ID, team_schedule.PLAYS_AT, ... > FROM team_member_schedule > LEFT JOIN team_schedule ON > (team_member_schedule.TEAM_SCHEDULE_ID=team_schedule.ID) > WHERE team_schedule.TEAM_ID=1 AND team_member_schedule.TEAM_MEMBER_ID=37; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony 1,0 output scaping sf_request....
his->index]->execute($this); } } at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\controller \sfController.class.php line 276 ...} // process the filter chain $filterChain->execute(); } else {at sfController->forward('public_user', 'register')in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line 48 ... $actionName = $request->getParameter('action'); // make the first request $this->forward($moduleName, $actionName); } catch (sfException $e) {at sfFrontWebController->dispatch()in SF_ROOT_DIR\web \frontend_dev.php line 10 ... require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); sfContext::getInstance()->getController()->dispatch(); symfony settings ... --- app_recaptcha_privatekey: 6LfmVQIAAJAIvQBF-ucJd2D-QJ180eTKAowz app_recaptcha_publickey: 6LfmVQIAAL-4C9MSTpU8M59c9v_bWJKL8Ek0 app_sfContactForm_contact_action: contact app_sfContactForm_contact_module: content app_sfContactForm_mail_html_footer: Kind regards, your favorite website. app_sfContactForm_mail_html_header: Dear webmaster, there is a new contact message from your website.Here is the content: app_sfContactForm_mail_recipient: [EMAIL PROTECTED] app_sfContactForm_mail_sent_msg: Thank you for contacting us! app_sfContactForm_mail_subject: New contact message app_sfContactForm_mail_txt_footer: Kind regards, your favorite website. app_sfContactForm_mail_txt_header: | Dear webmaster, there is a new contact message from your website. Here is the content: app_sfContactForm_use_cryptographp: app_sf_guard_plugin_algorithm_callable: - GPassword - plain mod_public_user_enabled: 1 mod_public_user_is_internal: mod_public_user_view_class: sfPHP sf_admin_web_dir: /sf/sf_admin sf_app: frontend sf_app_config_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend\config sf_app_config_dir_name: config sf_app_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend sf_app_i18n_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend\i18n sf_app_i18n_dir_name: i18n sf_app_lib_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend\lib sf_app_lib_dir_name: lib sf_app_module_action_dir_name: actions sf_app_module_config_dir_name: config sf_app_module_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend\modules sf_app_module_dir_name: modules sf_app_module_i18n_dir_name: i18n sf_app_module_lib_dir_name: lib sf_app_module_template_dir_name: templates sf_app_module_validate_dir_name: validate sf_app_module_view_dir_name: views sf_app_template_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\apps\frontend\templates sf_app_template_dir_name: templates sf_apps_dir_name: apps sf_autoloading_functions: sf_available: 1 sf_base_cache_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\cache\frontend sf_bin_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\batch sf_bin_dir_name: batch sf_cache: sf_cache_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\cache\frontend\dev sf_cache_dir_name: cache sf_calendar_web_dir: /sf/calendar sf_charset: utf-8 sf_check_lock: sf_check_symfony_version: sf_compressed: sf_config_cache_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\cache\frontend\dev\config sf_config_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\config sf_config_dir_name: config sf_data_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\data sf_data_dir_name: data sf_debug: 1 sf_default_action: index sf_default_module: content sf_doc_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\data\doc sf_doc_dir_name: doc sf_enabled_modules: - default - sfGuardAuth - recaptcha - sfPagerNavigation - sfContactForm - sfInstantCMS sf_environment: dev sf_error_404_action: error404 sf_error_404_module: default sf_error_reporting: 8191 sf_escaping_method: ESC_ENTITIES sf_escaping_strategy: 1 sf_etag: sf_i18n: sf_i18n_cache_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\cache\frontend\dev\i18n sf_lib_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\lib sf_lib_dir_name: lib sf_log_dir: E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\sharetheride\log sf_log_dir_name: log sf_logging_enabled: 1 sf_logging_history: 10 sf_logging_level: debug sf_logging_period: 7 sf_logging_purge: 1 sf_logging_rotate: sf_login_action: signin sf_login_module: sfGuardAuth sf_max_forwards: 5 sf_model_dir_name: model sf_model_
[symfony-users] symfony 1,0 output scaping sf_request....
Hello, I put this in my settings.yml escaping_strategy: on escaping_method:ESC_ENTITIES The manual says: >**CAUTION** >The usual symfony variables are also escaped when you turn on output escaping. >So be aware that `$sf_user`, `$sf_request`, `$sf_param`, and `$sf_context` >still work, but their methods return escaped data, unless you add `ESC_RAW` as >a final argument to their method calls. But I can't access sf_request (to repopulate a form) in my templates Did I miss something? Thanks in advance!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Loading data from fixtures [sfDoctrine]
I have some issues with loading data from fixtures using doctrine (through sfDoctrinePlugin). I'm not sure if I have made some mistake or there's a bug. My schema file looks like that: detect_relations: on options: collate: utf8_unicode_ci charset: utf8 Person: actAs: Sluggable: unique: true fields: [first_name, last_name] canUpdate:true columns: id: primary: true autoincrement: true type: integer first_name: string(255) last_name: string(255) email: string(255) Article: actAs: Sluggable: unique: true fields: [title] canUpdate: true columns: id: primary: true autoincrement: true type: integer title: string ArticleContent: actAs: Timestampable: created: disabled: true updated: name: updated_at columns: id: primary: true autoincrement: true type: integer person_id: integer article_id: integer content: string relations: Article: foreignAlias: article_contents Person: foreignAlias: article_contents and data.yml look like that: Person: mdrolc: first_name: Matjaž last_name: Drolc email: [EMAIL PROTECTED] article_contents: [ fizika101, hw01 ] jkranjski: first_name: Janez last_name: Kranjski email: [EMAIL PROTECTED] article_contents: [ fizika102 ] Article: hw: title: Pozdravljen svet! article_contents: [ hw01 ] fizika1: title: Fizika v 1. letniku gimnazij article_contents: [ fizika101, fizika102 ] ArticleContent: fizika101: content: Fizika je ql! fizika102: content: Ne pa ni! hw01: content: Pozdravljeni vsi! When I run "./symfony doctrine:build-all-reload frontend", data is inserted, but article_id fields in ArticleContent table are filled with NULLs instead of article ids. On the other hand, links between persons and article contents are created without problems. If I exlude them from fixture file, there's no problem with links between articles and article's contents. Why can't be fields for both relations filled? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SQL Debug with propel1.3 + sf1.1
Well that's a strange question, because with sfPropelPlugin (1.3) and DebugPDO i can see the raw sql queries inside "logs & msgs" in the debug bar ... you don't?! Michael On Jul 9, 6:26 pm, Fabian Ruff <[EMAIL PROTECTED]> wrote: > Hi, > > On 9 Jul., 15:40, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> wrote: > > It's not implemented yet, or not going to be. > > So this is not an error, there is no db icon with this plugin. > > Ok. > Is there any other way to get the raw sql statements that where > executed? > What exactly does the DebugPDO class then? > > Fabian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: SQL Debug with propel1.3 + sf1.1
It's not implemented yet, or not going to be. So this is not an error, there is no db icon with this plugin. Michael On Jul 9, 2:52 pm, Fabian Ruff <[EMAIL PROTECTED]> wrote: > Hi, > > I'm missing the database Icon in the web debug toolbar for the sql > statments that where executed during the request. > > I'm using sf 1.1 with the propel1.3 plugin and in my > database.yml I have: > dev: > propel: > param: > classname: DebugPDO > > Is this in principle supposed to work or is this unfinished for the > 1.3 plugin? > > Grettings, > Fabian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony1.1 propel:build-model Error
Hi all, I've installed Symfony1.1 and created a new project. But I'm getting following error while building model. $ symfony propel:build-model >> schemaconverting "/Users/aditya/Sites/mywebapp/config/schema.yml" to XML >> schemaputting /Users/aditya/Sites/mywebapp/config/generated-schema.xml Buildfile: /usr/local/php5/lib/php/symfony/plugins/sfPropelPlugin/lib/ vendor/propel-generator/build.xml PHP Fatal error: Declaration of SequentialTask::addTask() must be compatible with that of TaskContainer::addTask() in /usr/local/php5/ lib/php/symfony/plugins/sfPropelPlugin/lib/vendor/phing/tasks/system/ SequentialTask.php on line 35 Have you seen this error before? Or do you know what I need to do with sfPropelPlugin or Phing while working with Symony1.1? All kinds of suggestions will be helpful. Thanks, Aditya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Strange behavior with sfConfig and sfContext::switchTo in sf1.1
Hi everyone I'm currently trying to port my project to sf 1.1. I encounter a strange behavior. Maybe it's because I misunderstood how the new config works. So my problem : I use sfConfig::switchTo to change configuration and being able to do cross app links. But when doing this in a page that use sfPropelActAsNestedSetBehaviorPlugin, I encounter an exception. After digging, the problem is that the class is not altered to handle the behavoir, so the array of required columns for nestedset handling is empty. These columns are added by sfPropelPlugin::add in the sfConfig. If I remove my call to the cross app link helper, it works. So I do the following testcase http://fr.pastebin.ca/1062253 So is it a bug or do I something wrong ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---