Re: [fw-general] Some widget issues

2009-02-24 Thread dele454

I AM GLAD TO SAY I HAVE FINALLY SORTED THIS LINGERING ISSUE OUT!!

What i basically did was a combination of what Rob suggested and some
changes on my side. What i did is to change add baseUrl() to all my assets
links (css+ images etc) and changed the layout script for those pages
behaving badly from to layout_site.phtml. So instead of me using 3+4 layout
scripts i will be using just one. as long as i add the baseUrl() view helper
all the control show for the Lightbox irrespective of whether the url takes
parameters or not.

Thanks you Matthew and Thanks Rob for all your help thus far. The thread can
now REST IN PEACE :)


-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22190076.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-23 Thread dele454

I have added the baseUrl() view helper to my layout +view scripts but still
having the issue. Any help out there still?

-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22157586.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-22 Thread dele454

Hi All,

I have looked into this issue again and i dont think it has anything to do
with any apache directive or so. I think i has to do with the path dojo is
in relation to my innner pages. I mean it shows perfectly on pages with no
parameters attached to the URL but the moment you hit a page like:
www.mydomain/event/id/4 - then you see the image above. 

And this goes on with any tooltips, dialog windows etc that  insert images
via the dijit.css. I mean look at the view below on the dialog too. It
completely looses the title tab and the 

http://www.nabble.com/file/p22146376/dialog2.gif 

and should like:

http://www.nabble.com/file/p22146376/dialog.gif 

I have tried moving the images from the dijit.css file to my images folder
and then reference those images to my folder but not working either.

Has anyone had issues like that - there has to be a way out of this nagging
issue.


Please any help will be appreciated. Thanks

-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22146376.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-22 Thread Matthew Weier O'Phinney
-- dele454 d...@killerinstinct.co.za wrote
(on Sunday, 22 February 2009, 04:43 AM -0800):
 I have looked into this issue again and i dont think it has anything to do
 with any apache directive or so. I think i has to do with the path dojo is
 in relation to my innner pages. I mean it shows perfectly on pages with no
 parameters attached to the URL but the moment you hit a page like:
 www.mydomain/event/id/4 - then you see the image above. 

Could you show how  you're configuring the dojo() view helper, and, in
particular, how you're specifying the path to the local dojo? 

My suspicion is that you're doing something like this:

$view-dojo()-setLocalPath('js/dojo/dojo.js');

which will lead to issues, as it will then look for dojo relative to the
current URL. The path should always be absolute from the document root:

$view-dojo()-setLocalPath('/js/dojo/dojo.js');

 And this goes on with any tooltips, dialog windows etc that  insert images
 via the dijit.css. I mean look at the view below on the dialog too. It
 completely looses the title tab and the 
 
 http://www.nabble.com/file/p22146376/dialog2.gif 
 
 and should like:
 
 http://www.nabble.com/file/p22146376/dialog.gif 
 
 I have tried moving the images from the dijit.css file to my images folder
 and then reference those images to my folder but not working either.
 
 Has anyone had issues like that - there has to be a way out of this nagging
 issue.
 
 
 Please any help will be appreciated. Thanks

-- 
Matthew Weier O'Phinney
Software Architect   | matt...@zend.com
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Some widget issues

2009-02-22 Thread dele454

Thanks Matthew. This is how i am declaring dojo helper in my layout script:
[code]

? if ($this-dojo()-isEnabled()){

   
$this-dojo()-setLocalPath('/js/dojo/dojo.js')
  
-addStyleSheetModule('dijit.themes.tundra');
echo $this-dojo();
 }
   ?

And in my bootstrap:

   $view = new Zend_View;

$view-setEncoding('UTF-8');
$viewRenderer = new
Zend_Controller_Action_Helper_ViewRenderer($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
Zend_Dojo::enableView($view); 

[/code]

Thanks i will really appreciate any help that can make me put this behind me
:) thanks



