Hi,
I'm trying to develop a Date-picker element to be used in my Zend_Form-based
forms.
Here's the problem:

        $this->addDecorator('ViewScript', array(
            'viewScript' => realpath(dirname(__FILE__) .
'/jalali_date.phtml')
        ));

I can't use absolute paths here.
*Warning: Exception caught by form: script 'C:\...\jalali_date.phtml' not
found in path ...*

I just want to place these kinds of viewscripts in a separate directory, and
I don't want to mix them with the
regular Views. Is there any solution available?

Consider that the Date element is located in *
Behzad/Form/Element/DatePicker.php*, I want
to put the viewscript decorator  in: *
Behzad/Form/Element/viewscripts/DatePicker.phtml*
How can i achieve this?

-- 
Thank you in advance,
-behzad

Reply via email to