@@ -178,7 +178,6 @@ from a form is as simple as unsetting them:
178
178
<doctrine >
179
179
// lib/form/doctrine/JobeetJobForm.class.php
180
180
</doctrine >
181
-
182
181
class JobeetJobForm extends BaseJobeetJobForm
183
182
{
184
183
public function configure()
@@ -196,21 +195,21 @@ Instead of unsetting the fields you don't want to display, you can also
196
195
explicitly list the fields you want by using the ` useFields() ` method:
197
196
198
197
[php]
199
- <propel>
200
- // lib/form/JobeetJobForm.class.php
201
- </propel>
202
- <doctrine>
203
- // lib/form/doctrine/JobeetJobForm.class.php
204
- </doctrine>
205
- class JobeetJobForm extends BaseJobeetJobForm
206
- {
207
- public function configure()
208
- {
209
- $this->useFields(array('category_id', 'type', 'company', 'logo',
210
- ➥ 'url', 'position', 'location', 'description', 'how_to_apply',
211
- ➥ 'token', 'is_public', 'email'));
212
- }
213
- }
198
+ <propel >
199
+ // lib/form/JobeetJobForm.class.php
200
+ </propel >
201
+ <doctrine >
202
+ // lib/form/doctrine/JobeetJobForm.class.php
203
+ </doctrine >
204
+ class JobeetJobForm extends BaseJobeetJobForm
205
+ {
206
+ public function configure()
207
+ {
208
+ $this->useFields(array('category_id', 'type', 'company', 'logo',
209
+ ➥ 'url', 'position', 'location', 'description', 'how_to_apply',
210
+ ➥ 'token', 'is_public', 'email'));
211
+ }
212
+ }
214
213
215
214
The ` useFields() ` method does two things automatically for you: it adds the
216
215
hidden fields and the array of fields is used to change the fields order.
0 commit comments