Matthew Weier O'Phinney-3 wrote:
 
 -- dele454 d...@killerinstinct.co.za wrote
 (on Sunday, 22 February 2009, 04:43 AM -0800):
 I have looked into this issue again and i dont think it has anything to
 do
 with any apache directive or so. I think i has to do with the path dojo
 is
 in relation to my innner pages. I mean it shows perfectly on pages with
 no
 parameters attached to the URL but the moment you hit a page like:
 www.mydomain/event/id/4 - then you see the image above. 
 
 Could you show how  you're configuring the dojo() view helper, and, in
 particular, how you're specifying the path to the local dojo? 
 
 My suspicion is that you're doing something like this:
 
 $view-dojo()-setLocalPath('js/dojo/dojo.js');
 
 which will lead to issues, as it will then look for dojo relative to the
 current URL. The path should always be absolute from the document root:
 
 $view-dojo()-setLocalPath('/js/dojo/dojo.js');
 
 And this goes on with any tooltips, dialog windows etc that  insert
 images
 via the dijit.css. I mean look at the view below on the dialog too. It
 completely looses the title tab and the 
 
 http://www.nabble.com/file/p22146376/dialog2.gif 
 
 and should like:
 
 http://www.nabble.com/file/p22146376/dialog.gif 
 
 I have tried moving the images from the dijit.css file to my images
 folder
 and then reference those images to my folder but not working either.
 
 Has anyone had issues like that - there has to be a way out of this
 nagging
 issue.
 
 
 Please any help will be appreciated. Thanks
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | matt...@zend.com
 Zend Framework   | http://framework.zend.com/
 
 


-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22148755.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-22 Thread dele454

Maybe this might also help.

Another point to mention here is that i have 3 layout scripts for my site:

 - layout-site.phtml
 - layout-site-view.phtml
 - layout-site-view-l2.phtml

Now pages like www.mydomain.com/events/browse - use the layout-site.phtml

But i  couldnt use the same layout script(layout-site.phtml) for those urls
with parameters because the css+images dont show up. 

so i needed another layout script that could reference those assets
differently hence the layout-site-view.phtml for URLs with parameters like 
www.mydomain.com/events/details/id/34. If the page takes two parameters then
layout-site-view-l2.phtml comes into play.


In referencing my css file in for e.g the layout-site.phtml file the link
ref would look like:

link href=../../css/venues_content.css media=screen rel=stylesheet
type=text/css /



but for layout-site-view.phtml -

link href=../../../css/venues_content.css media=screen rel=stylesheet
type=text/css /

I just thinking maybe the referencing of dojo also needs to change on
layout-site-view.phtml like that of the css file since the pages are more
inner and not on the 'root' per say?

Just mentioning this may be it provides some sort of leads.

Thanks


-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22149060.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-22 Thread Rob Allen

On 22/02/2009 17:13, dele454 wrote:


link href=../../css/venues_content.css media=screen rel=stylesheet
type=text/css /

but for layout-site-view.phtml -

link href=../../../css/venues_content.css media=screen rel=stylesheet
type=text/css /



Consider using the baseUrl property from the Request object.

Create a view helper in your views/helpers folder:

?php
class Zend_View_Helper_BaseUrl
{
public function baseUrl()
{
return Zend_Controller_Front::getInstance()-getBaseUrl();
}
}


Then in your layouts and view scripts you can do:

link href=?php echo $this-baseUrl();?/css/venues_content.css 
media=screen rel=stylesheet type=text/css /


Similarly with Dojo:
$this-dojo()-setLocalPath($this-baseUrl();?.'/js/dojo/dojo.js')

Regards,

Rob...


Re: [fw-general] Some widget issues

2009-02-22 Thread dele454

Thanks Rob, I do have the baseUrl() view helper in place but am into the
habit of just doing it the html way ;). I will change it as suggested and
give it a try to see if it will work as per the widget issues i am having.

Thanks i'll let you know the outcome. ;)

-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p22156755.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-02-12 Thread dele454

Hi,

Sorry I am only responding to this now. I have been out of town for a while.
My structure looks pretty much the same. I tried changing my .htaccess file
to yours but still the problem persists. I have also tried adding the
absolute paths of my images in the css file but no luck there too.

There should be a solution to this! Isn’t it?

Thanks please I will appreciate any more help concerning this issue.

Thanks once again for the help.


-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p21987716.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-01-30 Thread Chris Weldon
I posted something in response to an SSL redirect question a couple of
days ago. My .htaccess file should accomodate css, js, and img out of
the box when your public folder structure looks like:

