Re: [symfony-users] Re: migrations trouble: sfpropelmigrationslightplugin

2010-04-27 Thread Parijat Kalia
Hey Eno/Ajay..and everyone else who is interested in this post (:)). Here is one another post to the multitude of posts that I have been posting...my problem is not resolved yet...and thanks for your patience and consideration to help me out: here is what I did: *php symfony publish:assets

RE: [symfony-users] manual ajax symfony 1.4

2010-04-27 Thread NOOVEO - Christophe Brun
Hola neoslink, I'm not sure to understand your question... The way symfony behaves regarding database operations is exactly the same, whether you activate your scripts with AJAX or a standard (synchronous) request. If you're looking for a tutorial about implementing AJAX itself in symfony,

Re: [symfony-users] Re: Zend et Symfony

2010-04-27 Thread khalid
hello, show if you have a good path on sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path(). But i think is good but i don't no why he doesn't work 2010/4/26 Omar El Mazny omar.elma...@gmail.com i added static protected $zendLoaded = false; static public function

[symfony-users] Seems like Doctrine is building my filters on an old schema?

2010-04-27 Thread godbout
Hello Sir, I used to have a backend module generated by the doctrine admin-gen. I've changed the schema to replace the sf_guard_user_id in one of the table by a user_id. Here is the old schema: SectionUser: columns: sf_guard_user_id:{ type: integer(4), notnull: true }

Re: [symfony-users] Re: The signin form appears even when i have the security set to false

2010-04-27 Thread Javier Garcia
Finally i changed 'off' by 'false' and know it works :). Javi On 04/26/2010 03:54 PM, Omar El Mazny wrote: when the default is on your module will always stay secured even if it's false so don't set a default secure each module separately On Apr 25, 5:08 pm, Javier

Re: [symfony-users] Re: Multiple actions in one page

