Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Bug #9250 --templatebase does not function as expected
Submitted: 2006-11-07 03:50 UTC
From: selkirk Assigned: ashnazg
Status: No Feedback Package: PhpDocumentor (version 1.3.1)
PHP Version: 5.1.2 OS: Mac OS X
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 23 - 11 = ?

 
 [2006-11-07 03:50 UTC] selkirk (Jeff Moore)
Description: ------------ --templatebase does not work as expected. Setting a directory with --templatebase makes phpDocumentor look for HTMLSmartyConverter.inc inside the --templatebase directory. If you move it there, then phpDocumentor looks for the template files inside / usr/lib/php/data instead of --templatebase, as one would expect. It seems like no possible value for --templatebase can be valid, except to omit it. (at least with the Smarty Converter.) Test script: --------------- phpdoc ... --output "HTML:Smarty:default" --templatebase /usr/lib/php/data/PhpDocumentor/phpDocumentor/Converters Expected result: ---------------- Build using the default template with the smarty converter. Actual result: -------------- ERROR: Converter HTMLSmartyConverter specified by --output command-line option is not a class ERROR: No Converters have been specified by -- output command-line option ERROR: No Converters have been specified by -- output command-line option

Comments

 [2006-11-29 22:06 UTC] ashnazg at users dot sourceforge dot net (Chuck Burgess)
If I'm reading the manual correctly (http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#using.command-line.templatebase), then the -tb value you want to pass is "/usr/lib/php/data/PhpDocumentor/phpDocumentor", without the "/Converters" subdirectory piece. Can you retry it that way and post the results?
 [2006-12-27 22:16 UTC] ashnazg at php dot net (Chuck Burgess)
This report sounds a lot like Sourceforge #1551631. I'm unable to reproduce a failure using -tb on my v1.3.1 installation. selkirk, are you able to try my suggestion from 11/29 regarding the -tb argument value you're using?
 [2006-12-28 02:54 UTC] selkirk
I will recheck in a few days.