sorry, i am aware of my inability to communicate of late (stress got the better of me).
with this download http://imt.carlinowebdesign.com/assets/resources.zip I was / am getting this error (taken from page 7 of this post, 2 February 2010 at 10:19pm).
(thats the error)
[Warning] file_get_contents() [function.file-get-contents]: Filename cannot be empty
GET /silverstripe-HCA/new-resourcepage/
Line 280 in C:\wamp\www\silverstripe-HCA\sapphire\core\SSViewer.php
Source
271 /**
272 * Used by <% include Identifier %> statements to get the full
273 * unparsed content of a template file.
274 *
275 * @uses getTemplateFile()
276 * @param string $identifier A template name without '.ss' extension or path.
277 * @return string content of template
278 */
279 public static function getTemplateContent($identifier) {
280 return file_get_contents(SSViewer::getTemplateFile($identifier));
281 }
282
283 /**
284 * @ignore
285 */
286 static private $flushed = false;
Trace
* file_get_contents()
Line 280 of SSViewer.php
* SSViewer::getTemplateContent(ResourceNav)
Line 2 of SSViewer.php(403) : runtime-created function
* __lambda_func(Array)
* preg_replace_callback(/<% include +([A-Za-z0-9_]+) +%>/,�lambda_5402,<!-- template C:/wamp/www/silverstripe-HCA/themes/blackcandy/templates/Layout/ResourcePage.ss --> <div id="primaryContent" class="clearfix"> <div class="innerpad"> <h2>$Title</h2> $Content <% control Resources %> <h3><img src="$Attachment.Icon" alt="" /> <a href="$Attachment.URL" title="Download $Title">$Title</a> ($Attachment.Extension, $Attachment.Size)</h3> <p>$Description</p> <% end_control %> </div> </div> <div id="secondaryContent"> <div class="innerpad"> <div id="secondarynav"> <h3>Categories</h3> <% include ResourceNav %> </div> </div> </div> <div id="sideContent"> <div class="innerpad"> </div> </div> <!-- end template C:/wamp/www/silverstripe-HCA/themes/blackcandy/templates/Layout/ResourcePage.ss -->)
Line 403 of SSViewer.php
* SSViewer::parseTemplateContent(<div id="primaryContent" class="clearfix"> <div class="innerpad"> <h2>$Title</h2> $Content <% control Resources %> <h3><img src="$Attachment.Icon" alt="" /> <a href="$Attachment.URL" title="Download $Title">$Title</a> ($Attachment.Extension, $Attachment.Size)</h3> <p>$Description</p> <% end_control %> </div> </div> <div id="secondaryContent"> <div class="innerpad"> <div id="secondarynav"> <h3>Categories</h3> <% include ResourceNav %> </div> </div> </div> <div id="sideContent"> <div class="innerpad"> </div> </div>,C:/wamp/www/silverstripe-HCA/themes/blackcandy/templates/Layout/ResourcePage.ss)
Line 324 of SSViewer.php
* SSViewer->process(ResourcePage_Controller)
Line 349 of SSViewer.php
* SSViewer->process(ResourcePage_Controller)
Line 172 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 119 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 29 of ModelAsController.php
* ModelAsController->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/new-resourcepage/)
Line 118 of main.php
and thats all it gives me. I put the 3 php files in C:\wamp\www\silverstripe-HCA\mysite\code and the .ss files in C:\wamp\www\silverstripe-HCA\themes\blackcandy\templates\Layout. it is all a standard template (i have not created any <% includes %> other than what are used in the following addons :
image_gallery
userforms
newsletter
forum
dataobject_manager
have done a fair amount of jiggery pokery with it but still not made any success with it.
thats the problem, that help?
(btw, thanks for your interest in this)