Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Tony Peng
I started the project over from scratch and I am no longer experiencing this problem. The only thing I did differently was that I executed ./symfony cc before I created the module. Not sure if that was the problem, but thank you comb and Garry for your help. On Wed, May 26, 2010 at 11:04 PM, Tony

Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Tony Peng
I am using Bluefish Editor on Ubuntu 10.04 On Wed, May 26, 2010 at 10:52 PM, Garry Freemyer wrote: > Last time I saw something inexplicable like this it was because the user had > created the file using textedit on a macintosh. Textedit is a mis-nomer in > that it saves font and other info into t

Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Garry Freemyer
Last time I saw something inexplicable like this it was because the user had created the file using textedit on a macintosh. Textedit is a mis-nomer in that it saves font and other info into the file that you do not see. What editor are you using? What os are you using? Are you sure the yml file

[symfony-users] Re: ahDoctrineEasyEmbeddedRelations Problem

2010-05-26 Thread FireMonkey
Hey, Thanks for your time. I fixed the contactsForm.class.php and it's working fine now. I was able to fix the error by extending the BasecontactForm and not the BaseFormDoctrine file (As mentioned in the manual) That's weird because the BasecontactsForm extends BaseFormDoctrine and the BaseFor

[symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread comb
Are the tables created and the fixtures loaded if u drop the db by hand in phpmyadmin and then execute symfony doctrine:build --all --and- load --no-confirmation? You may provide the complete error-message... On 27 Mai, 03:59, Tony Peng wrote: > thanks for the responses guys, but neither of thos

Re: [symfony-users] Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Tony Peng
thanks for the responses guys, but neither of those solutions seem to work. checking my database with phpmyadmin shows that all the fixtures seem to have loaded correctly so I don't think there would be anything wrong with my databases.yml On Wed, May 26, 2010 at 9:49 PM, Garry Freemyer wrote: >

Re: [symfony-users] Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Garry Freemyer
I think yml files need two spaces as indent on all lines. It appears that after the word doctrine, the lines have only one space as indent. Also, I note the trailing / in your url. That should not be there. It should end in frontend_dev.php. If this solves it let me know which it was. __

[symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread comb
you maybe have some tabulators in your database.yml... but you must not use tabulators in .yml-files (only whitespaces). On 27 Mai, 03:32, Tony Peng wrote: > Hi all, > > I'm new to Symfony and I'm going through the Jobeet tutorial v1.4 for > Doctrine. I am currently stuck on Day 3. I've followed

[symfony-users] Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-26 Thread Tony Peng
Hi all, I'm new to Symfony and I'm going through the Jobeet tutorial v1.4 for Doctrine. I am currently stuck on Day 3. I've followed all the instructions on configuring the database and building models and modules; however, when I try to access "http://localhost:8080/frontend_dev.php/"; I receive

Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Tom Haskins-Vaughan
+1 for jquery On Wed, May 26, 2010 at 8:51 AM, Eno wrote: > On Wed, 26 May 2010, Parijat Kalia wrote: > >> 1) Enabling jQuery or Prototype (which 1 is better and easier to learn) > > jQuery has a lot more widgets available IMHO. > >> 2) Do I need to download anything off the net, or are the 2 jsc

