[symfony-users] Re: the jquery date widget is killing a page in IE 7

2009-09-21 Thread Jacob Coby
you're modifying the DOM before IE is ready. it's hard to recommend a fix without being able to see the generated code, but generally you can't touch the DOM until the onready event fires: $(document).ready (function() { call_dom_modifying_functions(); }); On Sep 21, 2009, at 11:48 PM, Mic

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Jake Barnes
On Sep 21, 3:02 pm, Tom Boutell wrote: > A more interesting question is: "if we're going to use MVC frameworks > anyway, do we still gain anything worth having by using loosely typed, > interpreted languages like Ruby and PHP? Assuming for a moment an > equally good framework implementation fol

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread david
--~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@goo

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread david
Loose-typing brings a lot of things to the party - allowing approaches to problems that are otherwise difficult to solve. Take linq as an example. Traditionally one of the bottlenecks in applications - esp distributed or loosely coupled applications is data-processing. Paradigms such as DI

[symfony-users] the jquery date widget is killing a page in IE 7

2009-09-21 Thread Michael J. Stuart
I am using sfWidgetFormJQueryDate for a date widget on a form. This form works well in FireFox, Safari and Google Chrome. However, the page won't load in IE 7 (have not yet checked in IE 8). The page begins to load, and gets to the point where the date widget is, and then IE 7 gives a pop up wind

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-21 Thread Pablo Godel
As far as I know, hosts file does not support wildcard domains. What you are doing is correct. Pablo On Fri, Sep 18, 2009 at 3:48 AM, Davide Borsatto wrote: > > Hi everybody, > > Lately I've been doing many experiments with symfony, creating > differents projects for each of them. > I usually

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-21 Thread gestadieu
you can also have a look at http://www.sfblog.fr/page/symfony-et-les-vhost-dynamique it's in french but the apache configuration should be enough to understand. On Sep 19, 3:55 am, kp wrote: > Sounds like what you are doing is correct, and it's the way I do it > (for local machine development)

[symfony-users] Multiple objects' forms on one page

2009-09-21 Thread Dennis
If I have a table of 'users', with a table of 'addresses', and a table of 'ramblings', how would I get either a combination of an address and a user forms on a pabe, or a user and a rambling form on a page. Any automatic way, like in the jobeet tutorial for single table/objects? --~--~-~--

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-21 Thread Dennis
I agree completely, link the API pages to the jobeet tutorial. And I agree, there should be more level of tutorials. For instance: (Until noted, just plain text in HTML, no fancy looks:) (All of these sand boxed) The Hello world one Without a template. The Hello wolrd one WITH a template. T

[symfony-users] Re: Component- Templating

2009-09-21 Thread Reynier Pérez Mira
Fabien Potencier wrote: > > Simone Fumagalli wrote: > > The templating component will be used in Symfony 2 for the view. It's > not used by symfony 1. So ... I can't use with Symfony 1.2.8 unless I follow this guide: http://components.symfony-project.org/templating/trunk/book/01-Templating-In

[symfony-users] Re: Run symfony in XAMPP

2009-09-21 Thread Eno
On Mon, 21 Sep 2009, Dhaval Parekh wrote: > I m new bee in Symfony. > I've installed symfony successfully but don't know exactly how to run > in XAMPP, > can anyone tell me? http://www.symfony-project.org/book/1_2/ -- --~--~-~--~~~---~--~~ You received thi

[symfony-users] Re: Insert custom styles in template

