Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Multilingual Site: Problem with ArticleHolder page
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Multilingual Site: Problem with ArticleHolder page | 208 Views |
-
Multilingual Site: Problem with ArticleHolder page

16 September 2008 at 11:13pm
When i try to do a translation for the ArticleHolder page from the tutorial i get this error:
Call to a member function getAllFields() on a non-object in wegebrot/sapphire/core/model/Translatable.php on line 588My main language is english. The second one is german.
Can anybody help me?
Here is my ArticleHolder.php (also attached as a file to this post):
<?php
/**
* Defines the ArticleHolder page type
*/
class ArticleHolder extends Page {
static $db = array(
);
static $has_one = array(
);static $allowed_children = array('ArticlePage');
static $icon = "mysite/images/treeicons/news";
}class ArticleHolder_Controller extends Page_Controller {
function init() {
RSSFeed::linkToFeed($this->Link() . "rss");
parent::init();
}
function rss() {
$rss = new RSSFeed($this->Children(), $this->Link(), "The coolest news around");
$rss->outputToBrowser();
}
}?>
| 208 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: JoshuaLewis, NickJacobs
Welcome to our latest member: marcusl

