Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How do I ensure that rewrite works properly?
Post: RE: How do I ensure that rewrite works properly?

Inquisitor Wrote: (Today, 02:08 AM) -- paulkd Wrote: (Yesterday, 10:15 PM) -- If you are using cPanel It looks like your Document Root may be pointing to public_html I think your Document Ro...
75 Views
3 Replies
11 hours ago
paulkd
    Thread: How do I ensure that rewrite works properly?
Post: RE: How do I ensure that rewrite works properly?

Inquisitor Wrote: (Yesterday, 07:52 AM) -- When I go to the root of my installation which is /ci4 right now I just get this: https://i.postimg.cc/GtcNTvFw/root.jpg If I go to /public it works fine ...
75 Views
3 Replies
Yesterday, 10:15 PM
paulkd
    Thread: Proper way yo deal with uri segments?
Post: RE: Proper way yo deal with uri segments?

dgvirtual Wrote: (10-14-2021, 12:42 AM) -- iRedds Wrote: (10-13-2021, 04:28 PM) -- I think it will be fun  https://site.lt/my_subdir/.env -- I did not use the real website name :), but yeh, next t...
247 Views
7 Replies
10-14-2021, 01:28 AM
paulkd
    Thread: redirect question
Post: SOLVED: redirect question

includebeer Wrote: (10-12-2021, 04:00 PM) -- paulkd Wrote: (10-11-2021, 03:13 AM) -- Hi, Can someone tell me why this is redirecting to localhost rather than the domain it is being executed on :h...
125 Views
3 Replies
10-12-2021, 11:00 PM
paulkd
    Thread: What is the recommended method of having sessions always on
Post: What is the recommended method of having sessions ...

Hi All, As per the title, I've been looking at filters and events. In CI3 I just autoloaded sessions. I want sessions up and running as soon as possible to make decisions on their values.
161 Views
1 Replies
10-12-2021, 02:46 AM
paulkd
    Thread: redirect question
Post: redirect question

Hi, Can someone tell me why this is redirecting to localhost rather than the domain it is being executed on :huh: Code: -- return redirect()->to('/admin/login'); --
125 Views
3 Replies
10-11-2021, 03:13 AM
paulkd
    Thread: CodeIgniter 4 Model - One to Many - how to?
Post: RE: CodeIgniter 4 Model - One to Many - how to?

Scott103 Wrote: (09-27-2021, 08:04 AM) -- Hey guys, I am new to CodeIgniter 4 and self-taught, so for sure I am missing some skill or knowledge :-). Anyway - I am building simple quiz. One page...
323 Views
4 Replies
09-28-2021, 03:24 AM
paulkd
    Thread: convert sql
Post: RE: convert sql

Tajar_Dobro Wrote: (09-20-2021, 11:53 PM) -- ikeselayes , you can. Code: -- Select if(payment_status=0,'Not Paid','Paid ') AS status tnanksss, but what about if i have more than 2 status? -- ...
433 Views
5 Replies
09-21-2021, 12:51 AM
paulkd
    Thread: How to search out the exact result which in the array data field?
Post: RE: How to search out the exact result which in th...

Philco Wrote: (09-09-2021, 09:49 PM) -- Hello Madam, Sir, I am really newbie  in codeigniter,  I like this frame much. Now there is problem when I try to filter some product  We have stored a prod...
411 Views
2 Replies
09-10-2021, 01:39 AM
paulkd
    Thread: List all sessions
Post: RE: List all sessions

Hi, You could use a database table to store session_id(), a last_active timestamp and any other required data (e.g. user_id).
676 Views
4 Replies
07-07-2021, 06:57 AM
paulkd
    Thread: Model within a model
Post: RE: Model within a model

Hi, In general, I call models from controllers. However, here is an example where I've called Customers model from Orders model. Hope this helps. Models/BaseModel.php PHP Code: --
838 Views
12 Replies
07-01-2021, 12:36 AM
paulkd
    Thread: saving a user's $_SESSION vars
Post: RE: saving a user's $_SESSION vars

php_rocs Wrote: (06-30-2021, 08:07 PM) -- @"richb201" , When you say 20 of them are you referring to 20 session variables?  If so, you could simply put them in an array and store the array. -- T...
889 Views
9 Replies
06-30-2021, 11:55 PM
paulkd
    Thread: Export to excel
Post: RE: Export to excel

Tajar_Dobro Wrote: (06-14-2021, 12:35 AM) -- Well, I have the main query in the DB. now I want only to export the return from the search. also, PHP excel does not work. This code exports me all the...
1,416 Views
8 Replies
06-16-2021, 05:12 AM
paulkd
    Thread: Making data available in ALL views
Post: RE: Making data available in ALL views

SoccerGuy3 Wrote: (06-15-2021, 07:18 AM) -- Thanks everyone for the help. Just needed a push in the right direction. Somewhat new to CI and the community support is great. Now that it is working/ret...
1,652 Views
16 Replies
06-15-2021, 12:48 PM
paulkd
    Thread: Making data available in ALL views
Post: RE: Making data available in ALL views

Can you not use PHP Code: -- -- in your views?
1,652 Views
16 Replies
06-14-2021, 10:02 PM
paulkd
    Thread: counting items chosen in $_POST
Post: RE: counting items chosen in $_POST

richb201 Wrote: (06-11-2021, 03:38 PM) -- I have a form that is being returned  when a user submits. The $_POST array comes back as an array of arrays. All of the elements are available, except I hav...
842 Views
4 Replies
06-12-2021, 12:13 AM
paulkd
    Thread: problem with custom controller constructor
Post: RE: problem with custom controller constructor

includebeer Wrote: (05-29-2021, 12:25 PM) -- Don't use a constructor. Override initController(), don't forget to call parent::initController(), and then do what you need to do. But, a better approa...
755 Views
5 Replies
05-29-2021, 11:39 PM
paulkd
    Thread: VScode - undefined 'getVar' method in version 4.1.2
Post: RE: VScode - undefined 'getVar' method in version ...

wdeda Wrote: (05-26-2021, 10:25 PM) -- When taking a screenshot of VScode showing the version of CodeIgniter, 4.1.2, and PHP, 8.0.6, running without problems, I found a series of error messages in In...
1,690 Views
8 Replies
05-26-2021, 10:36 PM
paulkd
    Thread: How to make this sql queries with CodeIgniter 4
Post: RE: How to make this sql queries with CodeIgniter ...

Hi, 1. You don't need to use ->getFirstRow() as max(id) will result in only one record being returned. Code: -- function getLastOrderId() {   $builder = $this->db->table('orders o');   $builde...
741 Views
2 Replies
05-26-2021, 10:18 PM
paulkd
    Thread: syntax error, unexpected token "foreach"
Post: RE: syntax error, unexpected token "foreach"

Was the error ? Code: -- syntax error, unexpected 'foreach' (T_FOREACH) --
468 Views
2 Replies
05-21-2021, 12:54 PM
paulkd

Theme © iAndrew 2016 - Forum software by © MyBB