[symfony-users] Re: Unit Test issue (Day 8) Jobeet Tutorial - PROPEL

2009-01-07 Thread Fabien Potencier
Run the script directly to have the proper error message: php test/unit/model/JobeetJobTest.php Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Adrian Gould wrote: > > good morning all - > > have

[symfony-users] symfony1.2 dynamic routes tutorial

2009-01-07 Thread matt marcum
Hi, I spent a little time trying to figure out how to generate routes (semi)dynamically in symfony1.2 and I think I finally figured it out. I wrote up a quick tutorial if anyone's interested. Give it a read and let me know what you think. http://dfwtek.com/blog/129-dynamic-routes-in-symfony12.ht

[symfony-users] Unit Test issue (Day 8) Jobeet Tutorial - PROPEL

2009-01-07 Thread Adrian Gould
good morning all - have searched for a solution to the "model/ JobeetJobTest ..dubious" Unit Test problem when using PROPEL. Any ideas? Have tried the solution mentioned on the GoogleGroup for Doctrine with no success. Terminal results

[symfony-users] Re: jobeet tutorial in pdf

2009-01-07 Thread John Masson
We have a zipped html version of the 1.2 book and Jobeet tutorial available here : http://symfonynerds.com/blog/?p=152 Not a pdf, but does the same job, ie: giving you offline access. On Jan 2, 5:35 am, Fabien Marchewka wrote: > Hi, > Anybody here know about apdfversion of jobeet ? I try with >

[symfony-users] Re: [symfony-users]

2009-01-07 Thread Patrick Fong
Hi, Yes that correct it's for a wizard! And the steps are fairly similar, all using the same objects so I think that one action is the way to go! It keeps everything centralised as you said. Thanks for the feedback, I'll look into the WorkFlowPlugin. A wizard plug-in would be great!! Thanks gu

