2009/2/19 Richard Quadling <rquadl...@googlemail.com>:
> 2009/2/19 Christian Weiske <cwei...@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 (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!"

Reply via email to