开发者

Symfony Deprecated Function

I have been using symfony for a few weeks now and I am using the online help a lot but the "Definite Guide To Symfony" seems to be very outdated. For example, I want to u开发者_开发问答se the form helper function like the select_tag() function or the ajax form_remote_tag() function. However, these dont seem to exist anymore and I can only find their names in the deprecatedhelpers file. Does anyone know how I can use these functions? or are there updated names for these that I can use in the newest version of symfony?

Thanks!


There's no "Definitive Guide to symfony" in "documentation" section since 1.3/1.4 release. Because it really is outdated. If you are newcomer, you should use Practical symfony, The symfony Reference Book and More with symfony as a guide.

Next. You shouldn't use select_tag() — use symfony forms instead.

And finally, form_remote_tag() resides in sfProtoculous plugin. Just enable him in config/ProjectConfiguration.class.php (method setup()):

<?php
// ...skipped...
class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    // ...skip...
    $this->enablePlugins(array('sfProtoculousPlugin'));
    // ...skip...
  }

et voilà!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