Get variables created in MY_Controller? |
[eluser]danmontgomery[/eluser]
[edit] nevermind... [quote author="chefnelone" date="1268332788"]I get this error: Code: A PHP Error was encountered if I run this code: application/libraries/MY_Controller.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); application/controller/mycontroller.php Code: <?php application/views/myview.php Code: <?php echo $company_email; ?> Your $company_email variable is only ever declared and accessed within the scope of the current function. It should be a class member. application/libraries/MY_Controller.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); application/controller/mycontroller.php Code: <?php
|
Welcome Guest, Not a member yet? Register Sign In |