ayuda con formato PDF |
[eluser]Tim Brownlaw[/eluser]
Hola y bienvenido al mundo de PHP y CodeIgniter Puede usar https://translate.google.com si usted no entiende Inglés This might help... ( I have not tested this, so there might be a few mistakes) I have kept this simple without adding any error checking but I have added in some comments where you would need to take some action depending upon the outcome. Your Model is Code: function seleccionar($tabla=NULL, $columna=NULL, $valor=NULL){ Your Controller should be... Code: function formato_baja($id=0) { So $this->data['echa_baja'] will be an object of an array. If you pass $this->data['fecha_baja'] to your view you will need to access the elements using something like $fecha_baja->id etc. As an example ( as I do not know the other field names you want to display from the database row) The Simple, One entry from the database, view. Code: <td colspan="1">Fecha de baja:</td> There are various ways to create a table of all the values... but see if this part works first! You haven't shown how you are displaying the actual view... One thing you would need to do is to check the return from the model in the controller to determine the output... as I have indicated above. |
Messages In This Thread |
ayuda con formato PDF - by El Forum - 08-12-2014, 05:12 PM
ayuda con formato PDF - by El Forum - 08-12-2014, 07:32 PM
|