Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


help displaying fields of a table

  • Please log in to reply
No replies to this topic

#1 petocities


  • Members
  • 102 posts
  • Location:Santiago Chile
  • Local time:09:08 AM

Posted 25 May 2009 - 07:45 PM

Hello guys. I'm currently working in a project written in php, and we are using the symfony framework.
Maybe my problem isn't very hard, but I don't know much about widgets, and I haven't been able to find any leads towards a solution (so, maybe I ain't asking the right questions).

I have a random table in a database, tableA, with some random columns A.B & C. What I want to do is to grab the $form object generated in the actions.php class, and re-sort the fields in a orderly way. the code calling the forms is quite simple:
<form name="NewInitialReport" action="<?php echo url_for('misssion/ListReport?id='.$mission->getId())?>" method="post">
<div class="sf_admin_form_row  sf_admin_text">
	  <tr><?php echo $formNewInitialReport ?></tr>
	  <tr><?php echo $formNewParticipants ?></tr>
	  <tr><?php echo $formNewCategory ?></tr>
	  <tr><?php echo $formNewObjectives ?></tr>
	  <tr><?php echo $formNewBeneficiary ?></tr>
  <ul class="sf_admin_actions">
		<input type="submit" value='Crear' />

This works, but the output is really messy, so i'd like a way to grab some of the fields from the forms and put them in tables, matrixes or in some other way rather that just downwards. A friend said that a feasible solution was to generate my own widget (or was it ridget?) but my understanding of php is not that deep, so i'd rather stick with easier solutions, if available.

Thanks a lot for yer time/help
Posted Image

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users