| Project: | ProjectPier |
| Version: | 0.8.8-alpha |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | twinkle_stars |
| Status: | closed - fixed |
Jump to:
Description
Is there any way to auto generate a code for projects using First Two letters of project name with todays month,year and
category type
No. It would need coding.
hi,
Thanks for your reply.
I need to know where to implement the code.
can you tell me a suggestion
application/models/ProjectController.php
method add()
initialize a new field with the generated projectcode
save the value to the database
application/models/project/base/BaseProject.php
add new field 'code' => STRING
add get/set method
add new field 'code' to table projects
change application/views/project where you want to display the field
hi,
I dont want to display the field "code". just the value must be passed as a hidden in form and save in database.
how to create a hidden box with the new variable
Do everything as indicated before but in view change:
input type=text name=code ...to
input type=hidden name=code...Field will be hidden in screen but still saved in database.
Hi,
Thanks For Your Reply
i completed the task by adding the hidden values into database.
could any of you please tell exactly how to do all this stuff?
i am having a hard time understanding what to do
Hi Neil, yeah, this is developer talk. Let me see if I can whip up something simple for you.