Re: PHPDoc Images.

From: Date: Thu, 19 Feb 2009 11:05:47 +0000
Subject: Re: PHPDoc Images.
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969380187@lists.php.net to get a copy of this message
2009/2/19 Richard Quadling <rquadling@googlemail.com>: > 2009/2/19 Christian Weiske <cweiske@cweiske.de>: >> Hello Richard, >> >> >>> But currently the images are not copied. >> It does copy it on my machine, so there must be a tiny bug somewhere. >> >>> I think the issue is that the media manager knows the fileref value, >>> but not where the relative source is. >> >>> It seems that the line in postConstruct ... >>> $this->mediamanager->relative_path = >>> basename($this->mediamanager->output_dir) . '/'; >>> is not right. >>> I think this should be something like ... >>> $this->mediamanager->relative_path = $OPTIONS["xml_root"] . >>> '/'; >> >> No. The relative path in mediamanager is a prefix for images that get >> linked in the generated html files. The prefix is theme-specific, e.g. >> images/ for a php or chunkedhtml build, or $outputfilename-data/images >> for bightml builds. >> >> The code you mentioned in PhDThemeXhtml makes this happen for bightml >> files. I'll have a look into it why it does not work for you; it does >> for me. One difference could be that I do it in the phpdoc/pear-doc >> working directory, and you perhaps in phd's. >> >> -- >> Regards/Mit freundlichen Grüßen >> Christian Weiske >> >> -= Geeking around in the name of science since 1982 =- >> > > All the checkouts are on my D: drive. I use full paths for all the > settings as I don't need to change directory. > > That is why I thought that the xml root needs to be supplied to the > media manager as the directory the script is executed from has no > bearing on where the files are. > > > I've amended my script to change location so that the cwd is the xml root.. > > This is not currently required for phd. > > So, maybe a $cwd = cwd($OPTIONS['xmlroot']) on the way in and a > cwd($cwd) on the way out of the build.php would work. > > OOI. The images aren't copied on http://docs.php.net/readfile*)òiû, > f¥ÒÖMæÐ (for example). > > Which suggests the same issue as I'm having. > > Richard. > -- > ----- > Richard Quadling > Zend Certified Engineer : > http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" > And of course I meant ... $cur = getwd(); chdir($OPTIONS['xmlroot']); and chdir($cur); (No one saw that did they?) -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

« previous php.doc (#969380187) next »