I am creating a web application using Symfony 1.4 and Doctrine for a school and I am a very ordinary Curriculum for a student wanting to add the form
The main problem I have is that I want to show only those courses in the drop down list where the student is not currently nominated.
I already have a function in the model (student.clays.fpp) which returns to all the courses in which the student is not enrolled but the problem is that I do not know that the student How to pass the configured form () I've tried several options like it has to give the constructor of the form to a global variable or a special set method, but none of them does not do.
Is any student configured () method?
Thank you!
This should work for you ...
Your Action In: $ this- & gt; Form = new student-student form (array), array ('student_id' = & gt; $ student_id)); In the form category: $ this- & gt; GetOption ('student_id');
Comments
Post a Comment