开发者

In symfony 1.4, how can I fetch data from a text file in the 'new template' page?

开发者 https://www.devze.com 2023-01-13 14:34 出处:网络
I want to read a text file in the \'new template\' of a module, so I can retrieve a number in that file, and give it as a field at the momen开发者_JAVA百科t of saving that register.

I want to read a text file in the 'new template' of a module, so I can retrieve a number in that file, and give it as a field at the momen开发者_JAVA百科t of saving that register. As an example, in the form I have this fields:

name:
description:
number:

The number field is in the text file, and I want to retrieve it before I press the "Save" button. How could I do that? Thanks for your consideration.


I dont think you can read the file before pressing the Save button. But, you could upload the file to the server and after that process the file uploaded to save the number.

0

精彩评论

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