[英]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. 我已经使用symfony几个星期了,我正在使用在线帮助,但“Symfony的明确指南”似乎已经过时了。 For example, I want to use the form helper function like the select_tag() function or the ajax form_remote_tag() function. 例如,我想使用表单助手函数,如select_tag()函数或ajax form_remote_tag()函数。 However, these dont seem to exist anymore and I can only find their names in the deprecatedhelpers file. 但是,这些似乎不再存在,我只能在deprecatedhelpers文件中找到它们的名字。 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? 或者是否有更新的名称,我可以在最新版本的symfony中使用?
Thanks! 谢谢!
There's no "Definitive Guide to symfony" in "documentation" section since 1.3/1.4 release. 自1.3 / 1.4发布以来,“文档”部分中没有“symfony权威指南”。 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. 如果你是新手,你应该使用Practical symfony , symfony Reference Book and More with symfony作为指南。
Next. 下一个。 You shouldn't use select_tag()
— use symfony forms instead. 你不应该使用select_tag()
- 而是使用symfony表单。
And finally, form_remote_tag()
resides in sfProtoculous
plugin. 最后, form_remote_tag()
驻留在sfProtoculous
插件中。 Just enable him in config/ProjectConfiguration.class.php
(method setup()
): 只需在config/ProjectConfiguration.class.php
(方法setup()
)中启用它:
<?php
// ...skipped...
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
// ...skip...
$this->enablePlugins(array('sfProtoculousPlugin'));
// ...skip...
}
et voilà! etvoilà!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.