Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i have a problem in CI
my class is :
PHP
class news extends CI_Controller{}

i want having construct for this class
in every book construct this is :
PHP
function news()
{
parent::Controllers();
}

but this is not working
:(
Posted
Comments
Sergey Alexandrovich Kryukov 19-Feb-14 16:47pm    
For your information, if you write gibberish, it won't work :-) Perhaps you need just to learn the basics. The bugs can be fixed only if there is at least some reasonable code...
—SA
Mahshid Fallah 20-Feb-14 1:49am    
now !
what's answer for my question? ? :|
Sergey Alexandrovich Kryukov 20-Feb-14 2:20am    
:-)
Mahshid Fallah 20-Feb-14 3:01am    
are u ok? :-)
Mahshid Fallah 20-Feb-14 3:51am    
public function __construct()
{
parent::__construct();

:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900