CodeIgniter Forums

Full Version: HELP: Undefined Variable on my view...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi all... im newbie CodeIgniter's user. I need help with this:

class Services extends CI_Controller
public function __construct()


public function index()


public function manuales()
$spc = "Hola mundo";
$this->load->view('manuales', $spc);
return $spc;


Im trying to print $spc value on mi view Manuales and i get ERROR: Undefined variable: spc.

Here is my view part code:

Quote:<div class="entry">

echo $spc;


i need some help...