Re: [symfony-users] Form widgets

2011-02-24 Thread Gábor Fási
That's not the case anymore in 1.3 and 1.4. The default autoloader in debug mode became sfAutoloadAgain[1], which reloads the class cache if you're trying to load a nonexistent class. [1] http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fae23c9403b0e9ec99806fccf6b53e_sub_sfautol

[symfony-users] Re: Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-24 Thread Кирилл Кокоша
Yes, I did php app/console doctrine:generate:entity "CountryBundle" "Country" --mapping-type="yml", and it generate basic Entity in CountryBundle with name Sensio.CountryBundle.Entity.Country.dcm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pro

[symfony-users] entity mapping of library class in OOPs paradigm

2011-02-24 Thread charanjeet
Hi I have got doctrine queries that operate on multiple tables and even across databases. Where should i place these? Model classes dont seem appropriate for it. if I place these in library class, the code doesn't remain structured and i will end up having a class with l

[symfony-users] Re: [symfony2] SecurityBundle: logout configuration question

2011-02-24 Thread olimination
> The security listeners are only attached when the request matches the > pattern of the firewall. So you need to use an url of the form > /admin/logout to be in the scope of the listener. This can be done in > the logout configuration. Thanks! The following logout configuration worked fine for m

[symfony-users] Fwd: stOfcPlugin license

2011-02-24 Thread Michał Piotrowski
Hi, Do anyone knows anything about this license problem in stOfcPlugin? -- Wiadomość przekazana dalej -- Od: Michał Piotrowski Data: 23 lutego 2011 11:21 Temat: stOfcPlugin license Do: RASHID Dawood Hi, I wonder why in the doc dir is a copy of GPL license? IFAICS your work

[symfony-users] Re: Upload image and showing image

2011-02-24 Thread Vit228
1. download and install jQuery plugin LightBox 2. edit your template $uploadDirName = sfConfig::get('sf_upload_dir').'/products'; $filePath = '/uploads/products'.'/'.$this->getObject()- >getPic();; open file 3. edit your layout.php //jQuery onload $("a[rel=extraPics]").lightBox(); done,

Re: [symfony-users] Re: Upload image and showing image

2011-02-24 Thread kiran kadam
Thank you friend I will use your idea On Thu, Feb 24, 2011 at 6:46 PM, Vit228 <228...@gmail.com> wrote: > 1. download and install jQuery plugin LightBox > > 2. edit your template > $uploadDirName = sfConfig::get('sf_upload_dir').'/products'; > $filePath = '/uploads/products'.'/'.$this->get

[symfony-users] Page Cache issue

