Welcome Guest, Not a member yet? Register   Sign In
Trying to use MVC
#2

[eluser]John_Betong[/eluser]
 
Quote:
... I don't know how to catch the results and show them all!
 
 
Take a look at your results by using this code:
Code:
// in your Mimodelo
   echo '<pre>';
      print_r( $datos );
   echo '</pre>';

   // in your Controller: micontrol.php
   echo '<pre>';
      print_r( $data['contenido'] );
   echo '</pre>';

   // in your view
   echo '<pre>';
      print_r( $contenido );
   echo '</pre>';
&nbsp;
Once you see what the results of print_r(...) then you will be able to format your array data.
&nbsp;
&nbsp;
&nbsp;


Messages In This Thread
Trying to use MVC - by El Forum - 11-07-2008, 09:47 PM
Trying to use MVC - by El Forum - 11-07-2008, 10:48 PM
Trying to use MVC - by El Forum - 11-07-2008, 11:28 PM
Trying to use MVC - by El Forum - 11-08-2008, 02:07 AM
Trying to use MVC - by El Forum - 11-08-2008, 06:49 PM
Trying to use MVC - by El Forum - 11-08-2008, 08:37 PM
Trying to use MVC - by El Forum - 12-10-2008, 08:19 AM
Trying to use MVC - by El Forum - 12-11-2008, 04:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB