[symfony-users] Re: Generated Form Is Empty

2009-07-30 Thread seifolah Ghaderi
Thanks.I solved it. I rename my matchForm to MatchSheet,and it work's! I think itmay be a bug.When We have a module named A and another named AForm ,When we call A/new url it rais this error. On Thu, Jul 30, 2009 at 7:53 PM, Eno wrote: > > On Thu, 30 Jul 2009, seifolah Ghaderi wrote: > > > Yes it

[symfony-users] Re: What does sf_compat_10 do ? , & how to add helpers in settings.yml ?

2009-07-30 Thread ahmed-araby
Duting my search in the code I found this line if (!sfConfig::get('sf_compat_10') && false !== $i = array_search ('Form', $helpers)) which removes Form from helpers array if sf_compat_10 is not set , why ? On Jul 31, 6:45 am, ahmed-araby <9ahm...@gmail.com> wrote: > Hi all, > I really want to kno

[symfony-users] What does sf_compat_10 do ? , & how to add helpers in settings.yml ?

2009-07-30 Thread ahmed-araby
Hi all, I really want to know what does sf_compat_10 do in the application in specific ? and if it affects the application performance ? Also how to add helpers in every template in the application ? I knew that I can add them to settings.yml but have to enable sf_compat_10 , is there's any other

[symfony-users] Re: implementing one to many relation between User and Images at backend

2009-07-30 Thread Farrukh Abbas
yeah - thanks :) On Wed, Jul 29, 2009 at 3:29 PM, despai - wrote: > bool *unlink* ( string $nombrearchivo [, resource $contexto ] ) > > > > > 2009/7/29 dagger > > >> I guess it will be better if I define a template for image editing ... >> as i also create 2 scaled versions at the time the user

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread Fabian Lange
Oh somehow didnt realize you are on 1.0 :) sorry Fabian On Thu, Jul 30, 2009 at 11:06 PM, danielwinter wrote: > > I am using Symfony 1.0 in this project and the sfYaml::load() function > definitely uses spyc/syck. > But perhaps that is a clue - and I should use sfYaml from symfony 1.2 > and see i

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread danielwinter
I am using Symfony 1.0 in this project and the sfYaml::load() function definitely uses spyc/syck. But perhaps that is a clue - and I should use sfYaml from symfony 1.2 and see if sfYamlParser is faster. thanks Fabian! dan --~--~-~--~~~---~--~~ You received this

[symfony-users] Re: sfGuard get permission

2009-07-30 Thread Dennis Hellmich
Try hasCredential() instead of hasPermission() if you use $sf_user. I think the latter only works for an sfGuardUser object, i.e. something like $sf_user->getGuardUser()->hasPermission('bla') 2009/7/30 ShotoKan > > Hello... > > I have a trouble with the sfGuardPlugin: I need check if the user ha

[symfony-users] Re: Symfony+Doctrine+PGSQL

2009-07-30 Thread Martin Ibarra Cervantes
your need put the DSN correct on youur config/databases.yml On Wed, Jul 29, 2009 at 1:10 PM, Gábor Fási wrote: > > Just specify the correct DSN and you should be fine. The pgsql dsn has > a different format than the mysql one, it looks like this: > pgsql:host=hostname;dbname=databasename;user=

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Eno
On Thu, 30 Jul 2009, Bruno Reis wrote: > but, if I do that, the config will be packed with the plugin, commited to > svn, etc.. I need application specific code in a way I do not need to touch > the plugin files. I found something on the end of: > http://www.symfony-project.org/book/1_2/19-Master

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Eno
On Thu, 30 Jul 2009, Bruno Reis wrote: > Thanks Eno, but that does not shows what I am looking for. It explains the > configurations and yaml reading process, but I need to register a custom > handler to use in a plugin. No, if your plugin is a module, then you can create module.yml and read it

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
1 - define a config_handlers.yml on the plugin config dir with something like: config/json_services.yml: class:sfDefineEnvironmentConfigHandler param: prefix: json_services_ This will register sfDefineEnvironmentConfigHandler as the handler for the json_services.yml files. It also def

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
Thanks Daniel, but, if I do that, the config will be packed with the plugin, commited to svn, etc.. I need application specific code in a way I do not need to touch the plugin files. I found something on the end of: http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files

[symfony-users] Oops...'Something is broken...500 internal server error'

