Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Tying to download mpdf files
Post: RE: Tying to download mpdf files

Nevermind, I figured it out. I had the mpdf being created in the view. As soon as I moved it to the controller, I was able to download it. -max
677 Views
2 Replies
05-11-2022, 08:19 PM
sevmusic
    Thread: Tying to download mpdf files
Post: Tying to download mpdf files

So I've installed mPDF 8.1 to use with my CodeIgniter 4. Got it working with opening a file in the browser. Got it working with creating a file on the server. Got it working with creating an attachme...
677 Views
2 Replies
05-11-2022, 07:10 PM
sevmusic
    Thread: Update using WHERE
Post: RE: Update using WHERE

BilltheCat Wrote: (01-20-2022, 08:38 AM) -- sevmusic Wrote: (01-20-2022, 08:02 AM) -- Yes. All fields are in $allowedFields. Thanks for helping. I really think Ci4 update() only wants to updat...
2,483 Views
13 Replies
01-20-2022, 01:20 PM
sevmusic
    Thread: Update using WHERE
Post: RE: Update using WHERE

Yes. All fields are in $allowedFields. Thanks for helping. I really think Ci4 update() only wants to update with a primary key. Anything outside of that, it explodes. kenjis Wrote: (01-14-2022, 05...
2,483 Views
13 Replies
01-20-2022, 08:02 AM
sevmusic
    Thread: Update using WHERE
Post: RE: Update using WHERE

I was so sure that was going to work. Totally makes sense... but... same error: "There is no data to update" Wild. I appreciate your efforts! Thank you.
2,483 Views
13 Replies
01-14-2022, 07:52 AM
sevmusic
    Thread: Update using WHERE
Post: RE: Update using WHERE

iRedds Wrote: (01-11-2022, 02:47 PM) -- https://codeigniter.com/user_guide/models/model.html#saving-data -- Thanks, but again nothing on there explains my situation. Closest thing is this: P...
2,483 Views
13 Replies
01-11-2022, 03:47 PM
sevmusic
    Thread: Update using WHERE
Post: RE: Update using WHERE

Like this? PHP Code: -- public function set_activity_id_null($activity_id = FALSE)     {         $data = array(             'activity_id' => null         );         if ($activity_id !== FALSE) {    ...
2,483 Views
13 Replies
01-11-2022, 02:13 PM
sevmusic
    Thread: Update using WHERE
Post: Update using WHERE

I searched for this topic and didn't get any hits. I am trying to update multiple rows with the query helper. There is a column called activity_id which is NOT the primary key. I am trying t...
2,483 Views
13 Replies
01-11-2022, 01:37 PM
sevmusic
    Thread: Language file in rule group error?
Post: RE: Language file in rule group error?

Thank you for your response. So the short answer is "no." You cannot use the lang() function in the Validation config file. I know I can do it in the Controller but the purpose of the Validation...
1,044 Views
3 Replies
01-06-2022, 12:34 PM
sevmusic
    Thread: Language file in rule group error?
Post: Language file in rule group error?

Is there a way to be able to use a lang() in a rule group to display errors? In my Config/Validation.php PHP Code: -- public $clientRegistration = [         'first_name' => ['label' => 'First Na...
1,044 Views
3 Replies
12-20-2021, 02:46 PM
sevmusic
    Thread: Validation Class passing field name
Post: RE: Validation Class passing field name

InsiteFX Wrote: (11-19-2021, 03:25 AM) -- CodeIgniter 4 Validation Library - eithRequest() (https://codeigniter.com/user_guide/libraries/validation.html#withrequest) SEE: how it's handaling error ...
933 Views
2 Replies
11-20-2021, 07:51 AM
sevmusic
    Thread: Validation Class passing field name
Post: Validation Class passing field name

How can I pass the field label to the validation class so I can return the error with the field label? Previously, we could do a callback function with {field} and it would convert that into the fiel...
933 Views
2 Replies
11-18-2021, 12:10 PM
sevmusic
    Thread: Redirect from BaseController
Post: RE: Redirect from BaseController

kilishan Wrote: (11-12-2021, 11:10 AM) -- You should look into controller filters (https://codeigniter.com/user_guide/incoming/filters.html) for this type of a situation. -- BINGO! Thanks!
1,171 Views
3 Replies
11-12-2021, 01:49 PM
sevmusic
    Thread: Redirect from BaseController
Post: Redirect from BaseController

Hey gang, I am trying to redirect from my BaseController with a function called by the child Controller but it doesn't seem to work. Here is what I have. BaseController.php PHP Code: -- class B...
1,171 Views
3 Replies
11-12-2021, 09:44 AM
sevmusic
    Thread: Configurable path for .env file
Post: RE: Configurable path for .env file

This seems to be working for me. Keep all of your .env files in the rootpath (along side system and app folders) Create a duplicate .env file and rename it to whatever suits your needs. (example...
1,653 Views
1 Replies
10-29-2021, 08:03 AM
sevmusic
    Thread: Base_url as a default value in a custom Config file
Post: Base_url as a default value in a custom Config fil...

PHP Code: -- namespace App\Config; use CodeIgniter\Config\BaseConfig; class MyConfig extends BaseConfig {     public $myTargetLink  = base_url() . '/path/to/link'; } -- Hello. I am wo...
1,186 Views
4 Replies
10-15-2021, 10:01 AM
sevmusic
    Thread: url_title not set to lowercase by default
Post: RE: url_title not set to lowercase by default

jreklund Wrote: (04-21-2020, 03:17 AM) -- Hi, thanks for pointing that out, the code example dosen't match description. I must have missed that the last time I updated that part of the userguide. ...
2,421 Views
3 Replies
04-21-2020, 06:46 AM
sevmusic
    Thread: url_title not set to lowercase by default
Post: url_title not set to lowercase by default

On this page: https://codeigniter.com/user_guide/tutorial/create_news_items.html (https://codeigniter.com/user_guide/tutorial/create_news_items.html) it reads: "This contains a new function url_tit...
2,421 Views
3 Replies
04-20-2020, 08:55 PM
sevmusic
    Thread: Error in Module 'timezonedb' already loaded
Post: RE: Error in Module 'timezonedb' already loaded

I couldn't change any of our host's php.ini configuration so I prevent the error from appearing by adding an IF statement to the error views: application/views/errors/html/error_php.php Code: -...
7,023 Views
2 Replies
01-10-2018, 09:14 AM
sevmusic

Theme © iAndrew 2016 - Forum software by © MyBB