Just the thought of you makes me wanna cry. My deep well of tears would probably run dry knowing you'll be gone even just for a while.
You know, you showed me just how easy love could be, how silly and painful, how fun and forgiving. You showed it with pride and very gracefully..
Everyone's gonna leave their love sometime, like seeds needs to hide beneath the soil before it shows itself to the world. Or like a butterfly who needs to indulge itself
into eternal darkness before roaming the world with it's beauty. Everyone's gotta leave their love sometime.If not now, then at the end of your lifetime.
But then, you'll be waiting at my bed I know... And your last little words will be 'i love you so'...
Wednesday, 17 June 2009
Tuesday, 16 June 2009
Add custom filters and validators on zend framework
There are a lot of ways to add a custom filter or validator in the zend workspace. Well, to make it simple, you can add specific custom filters or validators on a certain element.
Here's a simple code sets :
First : Create your filters and validators on your library.
mylib->custom->filters
mylib->custom->validators
Second : Open a certain form that will use the your custom filter or validator.
Third : Add the prefix path on the specific element that needs the said filter by :
$this->getElement('elementName')
->addPrefixPath('mylib_custom_validator', 'mylib/custom/validator/', Zend_Form_Element::VALIDATE);
->addPrefixPath('mylib_custom_filter', 'mylib/custom/filter/', Zend_Form_Element::FILTER);
Simple stuffs.. Just to be reminded.. :D
Here's a simple code sets :
First : Create your filters and validators on your library.
mylib->custom->filters
mylib->custom->validators
Second : Open a certain form that will use the your custom filter or validator.
Third : Add the prefix path on the specific element that needs the said filter by :
$this->getElement('elementName')
->addPrefixPath('mylib_custom_validator', 'mylib/custom/validator/', Zend_Form_Element::VALIDATE);
->addPrefixPath('mylib_custom_filter', 'mylib/custom/filter/', Zend_Form_Element::FILTER);
Simple stuffs.. Just to be reminded.. :D
Subscribe to:
Posts (Atom)