/cs
/img
/js
index.php
...

.htaccess:

RewriteEngine On
RewriteRule ^.*/css/(.*)$ css/$1
RewriteRule ^.*/images/(.*)$ images/$1
RewriteRule ^.*/js/(.*)$ js/$1
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

Again, this will reroute any request for css, images, or javascript to
the css, js, and img folder relative to where .htaccess is regardless
of how many parameters or how deep your URI goes. Cheers.
--
Chris Weldon

On Tue, Jan 27, 2009 at 12:41 PM, dele454 d...@killerinstinct.co.za wrote:

 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.





-- 
Christopher Weldon
http://chrisweldon.net
ch...@chrisweldon.net


Re: [fw-general] Some widget issues

2009-01-28 Thread Daniel Latter
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 d...@killerinstinct.co.za

  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)** d...@killerinstinct.co.za  **(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:dan.lat...@gmail.com]
 *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 d...@killerinstinct.co.za

 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)** d...@killerinstinct.co.za  **(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:dan.lat...@gmail.com]
 *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 d...@killerinstinct.co.za

 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)** d...@killerinstinct.co.za  **(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:dan.lat...@gmail.com]
 *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 d...@killerinstinct.co.za

Re: [fw-general] Some widget issues

2009-01-28 Thread dele454

http://www.nabble.com/file/p21706098/struc.gif 

-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p21706098.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-01-28 Thread Daniel Latter
Thank You
Daniel Latter



2009/1/28 Daniel Latter dan.lat...@gmail.com:
 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 d...@killerinstinct.co.za

 Thanks I just posted it to the forum as an image insert.



 Here is it for you :





 Regards



 Dele



 (C) 071 673 4130  (E) d...@killerinstinct.co.za  (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:dan.lat...@gmail.com]

 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 d...@killerinstinct.co.za

 Same story ;) not showing still



 Regards



 Dele



 (C) 071 673 4130  (E) d...@killerinstinct.co.za  (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

[fw-general] Some widget issues

2009-01-27 Thread dele454

hi,

I just noticed that bg images, bg colours set in the tundra theme stylesheet
(tundra.css) dont apply to some of my pages especially pages whose URLs
require parameters like 

www.mydomain.com/event/details/144.

For the lightbox widget:

 - the controls dont show but shows on pages like www.mydomain.com/event

For tooltips:

- the background colour and connecting arrow dont show up. How can i resolve
this issue? 
This is how it should show
http://www.nabble.com/file/p21686243/2.gif 

This is how it is showing on pages that accept parameters:
http://www.nabble.com/file/p21686243/1.gif 

Thanks please help is needed


-
dee
-- 
View this message in context: 
http://www.nabble.com/Some-widget-issues-tp21686243p21686243.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Some widget issues

2009-01-27 Thread Matthew Weier O'Phinney
-- dele454 d...@killerinstinct.co.za wrote
(on Tuesday, 27 January 2009, 06:22 AM -0800):
 I just noticed that bg images, bg colours set in the tundra theme stylesheet
 (tundra.css) dont apply to some of my pages especially pages whose URLs
 require parameters like 
 
 www.mydomain.com/event/details/144.
 
 For the lightbox widget:
 
  - the controls dont show but shows on pages like www.mydomain.com/event
 
 For tooltips:
 
 - the background colour and connecting arrow dont show up. How can i resolve
 this issue? 
 This is how it should show
 http://www.nabble.com/file/p21686243/2.gif 
 
 This is how it is showing on pages that accept parameters:
 http://www.nabble.com/file/p21686243/1.gif 
 
 Thanks please help is needed

My guess is that you've got a bad rewrite rule in place. Make sure it
looks like this:

# Rewrite Rules
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

The old rewrite rules were not terribly flexible, and there were a
number of Dojo resources with extensions not in that list that simply
could not be loaded as a result.

-- 
Matthew Weier O'Phinney
Software Architect   | matt...@zend.com
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Some widget issues

2009-01-27 Thread dele454

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.



Re: [fw-general] Some widget issues

2009-01-27 Thread Daniel Latter
hi,

try turning off mod_rewite for images folder?:

RewriteEngine off

Thank You
Daniel Latter


2009/1/27 dele454 d...@killerinstinct.co.za


 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.