Thank You Daniel Latter
2009/1/28 Daniel Latter <[email protected]>: > ok, Ive just put together a quick test and I couldn't replicate the > issues you are having, here is what I have, and did: > > Step 1: > > my /public/.htaccess file looks like: (yours will be public_html/.htaccess) > > # Rewrite rules for Zend Framework > RewriteEngine on > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule .* index.php > > Step 2: > > In my bootstrap (index.php) file I add the Zend_Dojo helper path using: > > // set up dojo > $view = Zend_Layout::getMvcInstance()->getView(); > $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); > > Step 3: > > I have a created a controller called ContactController.php. (name > doesn't matter) > > Step 4: > > In this controller I have an action called lightbox: > > function lightboxAction() { > // we need the Lightbox.css file > > $this->view->headLink()->appendStylesheet('/zf-tutorial/public/js/dojox/image/resources/Lightbox.css'); > // your path will obviously be different and will probably be > something like /public_html/js/dojox/image/resources/Lightbox.css > } > > Step 5: > > In the view script for the lightboxAction > (views/scripts/lightbox.phtml) I have the following: > > <?php // setup required dojo elements: > $this->dojo()->enable() > ->setDjConfigOption('parseOnLoad', true) > ->requireModule("dojo.parser") > ->requireModule("dojox.image.Lightbox") > ->addOnLoad('initLightbox'); // this comes into play in the next > step. > ?> > <ul class="thumbs"> > <li> > <a id="68" href="/galery/picture/id/68"> > <img width="100" height="67" > src="/zf-tutorial/public/images/arrow_anim.gif" alt="56 x 42 cm" > /></a> > </li> > > The above html adds a thumbnail of an image, and once clicked will > launch a lightbox > > Step 6: > > I am using Zend_Layout so in my layout.phtml file, in the <HEAD> > section of the file I put (in this order): > > <script type="text/javascript"> > var initLightbox = function(){ > dojo.query(".thumbs li a").forEach(function(node, index, arr){ > var lb = new dojox.image.Lightbox({title:"A Test", > group:"group2", > href:"/zf-tutorial/public/images/arrow_anim.gif" > ,style:'padding:40px;'}); > lb.startup(); > dojo.connect(node,'onclick',function(e){ > e.preventDefault(); > lb.show(); > }); > }); > } > </script> > > <?php if ($this->dojo()->isEnabled()){ > $this->dojo()->setLocalPath('/zf-tutorial/public/js/dojo/dojo.js') > ->addStyleSheetModule('dijit.themes.tundra'); > echo $this->dojo(); > } > ?> > > The initLightbox function adds the click handler to the thumbnail > images to launch the lighbox. > > This example works fine for me and if you cant get any pointers from > the steps above let me know and Ill send you the code to try for > yourself. > > BTW: my folder structure looks like: > > /application > /config > /library > /public > /css > /images > /js > /digit > /dojo > /dojox > .htaccess > > Also, notice how i use the absolute paths for dojo resources above. > > Well I hope this works for you! > > > 2009/1/28 Dele <[email protected]> >> >> Thanks I just posted it to the forum as an image insert. >> >> >> >> Here is it for you : >> >> >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> >> Sent: Wednesday, January 28, 2009 3:52 PM >> To: Dele >> Subject: Re: [fw-general] Some widget issues >> >> >> >> can you post your dir structure? >> >> Thank You >> Daniel Latter >> >> 2009/1/28 Dele <[email protected]> >> >> Same story ;) not showing still >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Wednesday, January 28, 2009 3:48 PM >> >> To: Dele >> Subject: Re: [fw-general] Some widget issues >> >> >> >> Also just to check, replace your current (root): >> >> >> >> public/.htaccess >> >> >> >> contents with: >> >> >> >> RewriteEngine on >> RewriteCond %{REQUEST_FILENAME} !-f >> RewriteRule .* index.php >> >> >> >> see what that does >> >> Thank You >> Daniel Latter >> >> 2009/1/28 Daniel Latter <[email protected]> >> >> Hi, >> >> >> >> Second thoughts I dont think you need that If your .htaccess file is as >> Matthew stated initially, can you post your directory structure? maybe that >> may shed some light. >> >> Thank You >> Daniel Latter >> >> 2009/1/28 Dele <[email protected]> >> >> Thanks Daniel. Do I add it to the .htaccess on my root or the one I created >> on my images folder? Adding it to the root blocks out my stylesheet, images >> and js >> >> >> >> Thanks again for all your help >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Wednesday, January 28, 2009 1:52 PM >> >> To: Dele >> Subject: Re: [fw-general] Some widget issues >> >> >> >> Hi, >> >> >> >> Try adding the following line to your .htaccess: >> >> >> >> RewriteCond %{REQUEST_FILENAME} !-f >> >> >> >> Thank You >> Daniel Latter >> >> 2009/1/28 Dele <[email protected]> >> >> HI Daniel, >> >> >> >> Using absolute URLs for those widget images in the stylesheet was same as >> using relative URls. They still don't show up on those Urls with parameters. >> >> >> >> Any more help? I will deeply appreciate it. >> >> >> >> Thanks >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Tuesday, January 27, 2009 10:21 PM >> >> To: Dele >> Subject: Re: [fw-general] Some widget issues >> >> >> >> ok then, a quick fix would be to use absolute urls in your stylesheet to >> reference the images. >> >> >> >> eg: http://domain/images/animage.gif >> >> >> >> Thank You >> Daniel Latter >> >> 2009/1/27 Dele <[email protected]> >> >> Thanks for the clarification. I added the .htaccess file as suggested to the >> images folder that houses the tundra theme assets. As well as the folder >> that house the css style. No effect. Widget images still not showing >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Tuesday, January 27, 2009 10:03 PM >> >> To: Dele >> Subject: Re: [fw-general] Some widget issues >> >> >> >> Sorry, you need to keep your original .htaccess file, create a new one with >> the contents: >> >> >> >> RewriteEngine off >> >> >> >> Then put this additional .htaccess file in your css and/or images folder. >> >> >> >> HTH >> >> >> >> >> 2009/1/27 Dele <[email protected]> >> >> Error 404 - Object not found error is what I received. I appreciate all your >> help. I simply replaced the contents of the .htaccess file with >> RewriteEngine off >> >> >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Tuesday, January 27, 2009 9:56 PM >> To: Dele >> >> Subject: Re: [fw-general] Some widget issues >> >> >> >> just drop a .htaccess file with >> >> >> >> RewriteEngine off >> >> >> >> as the contents of the .htaccess file and see if that works. >> >> Thank You >> Daniel Latter >> >> 2009/1/27 Dele <[email protected]> >> >> Thanks Daniel. I am not that conversant with mod_rewrite rules. How do I >> write the rule to ignore one folder. I have tried a couple of stuffs but am >> not getting it right. Here is my .htaccess file >> >> >> >> RewriteEngine On >> >> RewriteCond %{REQUEST_FILENAME} -s [OR] >> >> RewriteCond %{REQUEST_FILENAME} -l [OR] >> >> RewriteCond %{REQUEST_FILENAME} -d >> >> RewriteRule ^.*$ - [NC,L] >> >> RewriteRule ^.*$ index.php [NC,L] >> >> >> >> Thanks >> >> >> >> Regards >> >> >> >> Dele >> >> >> >> (C) 071 673 4130 (E) [email protected] (S) dee454 >> >> >> >> "Start by doing what's necessary; then do what's possible; and suddenly you >> are doing the impossible. "- St. Francis of Assisi. >> >> Disclaimer: This email and any files transmitted with it are confidential >> and intended solely for the use of the individual or entity to whom they are >> addressed. If you have received this email in error please notify the system >> manager. This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately by e-mail if you have received this e-mail by mistake and delete >> this e-mail from your system. If you are not the intended recipient you are >> notified that disclosing, copying, distributing or taking any action in >> reliance on the contents of this information is strictly prohibited. >> >> >> >> From: Daniel Latter [mailto:[email protected]] >> Sent: Tuesday, January 27, 2009 8:59 PM >> To: dele454 >> Cc: [email protected] >> Subject: Re: [fw-general] Some widget issues >> >> >> >> hi, >> >> >> >> try turning off mod_rewite for images folder?: >> >> >> >> RewriteEngine off >> >> Thank You >> Daniel Latter >> >> 2009/1/27 dele454 <[email protected]> >> >> Thanks for the feedback Matthew. That is exactly how my rewrite look like >> line for line. Not working still. Any other possible leads? >> >> Thanks >> >> ----- >> dee >> -- >> View this message in context: >> http://www.nabble.com/Some-widget-issues-tp21686243p21691624.html >> >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >> >> >> >> Internal Virus Database is out of date. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.10.4/1880 - Release Date: 1/7/2009 >> 8:49 AM >
