foreach in models and controller |
Helper
PHP Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); Model PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); MY_Controller PHP Code: class MY_Controller extends CI_Controller { When I use infoServer('with the name of value') The result is printed on the top page. But not where I would actually. Dentrol and variables or functions inside. Only at the top. While if I use it in a template it works perfectly. Any solution? I want to use the function so that when you call me the exact result, which it does, but it should work this way: This $variable = 'hello'; and this $variable = infoServer('with the name of value'); They should be the same. While at the time if I use the function produces the result I described before. Thanks for the support. |
Messages In This Thread |
foreach in models and controller - by StratoKyke - 07-07-2015, 06:39 PM
RE: foreach in models and controller - by kenjis - 07-08-2015, 01:41 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 02:47 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 04:48 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 04:51 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 02:49 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 03:30 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 04:27 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 05:07 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 05:09 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 05:53 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 07:12 AM
|