2009-09-21 Thread Bert
The solution I use is to generate in the action inline css style like for example $width = ... ; $height = ... ; $this->sizeDiv = "width:$width;height:$height"; and then in the template include this styl;e: Bert. On 18 sep, 22:16, Georg Gell wrote: > Hi, > > how can I include somecustomsty

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Tom Boutell
I've thought about this too. But C++ is full of scary dangerous backwards compatibility systems-programming-oriented features that make safe programming harder and make little sense in a web application. I think your argument makes more sense if you're talking Java (or C#) vs Ruby and PHP. A mor

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Tom Boutell
I've thought about this too. But C++ is full of scary dangerous backwards compatibility systems-programming-oriented features that make safe programming harder and make little sense in a web application. I think your argument makes more sense if you're talking Java (or C#) vs Ruby and PHP. A mor

[symfony-users] Run symfony in XAMPP

2009-09-21 Thread Dhaval Parekh
Hello friends, I m new bee in Symfony. I've installed symfony successfully but don't know exactly how to run in XAMPP, can anyone tell me? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony

[symfony-users] Fwd: Set timeout sessions

2009-09-21 Thread Raphael
-- Forwarded message -- From: Raphael Date: Mon, Sep 21, 2009 at 2:59 PM Subject: Set timeout sessions To: symfony-d...@googlegroups.com Hy guys, why in all files, I find it? user: class: myUser param: timeout: 1800 logging: %SF_LOGGING_ENABLE

[symfony-users] Re: Insert custom styles in template

2009-09-21 Thread Georg Gell
Right, thank you Davide Borsatto schrieb: > Slots are the solution to your problem, read about them in the docs > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group

[symfony-users] Re: problem with building sql

2009-09-21 Thread el-sid
thanks eric, from what u say, i changed all the relations by adding the prefix UrbanMusic and it worked. But i now get the logic behind it. thanks On Sep 21, 3:49 pm, erikms wrote: > Hi el-Sid, > from what I see, you have a *relation* to a table Tracks, but not the > actual table. > -Erik > > >

[symfony-users] Re: Component- Templating

2009-09-21 Thread Fabien Potencier
Simone Fumagalli wrote: > Hello. I've used Symfony for a couple of projects a couple of years > ago so now my symfony knowledge is a bit rusty. > > I was investigating th new features for a new project I've to start > and I saw components (http://components.symfony-project.org) > > My questions

[symfony-users] Is "Doctrine (database)" Timer OK ?

2009-09-21 Thread theredled
Hi all, I have a page with 6 queries. "Doctrine (database)" Timer in the Debug Toolbar tells me those queries take 0.06 ms. Strangely fast... So I measured them myself and found very different (and more usual) durations for each query : 5/10 ms. Does anybody have the same problem ? Is it a k

[symfony-users] Re: Analyse doctrine queries

2009-09-21 Thread theredled
Hi Klemens, The queries you're talking about come from Doctrine itself, and its "lazy" behaviour. For example, if you do sth like "$albums = Doctrine::getTable('Album')->findAll();", it will only take all the rows from the table 'album'. Now if you do sth like '$artist_name = $album->Artist->nam

[symfony-users] Component- Templating

2009-09-21 Thread Simone Fumagalli
Hello. I've used Symfony for a couple of projects a couple of years ago so now my symfony knowledge is a bit rusty. I was investigating th new features for a new project I've to start and I saw components (http://components.symfony-project.org) My questions is: Templating components is used to

[symfony-users] Re: direct link to an image

2009-09-21 Thread DEEPAK BHATIA
Was it useful ? Regards Deepak On Sun, Sep 20, 2009 at 11:32 PM, DEEPAK BHATIA wrote: > image_tag('/misitio/web/images/image.jpg,array('border' => "0",'alt' > => 'Home', 'title' => 'Home')); > > > or > > > > Given in chapter 7. > > http://www.symfony-project.org/book/1_2/07-Inside-the-View-La

[symfony-users] Re: Symfony very slow with routing

2009-09-21 Thread Eno
On Sun, 20 Sep 2009, David Channon wrote: > The bit to notice is the time stamps on the log entries for loading > the routes - they are exactly 30 seconds apart each time. > > The site loads quickly if you symfony cc - it appears to be when the > site is re-using the existing cache. > > All we

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread david
Aye - there was even an Apache distro for the range with embedded php. I think it's fallen out of support though. On Mon, 21 Sep 2009 18:03:42 +0200, Eno wrote: > > On Mon, 21 Sep 2009, david wrote: > >> There's also fit for purpose. While PHP on a mobile phone is possible - >> it's not the b

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Eno
On Mon, 21 Sep 2009, david wrote: > There's also fit for purpose. While PHP on a mobile phone is possible - > it's not the best idea :) Though some apps on the Nokia Nxxx tablets are written in Python :-) -- --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: newbie question - routing and actions

2009-09-21 Thread Eno
On Mon, 21 Sep 2009, erikms wrote: > OK, I think I understand that... > However, the default indexSuccess and showSuccess both use url_for > ('my_module/show?id='.$my_object->getId()) Maybe that should be: ('/my_module/show?id='.$my_object->getId()) ? -- --~--~-~--~~--

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread david
> True. > > Language does not matter anymore - use the tools you're most > comfortable and most productive with. > There's also fit for purpose. While PHP on a mobile phone is possible - it's not the best idea :) --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Lee Bolding
On 21 Sep 2009, at 15:49, Fabian Lange wrote: > > On Mon, Sep 21, 2009 at 4:44 PM, Lee Bolding wrote: >> The myth that PHP doesn't scale is old, and no longer plausible. > > I did not say say. > I said that you can have java architectures that scale better than php > architectures, > and you ca

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Fabian Lange
Hi On Mon, Sep 21, 2009 at 4:44 PM, Lee Bolding wrote: > The myth that PHP doesn't scale is old, and no longer plausible. I did not say say. I said that you can have java architectures that scale better than php architectures, and you can have php architectures that are better than java archite

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Lee Bolding
On 21 Sep 2009, at 14:50, Fabian Lange wrote: > But you can also have the same situation with Java and Spring which > scales much better than a coupled php architecture. That line is becoming more and more blurred with the advent of memcache, JSON and proper OO PHP(5) frameworks. Some projec

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread david
Frameworks have been around since developers started developing - since assembly language (the bios can be thought of as a framework). MS Word is a framework. Wordpress, joomla, SMF is a framework. Some are specific to a problem domain, some aren't. Frameworks were around even before the

[symfony-users] Re: pkToolkitPlugin gems: a lightweight HTML filter, and a handy way to ssh to your staging and production servers

2009-09-21 Thread Tom Boutell
FYI, I have finally made an official P'unk Avenue blog post about pkHtml::simplify with a more complete discussion that focuses just on that feature: http://window.punkave.com/2009/09/21/a-better-strip_tags-pkhtmlsimplify/ Thanks for the kind words about the code! On Sep 16, 3:57 pm, Jake Barne

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Eno
On Mon, 21 Sep 2009, pcummins wrote: > With the introduction of PHP frameworks and widespread use of MVC > pattern in web development, has anyone ever wondered why we aren't > simply writing our web applications in C++, and using 'templates' > files for view delivery? C++ is a large overly-compl

[symfony-users] Re: Framework based PHP vs high level programming languages

2009-09-21 Thread Fabian Lange
Hi On Mon, Sep 21, 2009 at 3:28 PM, pcummins wrote: > how far away is a good PHP framework from C / Java? incomparable. I do have my thoughts, but I cannot follow yours. First there is a difference between scripting and non-scripting languages. Which in reality is often: "I cannot see my sourc

[symfony-users] Re: newbie question - routing and actions

2009-09-21 Thread erikms
OK, I think I understand that... However, the default indexSuccess and showSuccess both use url_for ('my_module/show?id='.$my_object->getId()) which, IIUC, gets translated by the routing mechanism to my_module/ show/id/1 which in turn is not understood by any of the default routes? So then I eithe

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-21 Thread Sid Bachtiar
XD On Tue, Sep 22, 2009 at 1:28 AM, dziobacz wrote: > > I would like to say that Symfony is very, very good and future > framework. Thx Symfony I could learn very fast ASP.NET MVC (not > ASP.NET but ASP.NET MVC) - these two frameworks have got many similar > things. > While Zend Framework is far

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-21 Thread dziobacz
I would like to say that Symfony is very, very good and future framework. Thx Symfony I could learn very fast ASP.NET MVC (not ASP.NET but ASP.NET MVC) - these two frameworks have got many similar things. While Zend Framework is far, far away Symfony and ASP.NET MVS. In Zend you must almost everyt

[symfony-users] Framework based PHP vs high level programming languages

2009-09-21 Thread pcummins
With the introduction of PHP frameworks and widespread use of MVC pattern in web development, has anyone ever wondered why we aren't simply writing our web applications in C++, and using 'templates' files for view delivery? It seems like a pretty interesting cycle. Internet begins High level lan

[symfony-users] Re: newbie question - routing and actions

2009-09-21 Thread Eno
On Mon, 21 Sep 2009, erikms wrote: > However, when I try to 'show' one of those records (links provided by > Symfony), I get the error 'action 'show/1' does not exist. > Now I had supposed that 'show' meant that 'executeShow.php' would be > handling the request, and that the rest of the URL would

[symfony-users] Re: problem with building sql

2009-09-21 Thread erikms
Hi el-Sid, from what I see, you have a *relation* to a table Tracks, but not the actual table. -Erik >   relations: -->     Tracks: >       local: tracks_id >       foreign: id >       type: one >       foreignType: many >       onDelete: cascade --~--~-~--~~~---~--~--

[symfony-users] is creating subdomains on the fly possible - username.mysite.com ?? instead of mysite.com/username from controller

2009-09-21 Thread dagger
Hi I wanted to know if generating subdomains on the fly is possible ? e.g. a user specifies a username and submits the form and on the server side the controller creates the subdomain based on the username - dagger.mysite.com ? and if dagger.mysite.com is any better then mysite.com/dagger ? tha

[symfony-users] sfPropelRouteCollection

2009-09-21 Thread galileo
Hello it is such an possibility to define the route {ModuleName}: class: sfPropelRouteCollection options: model: {ModelName} module: {ModuleName} prefix_path: {Prefix} column: id with_wildcard_routes: true and put somwhere

[symfony-users] newbie question - routing and actions

2009-09-21 Thread erikms
Hi all, I am fairly new to Symfony (only in day 14 of the tutorial), but I tried to set up my own project as suggested... I have a datamodel, it loads ok, I get the default index page with a listing of my two lines fixture data. So far so good. However, when I try to 'show' one of those records (l

[symfony-users] Re: [SAAS] Multiclient system + multidata mask

2009-09-21 Thread eljam
Thx for your help lee. So if i understand correctly the spyFormBuilder, it only give me a abstract logic to the form problem without saving any data at all. I'm must implement a save method ? So for the form system, it's ok. Do you think a system like that could be used with the generator as well,

[symfony-users] Re: Nested query with propel

2009-09-21 Thread alessandro
the following query is passed to my function by a criteria: (SELECT * FROM locations LEFT JOIN locations_sezioni ON (locations.LOCATION_ID=LOCATIONS_SEZIONI_LOCATION_ID) where (locations_sezioni.LOCATIONS_SEZIONI_SEZIONE_ID<>4 AND locations_sezioni.LOCATIONS_SEZIONI_SEZIONE_ID<>5) AND locatio

[symfony-users] Re: [SAAS] Multiclient system + multidata mask

2009-09-21 Thread Lee Bolding
There's actually an alternative to sfDynamicFormPlugin, which I'm actually using as a base for sfDynamicFormPlugin - sfSpyFormBuilder. Have a look, it may well be able to sort out your problem. As for sfDynamicFormsPlugin, it's still in progress (there's not even any code that I've committe

[symfony-users] [SAAS] Multiclient system + multidata mask

2009-09-21 Thread eljam
Hello here is my problem: Example: I've got a form with three fields "firstname, lastname, dob" for client X. Now the client Y want an other field like "sex" but the client X didn't want it. So i think my problem is quite explicit with this example. Do you know a pattern like datamask that a can

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-21 Thread CaffeineInc
I think symfony is brilliant, If you need a framework which can scale to enterprise level websites with fast prototyping and a flexible ORM, then you don't need anything else. If you think it's complicated, then maybe you're in the wrong place. If you want to build a small website with everything

[symfony-users] Re: I18n + doctrine + admin generator = Doctrine_Validator_Exception

2009-09-21 Thread Jérome Vandenende
Christopher, thank you for your tips. The error was caused by the plugin sfAdminDash. I found this line in /plugins/sfAdminDashPlugin/modules/sfAdminDash/actions/actions.class.php : $this->getUser()->setCulture('pt_BR'); When I change it by : $this->getUser()->setCulture('en'); Everything worke