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.
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
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
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