[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-07 Thread juro
Ok, I have debugged this a bit more and now my mind is totally wasted As you recall, this is my method: public function end() { if (!($this->getInvoice()->exists())) { $invoice = new Invoice(); $invoice->setName($this->getCustomer()->getFullname()); $invoice->set

[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-07 Thread juro
No, that didn't work - I wouldn't know why it should either On Jan 5, 6:47 pm, fredlab wrote: > Hi, I ran into similar problems with 1.2.2 dev recently and came up > with that patch :http://trac.symfony-project.org/ticket/5523 > > Could you try it and tell us if it solves the problem ? >

[symfony-users] Re: Flash notice doesn't display

2009-01-07 Thread Sunja, Idriz
Problem solved. Session object got messed up when it tried to store a message that had some Swedish characters (like #ö). The message was encoded wrong, as the app is defined to use UTF-8, hence the corruption. Sunja, Idriz wrote: > Hi guys > > Having problem with proper display of flash noti

[symfony-users] Re: [sf 1.2] Using "#" as a separator in URL or ignore it

2009-01-07 Thread Rostislav Hristov
SWFAddress can work with both Flash, Ajax or with a mixture of both. Take a look at the Ajax or the SEO sample since they contain an approach how to automatically redirect addresses like http://www.bigyouth.fr/contact/ to http://www.bigyouth.fr/#/contact/. The code may cause conflicts with Symph

[symfony-users] Change the options

2009-01-07 Thread angy
Hi, I am new to symfony and I have a problem which I haven't been able to solve. I definited two MySQL table RANGE_EXPERIENCE ( ID_RANGE_EXPERIENCE, DESCR_RANGE) and EXPERIENCE ( ID_EXPERIENCE, ID_RANGE_EXPERENCE, DESCR_EXPERIENCE) . In the web page I defined two drop-down lists http://grou

[symfony-users] Flash notice doesn't display

2009-01-07 Thread Sunja, Idriz
Hi guys Having problem with proper display of flash notice messages in a template. in action.class.php: ... $this->getUser()->setFlash('notice', 'Foo message'); $this->redirect('registration/thankyou'); .. in thankyouSuccess.php hasFlash('notice')): ?> Message: getFlash('notice') ?> After

[symfony-users] A doubt in routing...

2009-01-07 Thread Sumedh
Hi Friends, I am using Symfony 1.0... I want to create one routing rule that allows me to handle following 3 types of URL's www.example.com/Pune www.example.com/Pune/ www.example.com/Pune.html in exactly the same way... I tried /Pune* but doesn't work... How can I use regular expression patt

[symfony-users] Re: Symfony CLI out of memory error??

2009-01-07 Thread cnlklin...@gmail.com
Thanks guys, but increasing memory_limit (as high as 256M) for the cli didn't help (I also verfied the memory_limit setting by running phpinfo () from the cli). Please note from my original post that the error is happening on a request for 7.6KB with as little as 3.5MB already allocated. Far bel

[symfony-users] Re: A doubt in routing...

2009-01-07 Thread Ant Cunningham
something like: pune_all: url: /:mytoken param: {module: mymod, action: myaction} requirements: {mytoken: "^pune((/)|(\.html))?$"} Check that regex... i am not a guru - but i think that should work. Sumedh wrote: > Hi Friends, > > I am using Symfony 1.0... > > I want to create one

[symfony-users] Re: Setting the label for fields inside a i18n embedded form

2009-01-07 Thread Crafty_Shadow
You generally would want to do something like: in the main form class: $this->embendI18n(array('en','fr')); $this->widgetSchema->setLabel('en', 'English'); $this->widgetSchema->setLabel('fr', 'French'); then in the i18n form class: $this->widgetSchema->setLabels(array( 'fileld_name1'=

[symfony-users] Calendar widget with propel:generate-admin

2009-01-07 Thread Daniele
I am sorry for the question, but I have not very clear ideas about the configuration of the new admin generator. >From generator.yml, can I activate any calendar widget (in form and filter) for datetime field in module created with propel:generate- admin with admin generator? thanks in advance! -

[symfony-users] Validation of PNG images sf 1.2

2009-01-07 Thread m-naw
Hello, i have a problem with sfFileValidator in symfony 1.2. I did a standard file upload. It works perfectly on localhost. Mime_types are PNG, X- PNG, JPEG, GIF. I can upload PNG image on localhost but on application loaded on host I cant, its return mime_types error message. There is no problem

[symfony-users] Re: [symfony-users]

2009-01-07 Thread Lee Bolding
sounds like some form of wizard functionality... If it is, take a look at the sfEzcWorkflowPlugin I've made wizard-like behavior forms with Symfony before using a mixture of custom validators and javascript, but I think there really needs to be some kind of simple way to build wizards. Also

[symfony-users] Re: [symfony-users]

2009-01-07 Thread Sid Bachtiar
Hard to say without knowing more about the problem. One thumb rule is if the 3 steps are radically different from one another, you should separate them into 3 actions. One big action that does too much, too long, and too complex is simply not good. On Wed, Jan 7, 2009 at 5:51 PM, Patrick Fong w

[symfony-users] Re: jobeet tutorial in pdf

2009-01-07 Thread themire
Would be great to have the book in PDF too! Does it exist? On Jan 6, 3:21 pm, halfer wrote: > Could anyone wanting to participate in this idea post a message on the > forum, to avoid duplication of effort. An English PDF has already been > created for Jobeet, but as per my comments there, some i

[symfony-users]

2009-01-07 Thread Patrick Fong
hey all, I have a question that isn't really symfony specific but more about applications design. My question is, if I have a process that has say 3 steps, should I separate those 3 steps into difference actions or use one action with different functions ? I'm not sure which would be the

[symfony-users] Re: Login redirection trick?

2009-01-07 Thread Aditya
Hi, As far as my understanding goes the request is forwarded (and not redirected) to access/login action if an unauthenticated request hits a secure page. In our application the login action checks for the username and password in the request if not set display the login form else perform the log

[symfony-users] Re: Symfony CLI out of memory error??

2009-01-07 Thread Daniel González
2009/1/6 cnlklin...@gmail.com : > > Greetings everyone, > > I am trying to deploy my Symfony project to a shared host and I'm > getting the following error when I try to do a "symfony propel-build- > all" from the command line: > > PHP Fatal error: Out of memory (allocated 3407872) (tried to allo

[symfony-users] Re: Symfony CLI out of memory error??

2009-01-07 Thread Cezar708
Hi John, I had similar a problem in the past. So I changed php.ini memory_limit setting for CLI (I've got an Ubuntu linux file is located in /etc/php5/cli/php.ini not in /etc/php5/ apache2/php.ini). Important: please notice that php.ini for cli is different from php.ini for apache! The problem

[symfony-users] Re: Synfony with smarty

2009-01-07 Thread Jesse
In the plugins config directory there is a file settings.yml this file MUST BE all: smarty: helpers: [SmartyEscaping, SmartyJavascript, SmartyTag] this should NOT be changed. Your applications settings.yml should also have a minimum set of helpers standard_helpers: [Partial, Cach

[symfony-users] Re: [sf 1.2] Using "#" as a separator in URL or ignore it

2009-01-07 Thread Sylvain - Com-Océan
True, I thought it is was possible to get the full url (with anchors) on server like this website which present different content according to anchors : http://www.bigyouth.fr/#/Presentation/ http://www.bigyouth.fr/#/Contact/ But maybe it use javascript to get the full url and deal with it, I

[symfony-users] Re: [sf 1.2] Using "#" as a separator in URL or ignore it

2009-01-07 Thread Bert-Jan
# may not be a very good idea.. probably the problem isn't with symfony but with the browser, since # is used to jump to an anchor on a page ( in index.php can be linked to with click). The page is loaded normally and the browser jumps to the jumphere-anchor, if it exists. The data after # is prob

[symfony-users] [sf 1.2] Using "#" as a separator in URL or ignore it

2009-01-07 Thread Sylvain - Com-Océan
Hi, I use "swfAddress" in a project then I want to have url like : - http://www.com-ocean.com/#/about - http://www.com-ocean.com/#/web - http://www.com-ocean.com/#/contact etc. I try several rules like > contact: > url: "/#/contact" > param: { module: default, action: contact} > opti

[symfony-users] Re: jobeet tutorial in pdf

2009-01-07 Thread Fabien Potencier
An official PDF version will be available in the comings days/weeks. -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 halfer wrote: > Could anyone wanting to participate in this idea post a message on the > fo

[symfony-users] Re: new-to-me oop concepts in symfony

2009-01-07 Thread nchambr...@mtpi.fr
I'm not sure that this is a particular "style". In fact, "method-chaining" is when you make a method returning $this, then you can "chain" call on the same object. Here it's just the fact that we don't have to assign a return value to use it, as you can call "count(get_array())" there is no reason

[symfony-users] Re: Validating rich text?

2009-01-07 Thread Nicolas Perriault
On Wed, Jan 7, 2009 at 9:54 AM, Peter Bowyer wrote: > Thanks Brian, I created one in about 5 minutes using HtmLawed as it > was smaller than HTML_Purifier, but I will swap at some point as I'm > not sure how trustworthy its cleaning is (haven't run/written any > tests, but it's not as widely kno

[symfony-users] Re: Login redirection trick?

2009-01-07 Thread Peter Bowyer
At 00:46 07/01/2009, Lee Bolding wrote: >However, it's recommended you don't - keep the table lean and mean to >keep it fast, and also to maintain the standard behavior so that >somebody other than yourself can easily maintain the code. There's a >lot of noise about two separate tables, but realis

[symfony-users] Re: Symfony CLI out of memory error??

2009-01-07 Thread Jérôme TEXIER
Hi, Although you think your memory_limit parameter is ok, you should try to increase it on PHP CLI config file. PHP has 2 php.ini file: one for Apache, one for command line interpreter (CLI). Running symfony tasks rely on CLI php.ini file, usually found on /etc/ php5/cli/php.ini (on Ubuntu/Debian

[symfony-users] Re: Validating rich text?

2009-01-07 Thread Peter Bowyer
At 20:45 06/01/2009, you wrote: >I don't know of any validator included with symfony that does that, >but it wouldn't be hard to create your own in conjunction with the >HTML Purifier. Thanks Brian, I created one in about 5 minutes using HtmLawed as it was smaller than HTML_Purifier, but I wil

[symfony-users] Re: caching of a resultset object

2009-01-07 Thread Eno
On Wed, 7 Jan 2009, kusum wrote: > i am executing a query on home page.I want to cache resultset of > this query and use this on other pages.How can i do this in symfony You have to use something like memcache. -- --~--~-~--~~~---~--~~ You received this

[symfony-users] caching of a resultset object

2009-01-07 Thread kusum
Hi i am executing a query on home page.I want to cache resultset of this query and use this on other pages.How can i do this in symfony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To pos

[symfony-users] Re: Symfony on shared host

2009-01-07 Thread Ward Loockx
This looks good. Going to give it a try! Thanks! Yevgeniy A. Viktorov schreef: > The questions you asking going out of subject("Development on shared > host" would fit much better) and you probably might be interested to > look for some deployment approaches. > > Anyway there is nothing stop you