Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: What's the best approach to access related data in CodeIgniter 4?
Post: RE: What's the best approach to access related dat...

GerishSonya Wrote: (04-19-2023, 10:40 PM) -- As a beginner in CodeIgniter 4 and MVC, I am struggling to design a Model that includes information from two tables - Projects and Hours. I have created a...
1,094 Views
2 Replies
04-29-2023, 06:54 AM
digitalarts
    Thread: Hide pager when only 1 page of results
Post: RE: Hide pager when only 1 page of results

This is what I use: PHP Code: -- if ( $pager->getPageCount() > 1 ) {      echo $pager->links(); } --
1,387 Views
3 Replies
04-12-2023, 01:44 PM
digitalarts
    Thread: How to customize label on this codeigniter validation
Post: RE: How to customize label on this codeigniter val...

Try this: PHP Code: -- if($this->request->getMethod() == 'post' && $this->validate([      'category' => 'required',      'title' => [           'label' => 'Title',           'rules' => 'required|max...
858 Views
2 Replies
04-12-2023, 01:38 PM
digitalarts
    Thread: Somewhat confused about URL Helper
Post: RE: Somewhat confused about URL Helper

InsiteFX Wrote: (04-06-2023, 10:58 PM) -- In CodeIgniter url's are always Controller / Method url_to is used for named routes. -- I think you mean url_to CAN be used for named routes. It can als...
1,372 Views
6 Replies
04-07-2023, 11:02 AM
digitalarts
    Thread: conditional validation in Model
Post: RE: conditional validation in Model

Here's an update: 1. Apparently, you don't need the use statement pointing to the custom ruleset. The model will find custom rules on its own. 2. Keep in mind that, if you have multiple sets of vali...
1,726 Views
4 Replies
03-10-2023, 10:06 AM
digitalarts
    Thread: want to read the contents of files and need validation
Post: RE: want to read the contents of files and need va...

See: https://codeigniter.com/user_guide/libraries/validation.html?highlight=validation#rules-for-file-uploads
1,648 Views
3 Replies
03-09-2023, 02:57 PM
digitalarts
    Thread: session error
Post: RE: session error

zahid waseem Wrote: (03-02-2023, 10:15 PM) -- Please help how to solve An uncaught Exception was encountered Type: TypeError Message: array_key_exists(): Argument #2 ($array) must be of type ar...
778 Views
1 Replies
03-07-2023, 04:48 PM
digitalarts
    Thread: conditional validation in Model
Post: RE: conditional validation in Model

sjender, (https://forum.codeigniter.com/member.php?action=profile&uid=30839) You'll have to use a custom rule to test for both conditions. 1) Create a folder in your app called "Rulesets". Insid...
1,726 Views
4 Replies
02-28-2023, 09:55 AM
digitalarts

Theme © iAndrew 2016 - Forum software by © MyBB