2010-04-27 Thread Javier Garcia
On 04/22/2010 10:50 AM, Gareth McCumskey wrote: If you need to have different content areas in your main layout then use slots. Thats what they were defined for;) Hi Gareth, i'm suspicious with your answer because i think you spent many time with sf, could you give more details? i can't

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-27 Thread safa boubekri
hello :( the file reports.xslis not generate change '/var/tmp/ to /tmp because i have wamp/tmp 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

[symfony-users] Fix ID in data fixture yml

2010-04-27 Thread saki
Hi! I have a problem with data fixtures, please help me! I have some data fixture files with relations and some users in the users.yml. I would like to set a fix ID for the superadministrator user. The superadmin definition is the first in the users.yml, however it gets the #3, I don't know

[symfony-users] Re: Seems like Doctrine is building my filters on an old schema?

2010-04-27 Thread godbout
Ok, found a way to correct that. I've added the local and foreign id in the many-to-many relationships. I've got an old table where I haven't updated the sf_guard_user_id to user_id because i'm gonna drop it later, and it seems that when I don't specify a local/foreign_id Doctrine is using this

[symfony-users] Re: routing creates variable value true when no trailing slash

2010-04-27 Thread Tofuwarrior
Hi Gareth, All makes sense - bit surprised retrieveByPk doesn't do this which is I guess where my question came from. Appreciate you taking the time to share your experience and approach. Thanks, Paul On Apr 23, 7:10 pm, Gareth McCumskey gmccums...@gmail.com wrote: My simple guess is that

[symfony-users] Re: stupid question about securing backend with sfGuard?

2010-04-27 Thread Tofuwarrior
Hi Both, thanks for advice both. Still no joy - sigh :-( I enabled sfguardAuth and rebuilt everything. I created the admin user but still no joy. Anyone got any other ideas? If I understood what was happening I might be able to track it down but unfortunately I am not experienced enough with

[symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread Tofuwarrior
Hi, If you can reset the auto increment id then you can do what i do which is a bit of a hack but works. Follow the instructions here: http://osterman.com/wordpress/2007/09/28/symfony-propel-auto_increment-offset and set the autoincrement to be 1. (This only works when you do build-all-load.

[symfony-users] Re: stupid question about securing backend with sfGuard?

2010-04-27 Thread Tofuwarrior
Forgot to add the following in the backend settings.yml login_module: sfGuardAuth login_action: signin secure_module: sfGuardAuth secure_action: secure So for anyone stuck with this the solution was either, add this AND sfGuardAuth in the

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Massimiliano Arione
On 26 Apr, 18:11, Rytis Daugirdas rytis.daugir...@gmail.com wrote: To output a list of nodes, obviously. It looks a bit overkilled to me. Just retrieve the whole table ordered by left, and you'll get the entire tree. cheers Massimiiano -- If you want to report a vulnerability issue on

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-27 Thread DEEPAK BHATIA
Could you get the file in /tmp ? On Tue, Apr 27, 2010 at 4:37 PM, safa boubekri boubekri.s...@gmail.com wrote: hello :(  the file reports.xsl    is not generate   change  '/var/tmp/  to  /tmp because i have wamp/tmp thank you -- If you want to report a vulnerability issue on symfony,

[symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread Tom Ptacnik
By which command are you trying to load fixtures? ... if by symfony doctrine:data-load, the old data stay in the db and therefore you can't insert another record with id 1 if you try symfony doctrine:build --all --and-load --no- confirmation then it should be ok, because the db will be erased

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-27 Thread Tofuwarrior
Ho Both, Thanks for your thoughts on this. If you can spare the time, I have one further question about this I am currently returning the ul that the tree menu function needs from the action which calls a fetchTree function which is currently in the model. This was just for development purposes

[symfony-users] Re: sfAdminThemeJrollerPlugin is not ie compatible?

2010-04-27 Thread webdev_aw_ucsb
The symfony integration is compatible with any browser (the PHP). I'm using sfAdminThemeJrollerPlugin and I've noticed with Safari that some of the submit buttons/images are offset improperly as well. The problem(s) you're referring to are CSS related -- so far as I know theme theme(s) available

[symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread saki
SOLVED! Doctrine is very clever, it does NOT load data sequentially from a yml file. The order of the data in a yml file IS NOT the order of the data in the database. I think doctrine loads all the yml files from the fixtures folder and put them to the database one by one. If a data has a

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Rytis Daugirdas
Massimiliano, Since when iterators are overkill? IMO, your suggestion is overkill. Propel documentation clearly states that a tree can be easily traversed via its iterator interface. Why should I write additional code (however simple) to get the functionality that is already provided? Besides,

[symfony-users] Re: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
hi there, Evert: 1- Why don't you have an `id` column on reservation in your schema? as i saw on jobeete example, they do not define any id column for any of the DB tables..thats because symfony add it automatically for each db table. 2- have you tried to define the innerJoin as -

[symfony-users] db question for statistics

2010-04-27 Thread Vikos
Hi Guys! Who can use Docrine + ODBC + SQL 2005 (on windows) And how? Can anyone use CRUD scaffolding ? The generated code (for me) isn't work's correctly... :( We have a big project. And after 2 weeks sucking I can't use doctrine AND /OR PDO ODBC execute (for insert). It's not a big problem

[symfony-users] sfWidgetFormDoctrineChoice problem

2010-04-27 Thread Andro Fumero
This is from users BaseForm. 'profileid' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('Profile'), 'add_empty' = false)), its displaying the Description column of my profile table. how can i display the profile column in my Profile table ? Can any one.? Thanks

[symfony-users] How to get array of field names and default values by inspecting $form

2010-04-27 Thread notbrain
I've been looking through the docs and API for methods that would allow me to do this, but I find myself running around in circles and getting a little frustrated by lack of examples/clarity. What I need to get is an array of field_name/default_value pairs as set up in the form class. Let's say my

[symfony-users] Problema con proyecto en servidor de producción

2010-04-27 Thread Fabian Barrera
Estoy trabajando en mi primer proyecto con symfony 1.4 (antes trabajaba con el 1.0). Lo exporté usando project:deploy, siguiendo el tutorial de jobeet. Al entrar a la aplicación, muestra la página de login correctamente, pero al insertar el usuario y contraseña (existente en la BD) genera este

[symfony-users] findBy order?

2010-04-27 Thread metaphist
Is there a way to pass an ORDER BY to the Doctrine findBy method? Or do I have to create a custom query at that point? -- 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

[symfony-users] Licence d'utilisation de Symfony

2010-04-27 Thread Delphine
Souhaitant utiliser symfony dans mes développements, je me suis penchée sur la question juridique. il semblerait que la licence MIT n'est pas de valeur en France, et que les licences à utiliser serait des licences CECILL dont les clauses se rapprocheraient des licences GPL, BSD... Serait il

Re: [symfony-users] Licence d'utilisation de Symfony

2010-04-27 Thread Jérémie
Le 27/04/2010 16:19, Delphine a écrit : Souhaitant utiliser symfony dans mes développements, je me suis penchée sur la question juridique. il semblerait que la licence MIT n'est pas de valeur en France, et que les licences à utiliser serait des licences CECILL dont les clauses se rapprocheraient

Re: [symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread Eno
On Tue, 27 Apr 2010, saki wrote: The order of the data in a yml file IS NOT the order of the data in the database. I think doctrine loads all the yml files from the fixtures folder and put them to the database one by one. If you have several fixtures files, I think it loads them

[symfony-users] Explication du plugin mgI18nPlugin

2010-04-27 Thread François
Bonjour à tous, J'ai commencé à utiliser (ou plutôt bidouiller) Symfony il y a un mois pour un stage qui commence depuis cette semaine. Un point que j'avais volontairement passé, parce qu'il ne devait pas en être question durant mon stage, était l'internationalisation. Vu que mon stage à débuté

Re: [symfony-users] Explication du plugin mgI18nPlugin

2010-04-27 Thread Thomas Rabaix
2010/4/27 François calv...@gmail.com Bonjour à tous, J'ai commencé à utiliser (ou plutôt bidouiller) Symfony il y a un mois pour un stage qui commence depuis cette semaine. Un point que j'avais volontairement passé, parce qu'il ne devait pas en être question durant mon stage, était

Re: [symfony-users] Re: migrations trouble: sfpropelmigrationslightplugin

2010-04-27 Thread Eno
On Mon, 26 Apr 2010, Parijat Kalia wrote: Hey Eno/Ajay..and everyone else who is interested in this post (:)). Here is one another post to the multitude of posts that I have been posting...my problem is not resolved yet...and thanks for your patience and consideration to help me out:

Re: [symfony-users] How to get array of field names and default values by inspecting $form

2010-04-27 Thread Thomas Rabaix
foreach($schema-getDefaults() as *$field_name* = $default) { print $default . \n; } ? On Mon, Apr 26, 2010 at 9:22 PM, notbrain notbr...@gmail.com wrote: I've been looking through the docs and API for methods that would allow me to do this, but I find myself running around in circles and

[symfony-users] radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi, I have some data stored in session variable, what i need to do, is to load that data in the select and radio button that i have in my template. My template looks like: ... ?php echo $form['cmb_adults_1']-render(array('class' = txt_boxes_peq)) ? ?php echo

[symfony-users] TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-27 Thread Parijat Kalia
For the past 5 days, I have been trying to find a healthy solution to the migrations issue that we propellers tend to face. Apparently, whenever you create a new database table or make changes to an existing database table, you will make the changes/additions to the *schema.yml* and you are going

Re: [symfony-users] radiobutton and select values

2010-04-27 Thread Parijat Kalia
Here is what I do /*Code for timeLimits*/ if(isset($_SESSION['timeLimits'])) { $timeLimits = $_SESSION['timeLimits']; $i=0; $dropDownMenu = array(); $dropDownMenu['0'] = 'Configured'; foreach($timeLimits as $timeLimit) { $i++;

[symfony-users] Re: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi, The problem is that i am using a form, so instead of cretaing a select_tag in the template, i use for example something like this in my form class: ... new sfWidgetFormSelect(array( 'choices' = $this-getGroupChoices() )) ... in the form class a tryed to retrieve my session variables using

[symfony-users] Re: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi, The problem is that i am using a form, so instead of cretaing a select_tag in the template, i use for example something like this in my form class: ... new sfWidgetFormSelect(array( 'choices' = $this- getGroupChoices() )) ... in the form class a tryed to retrieve my session variables using

[symfony-users] Re: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
someone with an idea..still having problems with this... -- 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 post to this group, send email

[symfony-users] Re: sfWidgetFormDoctrineChoice problem

2010-04-27 Thread webdev_aw_ucsb
'profileid' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('Profile'), 'add_empty' = false)), You can change the above code to include a method to call to display the column you want. For example: ?php, #method: The method to use to display object values