I get this message in the SF dev log:
"The sfLoader::loadHelpers() method is deprecated. Please use the same
method from sfApplicationConfiguration."
This is my actions.class.php:
public function executeNew(sfWebRequest $oRequest){
sfLoader::loadHelpers('Url');
$oForm = new ArticleForm();
if($oRequest->isMethod('post')){
$oForm->bind($oRequest->getParameter($oForm->getName()), $oRequest-
>getFiles($oForm->getName()));
if($oForm->isValid()){
$oArticle = $oForm->save();
$oNewsItem = new NewsItem();
$oNewsItem->setContent(sprintf(sfConfig::get
('app_article_news_item_message'), $oArticle->getTitle(), url_for
('article/show?id=' . $oArticle->getId())));
$oNewsItem->save();
$this->redirect('article/show?id=' .
$oArticle->getId());
}
}
$this->form = $oForm;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---