Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: What is difference Factories vs services
Post: RE: What is difference Factories vs services

kenjis Wrote: (04-06-2022, 04:27 PM) -- The user guide in develop branch was updated. Services https://codeigniter4.github.io/CodeIgniter4/concepts/services.html Factories https://codeigniter4....
2,769 Views
9 Replies
04-16-2022, 06:17 AM
asrahi
    Thread: What is difference Factories vs services
Post: What is difference Factories vs services

Hello!! I can't understand the difference between Factories vs Services. I think it look similar. They can return same class instance and the functions look similar. I'm trying to google, and sear...
2,769 Views
9 Replies
03-31-2022, 06:53 AM
asrahi
    Thread: when I set routes with add and post, It's not work
Post: RE: when I set routes with add and post, It's not ...

ikesela Wrote: (09-07-2021, 12:48 PM) -- better use 'get' instead 'add' , so router know what to do, not guessing what to do using 'add' * from CI documentation: it is recommended to always use the ...
3,859 Views
4 Replies
09-09-2021, 10:05 AM
asrahi
    Thread: when I set routes with add and post, It's not work
Post: when I set routes with add and post, It's not work

Hi! I was setting $routes like this, But it's not work I expected, if I connect "test.com/board" then call Board:list and I try to submit form POST in "test.com/board", as I know it's call Board:s...
3,859 Views
4 Replies
09-07-2021, 08:31 AM
asrahi
    Thread: How can I use findAll with select in model?
Post: How can I use findAll with select in model?

Hi! I try to like this, but it's error of SQL syntax. PHP Code: -- $model = model('MyModel'); //It's Okay! $model->where('column1','value')->findAll(); //It's error $model->select('co...
3,533 Views
2 Replies
04-04-2021, 06:46 AM
asrahi
    Thread: when I use countAll, it's seem without deleted_at query
Post: RE: when I use countAll, it's seem without deleted...

Code: -- public function countAll(bool $reset = true, bool $test = false){ $q = $this->builder( $this->table ); if ($this->useSoftDeletes === true) { $q->where($this->table . '.' . $this->...
2,573 Views
4 Replies
02-13-2021, 11:08 AM
asrahi
    Thread: when I use countAll, it's seem without deleted_at query
Post: RE: when I use countAll, it's seem without deleted...

kenjis Wrote: (02-07-2021, 02:40 AM) -- It seems it is a bug. There is no `countAll()` method in CodeIgniter\Model. -- How Can I know rows count when I use with model? should I don't use $model->...
2,573 Views
4 Replies
02-09-2021, 02:17 AM
asrahi
    Thread: when I use countAll, it's seem without deleted_at query
Post: when I use countAll, it's seem without deleted_at ...

Hi! When I use countAll(), It's seem without deleted_at query. How can I with deleted_at when I call countAll()? Code: -- Database (4 Queries across 0 Connection) Time Query String 0.19 ms S...
2,573 Views
4 Replies
02-06-2021, 10:46 PM
asrahi

Theme © iAndrew 2016 - Forum software by © MyBB