Welcome Guest, Not a member yet? Register   Sign In
Call to a member function myfunction() on null
#11

(05-28-2016, 05:25 AM)mhmttdgnn Wrote: <?php
defined('BASEPATH') OR exit('No direct script access allowed');

class cuzdan extends Admin_Controller {



This is my controller..

that probably should be
class Cuzdan extends Admin_Controller {

Suggest that you work in standard controllers first and get it working. Then you can get fancy. If you have not done the codeigniter tutorial in the manual - then do that first.
Reply
#12

UC stands for Upper Case, so name your model like this
PHP Code:
class Cuzdan_model extends CI_Model{
....

Reply
#13

(This post was last modified: 05-29-2016, 05:06 AM by mhmttdgnn.)

    yes I did but again.. Nothings is changed.. Still same error. And this is my files.. Please check this

Attached Files
.php   Cuzdan_Model.php (Size: 602 bytes / Downloads: 136)
.php   cuzdan.php (Size: 1.44 KB / Downloads: 154)
Reply
#14

I solved to the problem.. Thanks for helping me guys Smile
Reply
#15

(05-30-2016, 11:01 PM)mhmttdgnn Wrote: I solved to the problem.. Thanks for helping me guys Smile

Hey, am facing the same problem can you help to solve it?
Reply
#16

Sounds like $islem is null give it a default value or check to see if it is null.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB