从博主上传图片并在 Symfony 1.4 创建的博客上显示它们
我用 Symfony 1.4(ORM:Doctrine) 创建了一个博客应用程序。 博主只能通过后端写博客。我还集成了 TinyMCE 以实现更好的格式化。
我的问题是特定博主如何将图像上传到他的博客,即他可以保存特定帖子(后端)的图片,并且当查看者/用户(前端)访问该帖子时......图像是在帖子本身旁边?
不用说我是新手......所以请指导我:)!
I have created a blog application with Symfony 1.4(ORM:Doctrine).
Bloggers can blog via backend only.I have also integrated TinyMCE for better formatting.
My question is how can a specific blogger upload image(s) to his blog,i.e., he can save the pic for a particular post (backend)and when the post is accessed by Viewers/Users(frontend)...the image is there alongside the post itself ??
Needless to say am a newbie...so please guide me :) !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以只是为了确保我理解你的问题
您希望博主能够上传图片,然后在帖子中的前端显示该图片吗?
您需要在您的架构、帖子表(widgetFormInputFile)中创建一个新的字段照片,以便在前端访问它
So just to be sure I understand your question
You want the blogger to be able to upload a picture, and then display this picture in your frontend along the post ?
You need to create a new field photo in your schema, in your post table, (a widgetFormInputFile) in order to then access it in your frontend