2009-07-30 Thread chip fyn
Is this a real problem or what? The program was great till a couple days ago and now, out of the blue, a couple database connections have broken. Just got a bid (from India!) of $550 to fix it Am I being had? Caould someone recommend a good, user friendly, symfony programmer for a long term re

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Richtermeister
Hey Bruno, just include a /yourplugin/config/app.yml file that contains your settings. This file will be included in the configuration automatically. Daniel On Jul 30, 10:16 am, Bruno Reis wrote: > Thanks Eno, but that does not shows what I am looking for. It explains the > configurations and

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Kieu Anh Tuan
As far as I know, you could make your own config by defining it in config_handler.yml in config folder. On Jul 30, 2009 7:16 PM, "Bruno Reis" wrote: Thanks Eno, but that does not shows what I am looking for. It explains the configurations and yaml reading process, but I need to register a custom

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
Thanks Eno, but that does not shows what I am looking for. It explains the configurations and yaml reading process, but I need to register a custom handler to use in a plugin. 2009/7/30 Eno > > On Thu, 30 Jul 2009, Bruno Reis wrote: > > > I have a plugin that needs to be configurated with a yml

[symfony-users] Re: Generated Form Is Empty

2009-07-30 Thread Eno
On Thu, 30 Jul 2009, seifolah Ghaderi wrote: > Yes its empty.In both frontend and backend.If I insert some data to my > table(in database),it show my list,but when try to edit or create new it > rais this error: > > Catchable fatal error: Argument 1 passed to > sfModelGeneratorConfiguration::fix

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Eno
On Thu, 30 Jul 2009, Bruno Reis wrote: > I have a plugin that needs to be configurated with a yml config file. How do > I register this configuration file so that I can read the values with > sfConfig::get? > And what is the appropriate place to put this file? config/pluginName ? http://www.symf

[symfony-users] Problems with Ajax

2009-07-30 Thread Relez
Hello everyone, I am reading the Symfony Book on the Web, specifically Chapter 11. "Ajax Integration", and I am trying to implement some of the examples. I am trying to use the helper remote_function(), I had created a module "main" with two actions, "index" and "greet" at indexSuccess.php I wrote

[symfony-users] Problems with Ajax

2009-07-30 Thread Relez
Hello everyone, I am reading the Symfony Book on the Web, specifically Chapter 11. "Ajax Integration", and I am trying to implement some of the examples. I am trying to use the helper remote_function(), I had created a module "main" with two actions, "index" and "greet" at indexSuccess.php I wrote

[symfony-users] How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
Hi, I have a plugin that needs to be configurated with a yml config file. How do I register this configuration file so that I can read the values with sfConfig::get? And what is the appropriate place to put this file? config/pluginName ? Is there a way to auto-generate this file on plugin instalat

[symfony-users] Re: link_to_remote - Ajax Call

2009-07-30 Thread DEEPAK BHATIA
Hello, Please find the line below 'common_area','url' => 'cancel/cancel?id='.$currentdate,'script' => true,)); ?> I have one question that I am using Ajax library of prototypejs but datatable javascript library of Yahoo ? Shall I use the Ajax calls of Yahoo library itself ? Regards Deepak

[symfony-users] sfGuard get permission

2009-07-30 Thread ShotoKan
Hello... I have a trouble with the sfGuardPlugin: I need check if the user have the permission "X". I use $sf_user->hasPermission('X') but the plugin returns FALSE because the user don't have this permission directly... he have the permission through one group. For example: the user "Paul" is in

[symfony-users] Re: Generated Form Is Empty

2009-07-30 Thread seifolah Ghaderi
Yes its empty.In both frontend and backend.If I insert some data to my table(in database),it show my list,but when try to edit or create new it rais this error: Catchable fatal error: Argument 1 passed to sfModelGeneratorConfiguration::fixFormFields() must be an instance of sfForm, instance of Far

[symfony-users] Re: Generated Form Is Empty

2009-07-30 Thread Eno
On Thu, 30 Jul 2009, seifolah ghaderi wrote: > After I generate my module in admin side,One of My generated form is empty. > It's name Is SampleMatch.when i go to /match/new ,it don't show any thing!!! When you view the source of the page, is it empty? -- --~--~-~--~~--

[symfony-users] Re: link_to_remote - Ajax Call

2009-07-30 Thread Gareth McCumskey
Well Actually I was referring to just the line of code that calls the link_to_remote helper... - Original Message - From: "DEEPAK BHATIA" To: symfony-users@googlegroups.com Sent: Thursday, July 30, 2009 10:58:31 AM GMT +02:00 Harare / Pretoria Subject: [symfony-users] Re: link_to_remot

[symfony-users] Unable to load fixture data for NestedSet models

