Showing posts with label ci 4 tutorial. Show all posts
Showing posts with label ci 4 tutorial. Show all posts

Wednesday 14 September 2022

Update Table CodeIgniter

 $DataModel  =new \App\Models\NewsModel();

$DataModel->set('FileName','jpg');

$DataModel->where('id', 101);

$DataModel->update();


Next Topic

File Upload with new name Codeigniter

 HTML

<form method="post"  action="<?php echo site_url('/Admin/newsadddb'); ?>" enctype="multipart/form-data">

 <input type="file" name="NewsFile" id="NewsFile" style="display:none">

<input type="submit" name="submit" value="Save" class="btn btn-danger" >

</form>

Wednesday 6 July 2022

Google Captcha Integration in Codeiginater 4

 Step 1 : 

    Signup to Google Recaptcha and get the public and private key.

Step 2 :

    Make a Model named CaptchaResponse in Model folder and add the given code below.

Thursday 10 February 2022

Begin CodeIgniter 4.1.8

Whoops! We seem to have hit a snag. Please try again later

Solution : 


Your PHP is missing intl extension. It is useful for formatting currency, number and date/time as well as UCA-conformant collations, for message formatting and normalizing text..etc.


Follow the steps to install it in XAMPP -

  • Open [xampp_folder_path]/php/php.ini to edit.
  • Search for ;extension=intl and remove the ;.
  • Save the php.ini file and restart Apache.