Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: what I'm doing wrong
Post: RE: what I'm doing wrong

Thank you so much, that worked, I had that to see if works, Now trying to get that into paging, but getting error $postModel = new \App\Models\ListingsModel(); $data = $postModel->getpostsby...
914 Views
2 Replies
02-04-2023, 09:49 AM
lindaw
    Thread: what I'm doing wrong
Post: what I'm doing wrong

Hello, I don't if what I'm doing wrong or just bug in CI 4.3.1 (latest version) here is my problem My table -- CREATE TABLE `tbposts` (   `id` int(10) UNSIGNED NOT NULL,   `user_id` int(11) NOT...
914 Views
2 Replies
02-04-2023, 07:50 AM
lindaw
    Thread: How to use pagination in complex query
Post: RE: How to use pagination in complex query

Thank you that helped a lot.sorry to say, I found$users = $userModel Wrote: (02-01-2023, 06:17 PM) --     ->select('users.*)     ->join('auth_groups_users agu', 'agu.user_id = users.id')     ->wher...
2,844 Views
8 Replies
02-02-2023, 01:39 PM
lindaw
    Thread: How to use pagination in complex query
Post: RE: How to use pagination in complex query

Thank you so much, Your explanation makes sense, and good one, now I understand what model used for, I assume model is active records keeps all data till the browser is closed, is this case if I have...
2,844 Views
8 Replies
02-01-2023, 06:58 AM
lindaw
    Thread: How to use pagination in complex query
Post: RE: How to use pagination in complex query

Thank you, I figured that, for days I couldn't find any example, nothing in documentation says user can't do query, I hope someone can update the help file explain this issue, looks MVC in general ...
2,844 Views
8 Replies
01-31-2023, 10:23 AM
lindaw
    Thread: How to use pagination in complex query
Post: RE: How to use pagination in complex query

Hello, Thank you for your time, and answer , I don't issue with query, executing and getting result, my issue ion paging, I'm getting array error when I try to get 'listings' => $myquery->paginate(...
2,844 Views
8 Replies
01-30-2023, 06:37 AM
lindaw
    Thread: How to use pagination in complex query
Post: How to use pagination in complex query

Hello, Thanks for all helped me to move forward with my project conversion to CI MVC , moving forward step by step with your help. What I'm missing in my work, I don't know why query not get...
2,844 Views
8 Replies
01-29-2023, 07:30 AM
lindaw
    Thread: Pagination with query result
Post: RE: Pagination with query result

Thank you so much, I appreciate your time and help.
906 Views
2 Replies
01-29-2023, 07:09 AM
lindaw
    Thread: Pagination with query result
Post: Pagination with query result

Hello, 1- I have query like this: select * from users where active=1 and state ='CA'  (simple query, but the my query more complex than this one) I want to view list of all users with pagination wi...
906 Views
2 Replies
01-28-2023, 09:27 AM
lindaw
    Thread: Controller and sql
Post: RE: Controller and sql

Thank you for the clear explanation, I will redo my work to use model instead, thanks again
1,112 Views
3 Replies
01-27-2023, 02:09 PM
lindaw
    Thread: Controller and sql
Post: Controller and sql

Hello, Can I user   something like this $db = \Config\Database::connect();      $query =  $db->query('select * from mytable');  or whatever query to process the result. inside a Controller inst...
1,112 Views
3 Replies
01-26-2023, 08:12 AM
lindaw
    Thread: multi templates
Post: multi templates

Hello, Thank you for all your help. I have 3 users, each user has own template layout (other than the main website) , user saved in a table, with template id after login I want to redirect /reroute...
575 Views
0 Replies
01-23-2023, 07:36 AM
lindaw
    Thread: global variable
Post: RE: global variable

kenjis Wrote: (01-20-2023, 06:11 PM) -- If it is configuration, You can create a Config file: https://codeigniter4.github.io/CodeIgniter4/general/configuration.html#creating-configuration-files ...
1,229 Views
3 Replies
01-23-2023, 07:28 AM
lindaw
    Thread: global variable
Post: global variable

Hello , First thank you to all team worked in this fantastic framework,  I have $password = array(         'cansave' => true,         'Algorithm' => 'abc' ); I want to access $password from...
1,229 Views
3 Replies
01-20-2023, 10:45 AM
lindaw
    Thread: create modules in CI 4.3.1
Post: RE: create modules in CI 4.3.1

kenjis Wrote: (01-18-2023, 06:25 PM) -- view('Modules\User\Views\login',$data) should work https://codeigniter.com/user_guide/general/modules.html#views if you set the namespace correctly: https...
1,060 Views
2 Replies
01-19-2023, 08:37 AM
lindaw
    Thread: create modules in CI 4.3.1
Post: create modules in CI 4.3.1

Hello , First thank you to all for this nice working CI framework, really nice. I have downloaded , installed and working just fine, but I lost on the documentation process of CI , I followed all st...
1,060 Views
2 Replies
01-18-2023, 11:50 AM
lindaw

Theme © iAndrew 2016 - Forum software by © MyBB