[symfony-users] Simple question...

2010-02-19 Thread Samuel Morhaim
If I have a field isActive and of course it returns 1 or 0 .. how can I change the class to return Active / Inacrive as a string, and not doing it on the view for each time i use it? Thank you. -- You received this message because you are subscribed to the Google Groups symfony users group.

Re: [symfony-users] Simple question...

2010-02-19 Thread Romain Pouclet
You could add a getStatus() method (or something like that) in your model class : public function getStatus() { return $this-isActive() ? 'Active' : 'Inactive'; } Le 19 févr. 2010 à 18:27, Samuel Morhaim a écrit : If I have a field isActive and of course it returns 1 or 0 .. how can I

[symfony-users] Simple question. Images not included.

2010-01-20 Thread Pax95
I had had older version of Symfony (1.0), there wasn't any problems with images and CSSes, until I have installed newest version (sandbox). There was only text Symfony Project Created' and no images and CSSes included. So I started googling and I found some methods how to do it but I haven't found

[symfony-users] Simple question about Unit testing in Symfony

2009-02-04 Thread SeeVik
I just started creating some unit tests in Symfony. I read that the windows command prompt won't display the color highlight red or green, neither does (cygwin, I tried that). just for the record can somebody tell me which CLI has this feature? I mean displaying the highlights. Thanks and