2011-02-24 Thread crazydev
Hello I am facing strange issue since couple of days. Here is the scenario. I do visit login page. Provide authentication details. After that I am redirect to secure page. Now when I visit homepage by changing browser URL (Not by link) or press back button it shows me I am not authenticate (shows

[symfony-users] Create dynamic folder and save files in it.

2011-02-24 Thread Kiran
Hello friends I want to create dynamic folder with specific name and file must save in that folder. For example if user upload a file , the file must be save in folder name as UserID. Suppose UserID is XYZ-001 So File must be save in Folder named as XYZ-001 Can some body give me idea to complete t

[symfony-users] Re: Page Cache issue

2011-02-24 Thread Gabriel Petchesi
Sounds some sort of caching issue on the browser side. Check the HTTP headers if caching is disabled for the homepage. gabriel -- 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

[symfony-users] sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-24 Thread Javier Garcia
Hi, i have this widget : $this->widgetSchema['user'] = new sfWidgetFormChoice(array( 'choices' => array(), 'renderer_class' => 'sfWidgetFormJQueryAutocompleter', 'renderer_options' => array('url' => 'autocomplete', 'config' => '{ multiple:true }'), )); And t

[symfony-users] Bug or Feature? in sfViewClass>setDecoratorTemplate()

2011-02-24 Thread emTom
Hi all, I'm not sure wether or not this behaviour is intended. I'm using a custom view class to change the template and layout dirs for some modules in my application. Here is the source: class cmsView extends sfPHPView { public function configure() { parent::configure();

[symfony-users] Re: How to handle 404 and 500 Errors in Symfony 2?

2011-02-24 Thread Zap
OK, now I probably can customize template, but It seems that errors are not handled by SF... In devel mode: Unable to find the controller. 404 Not Found - NotFoundHttpException Stack trace ... In prod mode there is browser's default message, that page was not found or something is wrong with se

[symfony-users] Unable to parse contents of the "sqldb.map" file.

2011-02-24 Thread stephen.zamb...@gmail.com
Hi, I installed Symfony on my 1and1 shared server, I tried to learn symfony with Jobeet's tutorial but when I run " php5 symfony propel:build-all" I have this error: Unable to parse contents of the "sqldb.map" file. this is the content of my sqldb.map file: #/sql/sqldb.map # Sqlfile -> Database

[symfony-users] Re: Generating repositories

2011-02-24 Thread Lideln
Up ! This is quite blocking for me not to have the repositories. Can please someone point me to the right direction ? I really tried many and many configurations... Maybe I just missed the one that works. Thanks a lot, On 18 fév, 00:01, Lideln wrote: > Hi, > > I am trying to generate the repos

[symfony-users] Re: Are there something resource for learning Symfony2.0?

2011-02-24 Thread Joel
Awesome. Thanks for the usefull info. Anybody known if is it possible to use Netbeans IDE with Symfony 2? On 23 fev, 18:22, oscar balladares wrote: > A few minutes ago, I found out that there is a "branch docs" for the > official PR6 of Symfony, it is a little more > detailed documentation, wi

[symfony-users] Main layout in app/ or in a bundle?

2011-02-24 Thread Nicolas Wormser
Hi all, I'm quite new to Symfony2 and I was wondering whether I should put the main layout of an application (and its stylesheets) in the /app/ (or whatever) directory or in a bundle? It is not clear to me because in the sandbox they put sort of a base layout in the /app/ directory and another on

Re: [symfony-users] no user-token after login

2011-02-24 Thread Florian Semm
i have modifiyed my config. i think is nearly the same to your config. security: encoders: users: class: Project\UserBundle\Entity\User algorithm: plaintext providers: default: entity: { class: UserBundle:User } firewalls: backend: pattern: /.*

Re: [symfony-users] Re: EntityChoiceField : two issues

2011-02-24 Thread Christophe COEVOET
Le 24/02/2011 11:12, Lideln a écrit : The container cannot be accessed from the view. What about $view->container Unless you achieve accessing protected properties outside the class it does not work. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please sen

[symfony-users] Re: EntityChoiceField : two issues

2011-02-24 Thread Lideln
Hi Christophe, On 23 fév, 18:22, stof wrote: > On Wed, 23 Feb 2011 09:08:33 -0800 (PST), Lideln wrote: > > Hi Carlos, > > > Thank you for the answer ! > > This is a good idea to use options to pass the EM, I will follow your > > advice ! > > Using an option is the good way to give the em to the

Re: [symfony-users] Main layout in app/ or in a bundle?

2011-02-24 Thread taidehuone
Generally you put the main layout in the /app/ folder and more specified layouts in bundle dirs. See "Three-level inheritance" near the end of this page: http://docs.symfony-reloaded.org/master/book/templating.html -- If you want to report a vulnerability issue on symfony, please send it to sec

Re: [symfony-users] Re: Generating repositories

2011-02-24 Thread taidehuone
I'm no expert in any way but since I have working repositories I might as well drop a line or two on this. Personally I have never called the doctrine:generate:repositories task. I have created the repository files and entity files by hand so that the file structure looks like this. I don't know i

[symfony-users] [Symfony 2] - Dependency Injection Component - documentation?

2011-02-24 Thread Richard Fullmer
First, I'd like to say that I think the symfony 1 dependency injection component has completely changed the way I think about writing testable code. It's fast, fantastic, and well documented. I've been awaiting such documentation for the Symfony 2 DIC to appear on the symfony-reloaded website

[symfony-users] Re: Generating repositories

2011-02-24 Thread olimination
Hi, I'm not an expert too, but I have managed to configure a working custom Repository class for my entity. My main problem was, that I have used a incorrect annotation like this: /** * @orm:Entity * @entity(repositoryClass="Laboda\LabodaAdminBundle\Entity \WishRepository") */ class MyEntityNa

Re: [symfony-users] [Symfony 2] - Dependency Injection Component - documentation?

2011-02-24 Thread Christophe COEVOET
Le 24/02/2011 20:24, Richard Fullmer a écrit : First, I'd like to say that I think the symfony 1 dependency injection component has completely changed the way I think about writing testable code. It's fast, fantastic, and well documented. I've been awaiting such documentation for the Symfony

Re: [symfony-users] Re: Are there something resource for learning Symfony2.0?

2011-02-24 Thread oscar balladares
If you mean running s2 commands from Netbeans, the answer is no. Although Netbeans has support for PHP 5.3; it will parse namespaces and load packages in the autocomplete pop up list. You only need to create a new project with existing source, and set the PHP 5.3 version. [?] 2011/2/24 Joel >

[symfony-users] [symfony2][PR6] Creating Form Fields Automatically AssertType("boolean") doesn't render a checkbox but a Textfield.

2011-02-24 Thread oscar balladares
Hi everybody. Have a nice day. Im following the Form guide from http://docs.symfony-reloaded.org/master/guides/forms/overview.html I have an entity named ContctRequest like this: namespace ...; class ContactRequest { .../*some attributes.. /** * @validation:AssertType("boolean") */

[symfony-users] Re: Symfony Live 2011 Last Minute Plans

2011-02-24 Thread Douglas Greenshields
Hi Chris A couple of us are coming down from Scotland, getting there late afternoon on the 2nd. Staying at the Holiday Inn at Porte d'Italie, it's pretty close to the venue, next to a motorway admittedly, but at about £58 per night on lastminute just now it isn't too bad for Paris! I imagine mos

[symfony-users] sfDoctrineGuardPlugin development

2011-02-24 Thread fain182
sfDoctrineGuardPlugin is the most popular plugin ( it's written here: http://www.symfony-project.org/plugins/ ) but it seems not under development from one year and there are some bugs with simple patch not fixed: http://trac.symfony-project.org/ticket/9494 http://trac.symfony-project.org/ticket/8

Re: [symfony-users] Main layout in app/ or in a bundle?

2011-02-24 Thread oscar balladares
Another thing to consider, is to put CSS and related stuff under yourApp/web/ dir unless you want to build a selfish (plugin like) bundle; in that case you can put your main Layout and css stuff in the Bundle's dir. 2011/2/24 taidehuone > Generally you put the main layout in the /app/ folder and

Re: [symfony-users] Re: Upload image and showing image

2011-02-24 Thread Vaibhav Rajput
I m suggesting you to use sfMultipleAjaxUploadGalleryPlugin for ur images management... it is easy to install n use n modify...All the best... Here the link is,,, http://www.symfony-project.org/plugins/sfMultipleAjaxUploadGalleryPlugin -- If you want to report a vulnerability issue on symfony, pl

[symfony-users] [Symfony 2] Multiple apps in a project?

2011-02-24 Thread Theo Chakkapark
I'm considering using Symfony 2 over Symfony 1, and based on the documentation for Symfony 2, it seems that the notion of multiple apps has been removed? If so, this will be a major factor to why I'll stick with Symfony 1. The reason why I use multiple apps is because I have two separate websites

[symfony-users] [Symfony 2] How to route with default :action :module style found in Symfony 1?

2011-02-24 Thread Theo Chakkapark
How would I replicate in Symfony 2, what Symfony 1 provided in default routing? default: url: /:module/:action/* I know that with the way Symfony 2 works, I would have to specify the 'default' bundle to look into for the controller to use and view to execute -- If you want to report a vulnera

[symfony-users] doctrine generating yaml schema for database ... here is no open connection

2011-02-24 Thread ISSA Abderrahmen
Hello, I am new on Symfony. I am practising the jobeet project. I tried looking for a solution on the net but I didn't found my case : This is the content of the file database.yml all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=jobeet' username: root password: mYsE

Re: [symfony-users] doctrine generating yaml schema for database ... here is no open connection

2011-02-24 Thread Sebastien Armand [Pink]
In your command line, if you type php symfony You will see a list of commands available and a short description of what those commands do. There you can see that doctrine:build-schema "Creates a schema from an existing database" If you are trying to create the database from a schema file, then d

[symfony-users] Re: Page Cache issue

2011-02-24 Thread crazydev
Hello Gabriel, Thanks for response. I do not face same issue with other site but for this only. so I believe this issue relate to symfony 1.4. Anyone had face same issue? On Feb 24, 7:42 pm, Gabriel Petchesi wrote: > Sounds some sort of caching issue on the browser side. > Check the HTTP head