Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: What's the best way to limit pagination to 5 pages?
Post: RE: What's the best way to limit pagination to 5 p...

Config\Pager::$perPage
123 Views
1 Replies
05-14-2022, 07:53 AM
Mostafa Khudair
    Thread: Codeigniter Simple Code - Auto Routes
Post: Codeigniter Simple Code - Auto Routes

One of the best features of CodeIgniter is the simplicity of the code. Let's talk about `Auto Routes` Its was handled in Router Class, now it's served by Two classes AutoRoutes.php and AutoRoutesImpr...
387 Views
2 Replies
04-21-2022, 07:56 PM
Mostafa Khudair
    Thread: only one view is viewed..
Post: RE: only one view is viewed..

use echo instead of return, because function ends after the first return reference https://www.codeigniter.com/user_guide/outgoing/views.html PHP Code: -- namespace App\Controllers; use Co...
561 Views
3 Replies
12-20-2021, 11:30 AM
Mostafa Khudair
    Thread: Statement Query Builder
Post: RE: Statement Query Builder

paliz Wrote: (07-04-2021, 11:41 PM) -- https://codeigniter.com/user_guide/database/query_builder.html -- I don't need userguide reference, I read the userguide but there is no thing about my questi...
1,100 Views
4 Replies
07-05-2021, 10:51 AM
Mostafa Khudair
    Thread: Statement Query Builder
Post: Statement Query Builder

how to write this statement http://sqlfiddle.com/#!9/1ec706/26 and get same result using CI4 Query Builder?
1,100 Views
4 Replies
07-04-2021, 01:58 PM
Mostafa Khudair
    Thread: SelectMax Join Tables
Post: RE: SelectMax Join Tables

I want to select rows with max sequence of each application_name opener and closer to get the result in the second photo
957 Views
4 Replies
05-09-2021, 03:52 PM
Mostafa Khudair
    Thread: SelectMax Join Tables
Post: SelectMax Join Tables

PHP Code: -- /** * Returns all acquired applications info for a given user team/department id. * * @param integer $userID * @param integer $userPosition * @param integer $userDepartment *...
957 Views
4 Replies
05-08-2021, 12:50 PM
Mostafa Khudair
    Thread: Pagination with Custom model
Post: RE: Pagination with Custom model

Here we go. Wrote: (12-31-2020, 03:59 AM) -- CONTROLLER: PHP Code: --   -- -- It's very recommended to read userguide
3,573 Views
13 Replies
01-04-2021, 10:04 AM
Mostafa Khudair
    Thread: CI4 use model's method in view
Post: RE: CI4 use model's method in view

just call: PHP Code: -- model('CodeigniterModel'); --
8,550 Views
11 Replies
06-21-2020, 09:40 AM
Mostafa Khudair
    Thread: How to use Helper function on view - CI4?
Post: RE: How to use Helper function on view - CI4?

In your view file just call helper() function. for example if you want to use form helper in view and you didn't define it in controller just do this in view: PHP Code: -- -- once you do this all ...
4,678 Views
3 Replies
04-24-2020, 02:25 AM
Mostafa Khudair
  Lightbulb Thread: Parser function
Post: Parser function

I'm wondering why CodeIgniter doesn't provide parser function to grab Parser Class :huh: , so we can use it directly anywhere without calling it as instance.  :idea: for example: before "as docum...
1,521 Views
1 Replies
02-09-2020, 12:05 PM
Mostafa Khudair
    Thread: How to enable debug toolbar in CI4.0.0-rc.3
Post: RE: How to enable debug toolbar in CI4.0.0-rc.3

You have to set $indexPage to '' (blank)
16,302 Views
28 Replies
01-19-2020, 12:37 PM
Mostafa Khudair
    Thread: Set Environment via Config\App
Post: Set Environment via Config\App

Hello guys, I was thinking of a simple way to change between supported framework environments, so i made this. Step 1: we need to configure environment via \Config\App at App/Config/App.php file: ...
1,653 Views
1 Replies
12-24-2019, 02:16 PM
Mostafa Khudair

Theme © iAndrew 2016 - Forum software by © MyBB