Re: [symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Tom Haskins-Vaughan
I know it may be a silly question, but do you have the correct url for the css file? I mean, what happens when you put it in your brower location bar? On Wed, May 26, 2010 at 6:08 AM, Javier Garcia wrote: > Hi, > > i have this lines: > > use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-

[symfony-users] Relative path with reverse proxy

2010-05-26 Thread Rafael
Hello everybody, I'm trying to deploy my symfony application but I had the following problem: The TI members created an alias with reverse proxy from www.something.com/myproject to external.something.com/myproject/web/ but the links, images, and javascripts didn't show up. When I access www.som

Re: [symfony-users] error from upgrade symfony project from 1.2 to 1.4

2010-05-26 Thread Eno
On Tue, 25 May 2010, natzars wrote: > hi everyone, I get this problem when I upgrade symfony version 1.3.4 > to 1.4.4 I don't know how to resolve it > can I do it > > >>Fatal error: Uncaught exception 'InvalidArgumentException' with message > >>'Unable to load "FormHelper.php" helper in: > >>SF

[symfony-users] Re: How to check if a variable saved in sfContext is set or not?

2010-05-26 Thread wodzik
Hi! Answersing on your question if u want to check if varriable in the session is set u can do it like this: if(is_null(sfContext::getInstance()->get('form_signin', null))) it is one of the options. On 25 Maj, 07:03, Javier Garcia wrote: > Hi, > > i have this code: > > if(sfContext::ge

[symfony-users] how to prevent save in preInsert?

2010-05-26 Thread comb
Hi, i'm writing a CheckFloodable-Behavior. Before a new record is saved, I would like to prevent the insertion of the new record if the user did not wait long enough. It's very dirty since I use the sfContext::getInstance() quite much, but my question is, how would one prevent the insertion? is it

[symfony-users] Re: Experience in building news site in symfony?

2010-05-26 Thread Daniel
Another challenge I see is: 5. How to in an efficient way handle many thousands of articles in an admin/backend interface. /D On May 26, 11:49 pm, Daniel wrote: > Hi! > > I'm the CTO of a media group company in Sweden. Since almost 2 years > we have used symfony in most of our web projects. >

[symfony-users] Experience in building news site in symfony?

2010-05-26 Thread Daniel
Hi! I'm the CTO of a media group company in Sweden. Since almost 2 years we have used symfony in most of our web projects. Right now I'm in the position of making a decision about one of our biggest news web sites. Today we use one of the most known CMS tools in the Swedish market. It's built on .

[symfony-users] Re: best practice to save nb_comments

2010-05-26 Thread comb
hmm.. you're right.. cannot get the simplest things some times...:-D But a last question: Isn't it easier to use the PostInsert Record-Hook of the Doctrine_Record than to write a listener-class? or is there something wrong with it? class Comment extends BaseComment{ //... public function p

[symfony-users] Creating an "array" element with sfForm

2010-05-26 Thread Avi Block
How can I create an element which outputs its name as an array (eg., picture[]). I would like to dynamically create fields (let's say a file input field), and I would dynamically add in a validator for each element that was added with the javascript. -- If you want to report a vulnerability issue

Re: [symfony-users] How can I use the sfWidgetFormDoctrineChoice widget as required true

2010-05-26 Thread Tugdual SAUNIER
try in the associated validator, it should be there. --- Tugdual 2010/5/26 Nei Rauni Santos > This is my code: > > $widgets['review_audiences_list'] = new > sfWidgetFormDoctrineChoice(array('multiple' => true, > 'expanded' => true, 'model' => 'ReviewAudience', 'order_by' => > array('weight',

[symfony-users] How can I use the sfWidgetFormDoctrineChoice widget as required true

2010-05-26 Thread Nei Rauni Santos
This is my code: $widgets['review_audiences_list'] = new sfWidgetFormDoctrineChoice(array('multiple' => true, 'expanded' => true, 'model' => 'ReviewAudience', 'order_by' => array('weight', 'asc') )); I need to make this field required, but don't have the option required.. There is any way to do

[symfony-users] Re: Trying to join two independent forms

2010-05-26 Thread Javier Garcia
I have it, just adding in the if "&& $request->isMethod('post')": public function executeLoginAndRegister(sfWebRequest $request){ if($this->getUser()->getAttribute('form_signin') && $request- >isMethod('post')){ $this->form_signin = $this->getUser()- >getAttribute('form_

[symfony-users] Apostrophe 1.4 is out: introducing the blog plugin!

2010-05-26 Thread Tom Boutell
We are very pleased to announce the release of Apostrophe 1.4, our content management system for Symfony. Apostrophe 1.4 is made up of apostrophePlugin 1.4 and apostropheBlogPlugin 1.4. We are very pleased to announce the release of Apostrophe 1.4, including both apostrophePlugin 1.4 and apostrop

[symfony-users] Re: sfFacebookConnectPlugin error

2010-05-26 Thread jostster
I will try that. Thanks, One thing i noticed that was said was that if you use getSfGuardUserByFacebookSession then you cannot logout the user unless facebook is logged out. I noticed that even when facebook is logged out the user still shows up on the connect site. Would I need to logout the u

[symfony-users] Re: sfFacebookConnectPlugin error

2010-05-26 Thread Fabrice Bernhard
I did not know the existence of this tutorial. It is quite good but can be misleading at some parts indeed. For example here : // facebook user id $this->fb_uid = $user->getCurrentFacebookUid(); // get or create user based on fb_uid

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations Problem

2010-05-26 Thread Daniel Lohse
Erm, plugin developer here ;-) – 1. You don't need to call embedRelation(); that's called internally by the plugin's embedRelations() method. 2. Calling embedRelation() AND embedForm() AND embedRelations() on the same field names is just wrong – you only need to call embedRelations() once with

Re: [symfony-users] user session not cleared

2010-05-26 Thread Jérémie
Le mercredi 26 mai 2010 à 06:54 -0700, Lea Haensenberger a écrit : > Hi all, > I'm implementing a small shop and I put the basket into the session > with $this->getUser()->setAttribute('basket', array()). > My problem now is that when I log out I still have the basket in the > user session. And eve

[symfony-users] user session not cleared

2010-05-26 Thread Lea Haensenberger
Hi all, I'm implementing a small shop and I put the basket into the session with $this->getUser()->setAttribute('basket', array()). My problem now is that when I log out I still have the basket in the user session. And even worse when I log in with another user in the same browser I still have that

[symfony-users] Re: sfCKEditorPlugin not dislplaying

2010-05-26 Thread Ricardo
Hi, I have the same problem. I did what you did in the config.yml and autoload.yml but I still having this problem. What do you think I could do ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you

[symfony-users] Trying to join two independent forms

2010-05-26 Thread Javier Garcia
Hi, i'm trying to join two independent forms (login and register) in the same page. My idea is (just looking at the signin form): - Create an action that shows both forms (partials): public function executeLoginAndRegister(sfWebRequest $request){ if($this->getUser()->getAttribute('f

Re: [symfony-users] Re: shopping cart?

2010-05-26 Thread Eno
On Wed, 26 May 2010, bretth wrote: > Thankyou both for those; unfortunately neither are definitive > solutions at the moment :) Its pretty easy to write a shopping cart in symfony - one of the (many) books has an example you can build upon. -- -- If you want to report a vulnerability issue

Re: [symfony-users] cvs

2010-05-26 Thread safa boubekri
after generation of csv in the columun ofcsv i have these lines thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To po

Re: [symfony-users] cvs

2010-05-26 Thread Eno
On Wed, 26 May 2010, safa boubekri wrote: > i want that csv contan the content of table association > > but i have in the csv : > > D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas > s.php Which is part of the error message you sent earlier... -- -- If you

Re: [symfony-users] cvs

2010-05-26 Thread safa boubekri
hello i want that csv contan the content of table association but i have in the csv : D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas s.php thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Eno
On Wed, 26 May 2010, Parijat Kalia wrote: > 1) Enabling jQuery or Prototype (which 1 is better and easier to learn) jQuery has a lot more widgets available IMHO. > 2) Do I need to download anything off the net, or are the 2 jscript > libraries inbuilt. I find several plugins for jquery, so not s

Re: [symfony-users] cvs

2010-05-26 Thread Eno
On Wed, 26 May 2010, safa boubekri wrote: > but i have this result > > Notice: Use of undefined constant resultat - assumed > 'resultat' in > D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.class.php > on line 28 Where is resultat defined? Nowhere according to the error m

[symfony-users] Re: not escaping some html code in a template

2010-05-26 Thread l3ia-etu
thanks, that works for me ! $record_instance->getRawValue()->getFieldName() On 26 mai, 10:50, Benoit Montuelle wrote: > Hello, > > What i've done to keep escaping globally enabled but allow html rendering in > one specific part if using getRawValue() method from sfOutputEscaper class, > in the

[symfony-users] Re: shopping cart?

2010-05-26 Thread bretth
Thankyou both for those; unfortunately neither are definitive solutions at the moment :) On May 24, 7:17 pm, Javier Garcia wrote: > http://groups.google.com/group/symfony-users/browse_thread/thread/e0b... > > On 05/24/2010 02:09 AM, bretth wrote: > > > > > Thanks for the reply Javi, > > > can you

Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Philipp Mohrenweiser
1) Not sure about actual symfony 1.4 but i use it otgether with sympal (www.sympalphp.org) and there jquery is available. i personally prefer it , i dont like prototype 2) it wouldnt matter to include jquery and switch it out later on 3) you have different possibilities ... either you coult echo

[symfony-users] Propel Criteria using Sum Function, how should i used sum and alias function in criteria

2010-05-26 Thread Noor Mustafa
Hi and Hello. i have sql query SELECT issued_date, sum( `no_of_misprint` ) AS Total_Sum FROM `patient_card` WHERE issued_date = '2010-05-26' GROUP BY `issued_date` i have made this query in action $c = new Criteria(); $c->clearSelectColumns(); $c->addSelectColumn(PatientCardPeer

Re: [symfony-users] Re: best practice to save nb_comments

2010-05-26 Thread Stéphane
So add a listener to your comment model ! :-) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, May 26, 2010 at 12:29 PM, comb wrote: > Yeah I thought about Listeners, but I can't find the right hook- > p

[symfony-users] Re: best practice to save nb_comments

2010-05-26 Thread comb
Yeah I thought about Listeners, but I can't find the right hook- point.. In Tom's link that's not the same problem I have... they need the listener for a model-record, but I need it for the Comments it self and not for ie the Video-Records. In Commentable-Behavior-Class: public function s

[symfony-users] SUM()

2010-05-26 Thread safa boubekri
hello i create one module bilan i want to cretae function wich ive me the sum of on otherwidget which is in other module i ut this code in action public static function getTotals() { $con = Doctrine::getConnection('Doctrine'); $sql = "SELECT SUM(Cotisation.Montant) FROM Cotisati

[symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Javier Garcia
Hi, i have this lines: use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.min.js')?> use_stylesheet('/sfJqueryReloadedPlugin/css/ui-lightness/jquery-ui-1.7.2.custom.css')?> The first .js is loaded but the second .css not...any idea? -- Javi Ubuntu 8.04 - Symfony 1.3 -

[symfony-users] Ajax based doubt

2010-05-26 Thread Parijat Kalia
So I suppose this is a lil offshoot here,... but I wanted tips on the following: 1) Enabling jQuery or Prototype (which 1 is better and easier to learn) 2) Do I need to download anything off the net, or are the 2 jscript libraries inbuilt. I find several plugins for jquery, so not sure what to d

Re: [symfony-users] Re: How to check if a variable saved in sfContext is set or not?

2010-05-26 Thread Gábor Fási
Yes, you can use it as a registry - but for the current request only. Data stored in the context are not persisted in any way. The user does not need to be signed in for you to be able to use the session. Using the context directly means using sfContext::getInstance(), instead of other was, like $t

Re: [symfony-users] Re: How to check if a variable saved in sfContext is set or not?

2010-05-26 Thread Javier Garcia
There is this below in the 1.4 jobeet manual: "You can even use |sfContext| as a registry and add your own objects using the |set()| methods. It takes a name and an object as arguments and the |get()| method can be used later on to retrieve an object by name: sfContext::getInstance()->set('jo

[symfony-users] ahDoctrineEasyEmbeddedRelations Problem

2010-05-26 Thread Ilias Barthelemy
Hello everyone, I'am new to symfony and strugling with the ahDoctrineEasyEmbeddedRelations plugin. I followed the manual on http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin without success (getting error 'Call to undefined method contactsForm::embedRelations') Usin

[symfony-users] sfDoctrineSimpleForumPlugin in action

2010-05-26 Thread slau
Hello everybody, is anyone using the sfDoctrineSimpleForumPlugin? I am looking for a website, where this plugin is already in use. Would be nice to see it in on a actual site and not only on our dev-server. Thanks Susan -- If you want to report a vulnerability issue on symfony, please send it t

[symfony-users] generator.yml : how to add a custom "edit" action ?

2010-05-26 Thread John
Hi, I'm trying to extend the sfGuardUserAdminForm that I use with "edit" to make a "my profile" form. This form would have less fields. I tried unsetting the fields in the form class ( unset($this['groups_list']); ), but since I'm still in the "edit action" in generator.yml, I get an error sayin

Re: [symfony-users] Re: cvs

2010-05-26 Thread safa boubekri
i have csv generate but it contain esultat' in D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas s.php i want that it give us the result of the table thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-p

[symfony-users] Re: cvs

2010-05-26 Thread pghoratiu
It looks like you misplaced a comma somewhere: - 'attachment; filename='.resultat.'.csv', true) + 'attachment; filename=resultat.csv', true) gabriel On May 26, 11:39 am, safa boubekri wrote: > hello  i want to generate  cvs which contain  the details  of asscoiation > > i put this code: > >

