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
Monday, 13 April 2009
magento admin log in issue
It took me awhile to figure out an issue regarding the backend part of magento. I've installed magento 1.3 on a linux ubuntu 8.10 environment. Everything went nice until the admin log in part. Well, nothing happend after logging in the admin panel. I've tried lower versions of the magento installer but without any success... I tried to read some forums and saw the answer. It was about the naming of the host. It would not work if a dot is not present. Such a very simple issue that i've learned the hard way. For example, http://magento will have an issue, so add something like http://magento.linux etc on the name for it to work properly.
Subscribe to:
Posts (Atom)
