problem with setting the Gallery's and template directory programmatically

  •  06-18-2011, 4:44 AM

    problem with setting the Gallery's and template directory programmatically

    Hello all,
     
    I'm currently busy with writing a Zend_Form_Element Component for using Cute Editor in a Zend Framework project.
    The editor works great without setting the images, media, flash, files and templates directory and points to the Uploads and Templates directory which i created in the root of my Virtual Host. But when i set the directory's programmatically i get the
    "The area you are attempting to access is forbidden" error message.
     
    I used the code you can see below to set the directory's that i want to use, hopefully someone knows how i can solve this problem.
    1. $ImageGalleryPath                       = '/Uploads/images';   
    2.         $FlashGalleryPath                       = '/Uploads/flash';   
    3.         $MediaGalleryPath                       = '/Uploads/media';   
    4.         $FilesGalleryPath                       = '/Uploads/files';   
    5.         $TemplateGalleryPath                    = '/templates';   
    6.   
    7.         $editor->ImageGalleryPath                =   $ImageGalleryPath;   
    8.         $editor->FlashGalleryPath                =   $FlashGalleryPath;   
    9.         $editor->MediaGalleryPath                =   $MediaGalleryPath;   
    10.         $editor->FilesGalleryPath                =   $FilesGalleryPath;   
    11.         $editor->TemplateGalleryPath         =   $TemplateGalleryPath;  

    Thanks in advance,
     
    Regards Emile
    Filed under:
View Complete Thread