2009-07-30 Thread Rytis Daugirdas
Hello, I have a problem loading fixture data for models that have NestedSet behavior enabled. Here's the model in question: http://pastebin.com/m48126255 Here's the data: http://pastebin.com/m4c957062 And here's the error: http://pastebin.com/m1ab769dc I am using symfony 1.2 with doctrine 1.1 a

[symfony-users] Re: propel:data-load error

2009-07-30 Thread carllang
i fixed it, just for others out there, i realised that not all the tables were created in the database, therefore had to edit the schema.yml and add all the other tables, then did build all, cc , and data-load worked. cheers, carl On Jul 30, 3:51 am, carllang wrote: > yes i tried that now, cle

[symfony-users] Re: propel:data-load error

2009-07-30 Thread carllang
yes i tried that now, clear cache, but it still has the same error on data-load just by the way , when i do build all it displays this message " Phing was run before and used many custom classes that might conflict with your model classes. In case of errors try running "propel:build- forms"

[symfony-users] Generated Form Is Empty

2009-07-30 Thread seifolah ghaderi
Hi. After I generate my module in admin side,One of My generated form is empty. It's name Is SampleMatch.when i go to /match/new ,it don't show any thing!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony u

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread Fabian Lange
sfYaml neither uses spyc nor syck. If you can send me such an 1MB sample file that is slow I can run some benchmarks against it Fabian On Thu, Jul 30, 2009 at 10:06 AM, danielwinter wrote: > > Good advice for sure, thank you. Moving data queries of of loops is > something I do often, sometimes r

[symfony-users] Re: routing.data.cache

2009-07-30 Thread CaffeineInc
Thanks, I'll give the db session another go, and loadbalance properly... On Jul 29, 10:50 pm, pghoratiu wrote: > By default sessions in PHP are stored in one of the OS dirs (on Ubuntu/ > Debian system this is /var/lib/php5) or > you can specify explicitly where the sessions should be stored. > I

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-30 Thread Stephen Melrose
Nope, that doesn't work either. Must be a security issue or something : ( Ah well. On 28 July, 13:05, Gareth McCumskey wrote: > Instead of trying to run the symfony/propel command try running the mysql > command to insert that sql: > > mysql database_name < /path/to/project/data/saql/lib.model

[symfony-users] Re: link_to_remote - Ajax Call

2009-07-30 Thread DEEPAK BHATIA
Hi, Please find my link_to_remote code. There is a tag at the bottom of the page but it's related css and js files are in main page. Thanks Deepak Bhatia On Thu, Jul 30, 2009 at 2:17 PM, Gareth McCumskey wrote: > > Can we see your link_to_remote code? > > > - Origina

[symfony-users] Re: link_to_remote - Ajax Call

2009-07-30 Thread Gareth McCumskey
Can we see your link_to_remote code? - Original Message - From: "DEEPAK BHATIA" To: symfony-users@googlegroups.com Sent: Thursday, July 30, 2009 9:56:05 AM GMT +02:00 Harare / Pretoria Subject: [symfony-users] link_to_remote - Ajax Call Hi, I am using link_to_remote Ajax call from th

[symfony-users] Re: nested forms

2009-07-30 Thread Łukasz Wojciechowski
W dniu 30 lipca 2009 10:18 użytkownik mirfan napisał: > > thanks for your comments i have also the same problem only the last > values are saved but i its strange if symfony give embedFormForEach > facility then there should bw a way to mangae it. this is good question :) > and also one more > t

[symfony-users] Re: nested forms

2009-07-30 Thread mirfan
thanks for your comments i have also the same problem only the last values are saved but i its strange if symfony give embedFormForEach facility then there should bw a way to mangae it. and also one more thing if i am using a loop then the loop will be limited to the counter but in my form i have

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread danielwinter
Good advice for sure, thank you. Moving data queries of of loops is something I do often, sometimes resulting in using a LOAD DATA INFILE and bypassing the ORM altogether. Unfortunately, it seems that simply calling sfYaml::load() is consuming huge amounts of time and RAM, but I will have to diag

[symfony-users] link_to_remote - Ajax Call

2009-07-30 Thread DEEPAK BHATIA
Hi, I am using link_to_remote Ajax call from the main page. The module called from link_to_remote uses external javascript library. This external javascript library files location are put on the main page using . When I click on the link_to_remote hyperlink and the module is displayed on the m

[symfony-users] Re: nested forms

2009-07-30 Thread Łukasz Wojciechowski
I have only one advice for You. Use embedForm instead of embedFormForEach. Few days back I also tried to create dynamic form and I got nowhere when using embedFormForEach. Practically You should be able to use embedForm many times in a loop and You should get the same effect. In my case when I wa