Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: builder question when using pagination
Post: RE: builder question when using pagination

InsiteFX Wrote: (09-29-2022, 12:35 AM) -- Please see the Pagination Documentation. CodeIgniter $ Users Guide - Pagination - getPageCount() (https://codeigniter.com/user_guide/libraries/pagination....
1,294 Views
3 Replies
09-30-2022, 03:16 AM
frocco
    Thread: builder question when using pagination
Post: builder question when using pagination

I created a builder object and if I use the where function to restrict results, how do I get the total records for pagination links? I seem to have to create two builder objects Code: -- $bui...
1,294 Views
3 Replies
09-28-2022, 08:03 AM
frocco
    Thread: Best practice old vs set_value
Post: RE: Best practice old vs set_value

I'm just using plain html, and the docs show old and set_value. I don't know the difference between these too and was wondering what the best practice (most developers) use.
1,161 Views
2 Replies
09-27-2022, 05:19 AM
frocco
    Thread: Best practice old vs set_value
Post: Best practice old vs set_value

Hello, does it make any difference on using old instead of set_value? thanks
1,161 Views
2 Replies
09-26-2022, 06:49 AM
frocco
    Thread: How to get total records from Pager
Post: RE: How to get total records from Pager

I just realized that $this->model->pager->getTotal() returns the correct count. duh
1,021 Views
5 Replies
09-23-2022, 08:03 AM
frocco
    Thread: How to get total records from Pager
Post: RE: How to get total records from Pager

captain-sensible Wrote: (09-23-2022, 02:13 AM) -- had a quick look through some previous code of mine and found this: Code: -- $handle= new PortfolioModel(); $mycount= $handle->isEmptyMens(); ...
1,021 Views
5 Replies
09-23-2022, 03:28 AM
frocco
    Thread: How to get total records from Pager
Post: RE: How to get total records from Pager

captain-sensible Wrote: (09-22-2022, 10:46 AM) -- i used this approach to  count entries in a db: Code: -- $query = $builder->where('category',$category)->countAllResults(); -- -- I am us...
1,021 Views
5 Replies
09-22-2022, 11:10 AM
frocco
    Thread: How to get total records from Pager
Post: How to get total records from Pager

Hello, I have a Product model that I perform a where search and then paginate the results. If I use the countAllResults, I get an incorrect number of records found. Is there a way to count all ...
1,021 Views
5 Replies
09-22-2022, 10:39 AM
frocco
    Thread: Announcing Shield: an Official Authentication library
Post: RE: Announcing Shield: an Official Authentication ...

Thank you
32,594 Views
42 Replies
06-07-2022, 05:02 PM
frocco
    Thread: Announcing Shield: an Official Authentication library
Post: RE: Announcing Shield: an Official Authentication ...

kilishan Wrote: (06-07-2022, 08:33 AM) -- frocco Wrote: (06-07-2022, 08:16 AM) -- Do you still need to install via composer for the latest CI4? Are there CI docs or on github? Thanks -- Yes,...
32,594 Views
42 Replies
06-07-2022, 12:06 PM
frocco
    Thread: Announcing Shield: an Official Authentication library
Post: RE: Announcing Shield: an Official Authentication ...

luckmoshy Wrote: (06-07-2022, 01:21 AM) -- @kilishan  CI team you make my feeling die  on CI Now I think my first breakfast is CI -- Do you still need to install via composer for the latest CI4? A...
32,594 Views
42 Replies
06-07-2022, 08:16 AM
frocco
    Thread: ORM or SQL?
Post: RE: ORM or SQL?

InsiteFX Wrote: (03-18-2022, 12:03 AM) -- If you have a lot of business logic that needs multiple models then create a library and load the models in it. -- Thank you
5,051 Views
7 Replies
03-19-2022, 07:30 AM
frocco
    Thread: How to return calculated from model?
Post: RE: How to return calculated from model?

The only way I see to get this working is to rename the categories primary key id to cat_id Then I can remove the ->select('products.id,name,sku,image,image2,image3,cat_pic') statement an...
2,008 Views
1 Replies
03-17-2022, 01:00 PM
frocco
    Thread: How to return calculated from model?
Post: How to return calculated from model?

Hello, not sure where to put this. I have a database table that has several price fields, price1, price2... After I query the table, I want to access the price field that would be one of those. ...
2,008 Views
1 Replies
03-17-2022, 07:41 AM
frocco
    Thread: ORM or SQL?
Post: RE: ORM or SQL?

ignitedcms Wrote: (03-17-2022, 07:14 AM) -- No I typically put my query builder logic in models, but if I understood correctly was the question regarding the pros and cons of using a ORM? -- ok, th...
5,051 Views
7 Replies
03-17-2022, 07:28 AM
frocco
    Thread: ORM or SQL?
Post: RE: ORM or SQL?

iRedds Wrote: (03-17-2022, 06:57 AM) -- Controllers, models,... for what? Write everything in one file and layout and query to the database. -- I do not understand your suggestion. Can you explai...
5,051 Views
7 Replies
03-17-2022, 07:09 AM
frocco
    Thread: ORM or SQL?
Post: ORM or SQL?

Hello, What is the best practice for db work by most developers? Them orm must have more overhead dealing with models and entities. Is it better to just use sql? if so, do most of you use sql in...
5,051 Views
7 Replies
03-17-2022, 06:09 AM
frocco
    Thread: hasChanged not working
Post: RE: hasChanged not working

>>You can use an array of keys
2,158 Views
5 Replies
03-12-2022, 12:32 PM
frocco
    Thread: hasChanged not working
Post: RE: hasChanged not working

I had to remove the fill method for this to work with summernote. Code: -- $data = $this->request->getPost(); //$page->fill($this->request->getPost()); -- and change to assign each po...
2,158 Views
5 Replies
03-12-2022, 12:00 PM
frocco
    Thread: hasChanged not working
Post: RE: hasChanged not working

spreaderman Wrote: (03-10-2022, 08:43 PM) -- Hi, I had a similar problem.  This was my problem and my solution;  https://stackoverflow.com/questions/67747865/codeigniter-4-haschanged-i-was-expecting-...
2,158 Views
5 Replies
03-11-2022, 04:22 AM
frocco

Theme © iAndrew 2016 - Forum software by © MyBB