How to use cronjob in localhost codeignator 4?

|
Arun Kumar 2022-02-09 11:23:35
codeslide-59650.jpg

Arun Kumar 2022-02-09 11:23:51
Using Result array and check
Its_me_Rooh 2022-02-09 11:26:10
Arun Kumar 2022-02-09 11:23:35

No result array

Its_me_Rooh 2022-02-09 11:26:21
It’s result array
Its_me_Rooh 2022-02-09 11:26:52
Its_me_Rooh 2022-02-09 10:56:18
Passing $data1 to view page but error showing

Look

Its_me_Rooh 2022-02-09 11:28:33
codeslide-59657.jpg

Its_me_Rooh 2022-02-09 11:28:57
Its_me_Rooh 2022-02-09 11:28:33

This is the result After var dump

Arun Kumar 2022-02-09 11:34:13
Now working or not
Its_me_Rooh 2022-02-09 11:45:38
Not working
Arun Kumar 2022-02-09 11:49:05
U r using codeignator 3 or 4 ?
Its_me_Rooh 2022-02-09 11:53:13
3
Arun Kumar 2022-02-09 12:05:31
Controller page
—————
$this->load->model(“model_name”);

$data[‘allproducts’]= $this->model_name->selected_allproducts();

echo json_encode($data);

Model Page
———–
function selected_allproducts() {
$query = $this->db->query(“SELECT * from tablename”);
return $query;
}

view page
——–
<?php print_r($allproducts);?>

Arun Kumar 2022-02-09 12:11:21
Using above method
Arun Kumar 2022-02-09 12:19:48
Arun Kumar 2022-02-09 10:54:25
How to use cronjob in localhost codeignator 4 ?

It is know anybody?

fakmiv 2022-02-09 12:45:33
RichardMuvirimi 2022-02-08 10:30:16
Can’t even send links to helpful content

Screenshot the link and send

RichardMuvirimi 2022-02-09 13:34:07
Arun Kumar 2022-02-09 10:54:25
How to use cronjob in localhost codeignator 4 ?

Just call as a url or if using the cmd with spaces between index.php, controller and function

Tamanna Arora 2022-02-09 13:34:19
codeslide-59688.jpg

RichardMuvirimi 2022-02-09 13:34:37
fakmiv 2022-02-09 12:45:33
Screenshot the link and send

Would have sent a link to codeigniter documentation page but…

RichardMuvirimi 2022-02-09 13:35:04
Why bother, who is gonna look up each character and type
someone 2022-02-09 18:07:27
codeslide-59722.jpg

someone 2022-02-09 18:07:55
any opinion ?
Soumen954 2022-02-09 18:10:28
Change your php version
javad_jabzz 2022-02-09 18:11:50
How can i add new table row by form submit in Php mysql
imcoolcoder 2022-02-09 19:38:21
Can I open automatic Web push notifications ?
niceFat 2022-02-10 00:50:39
when i store json data into mysql it becomes like this
data1
data2
niceFat 2022-02-10 00:51:36
i can’t decode it
niceFat 2022-02-10 00:51:46
pdo sql ]
ProHider 2022-02-10 09:44:27
Ya bro
Its_me_Rooh 2022-02-10 17:21:45
Arun Kumar 2022-02-09 12:05:31
Controller page
—————
$this->load->model(“model_name”);

$data[‘allproducts’]= $this->model_name->selected_allproducts();

echo json_encode($data);

Model Page
———–
function selected_allproducts() {
$query = $this->db->query(“SELECT * from tablename”);
return $query;
}

view page
——–
<?php print_r($allproducts);?>

Ok thanks

ket_akr 2022-02-10 18:24:33
Yes
iamshubir 2022-02-10 18:25:18
ket_akr 2022-02-10 18:24:33
Yes

ne.eed one automatio.n program

iamshubir 2022-02-10 18:27:25
ket_akr 2022-02-10 18:24:33
Yes

check d.m

Its_me_Rooh 2022-02-11 09:52:21
codeslide-59909.jpg
I’m stuck in this error
RichardMuvirimi 2022-02-11 09:53:19
Its_me_Rooh 2022-02-11 09:52:21
I’m stuck in this error

Did you add autoload.php anywhere?

Its_me_Rooh 2022-02-11 09:53:46
RichardMuvirimi 2022-02-11 09:53:19
Did you add autoload.php anywhere?

No

|