Re: [symfony-users] cvs

2010-05-26 Thread Jérémie
Le mercredi 26 mai 2010 à 06:39 -0200, safa boubekri a écrit : > Notice: Use of undefined constant resultat - It's pretty clear. > assumed 'resultat' in > D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.class.php > on line 28 And here's the line. Jérémie -- If you want to

Re: [symfony-users] not escaping some html code in a template

2010-05-26 Thread Benoit Montuelle
Hello, What i've done to keep escaping globally enabled but allow html rendering in one specific part if using getRawValue() method from sfOutputEscaper class, in the template /partial juste like this : echo $message->getRawValue()->getText() I don't how it manages to keep doctrine (in my ex

[symfony-users] Re: how to use Ajax with moduleForm in symfony 1.4

2010-05-26 Thread l3ia-etu
look up for the id of the selectbox, and in the onchange, call a javascript function, to make an ajax call. On 26 mai, 09:32, abbbassi abidi wrote: > hi all, > > i ask  if some one know how to use ajax with class moduleNameForm, so i have > two item (selectbox) and i need to generate html for th

[symfony-users] cvs

2010-05-26 Thread safa boubekri
hello i want to generate cvs which contain the details of asscoiation i put this code: public function executeCreate(sfWebRequest $request){ $this->association = Doctrine_Query::create()->select('a.*')->from('association a')->execute(); $this->getResponse()->setContentType('applic

[symfony-users] not escaping some html code in a template

2010-05-26 Thread l3ia-etu
Hello everyone, I would like to insert some html code in my template. in the doc we've got: Listing 7-44 - Activating Output Escaping, in myapp/config/ settings.yml all: .settings: escaping_strategy: both escaping_method: ESC_ENTITIES so putting escaping_strategy: off would resolve

[symfony-users] how to use Ajax with moduleForm in symfony 1.4

2010-05-26 Thread abbbassi abidi
hi all, i ask if some one know how to use ajax with class moduleNameForm, so i have two item (selectbox) and i need to generate html for the second item on onChange event (first select), if some one know how resolve this. thanks for all, -- If you want to report a vulnerability issue on symfon