I downloaded the source code of a website. The website is live and working. I wanted to make some changes offline to test them first but when I go to localhost on my browser, I get redirected to live …
Tag: codeigniter
Create a function in codeigniter that returns true if the input datetime is 2days ahead of current datetime, othewise false
I’m new in codeigniter, im trying to create a function that accepts datetime input from a user. If the input is 2 or more days ahead of current datetime, it should return true, if not it should return …
How to disable ONLY_FULL_GROUP_BY in codeigniter?
I have worked may time with Group BY in mysql but recently i have received a problem of Group By. I searched from many sites and I got the problem that its due to upgrading the mysql version in which it is enabled and in old versions it was disabled. I won’t remove it using the query but from the
How to retrieve the array values from multiples checkbox?
How to retrieve the array values from multiples checkbox? I have problem when I retrieve value array and echo the value. I get this error Severity: Warning Message: in_array() expects parameter 2 to …
How to create dynamic sitemap in Codeigniter
How to create a dynamic sitemap in Codeigniter. I have created a php file in Controller named it Sitemap.php and created a view named it sitemap.php everything is going well but showing the following result not the actual XML file as shown in below image. Codeigniter Sitemap.php file View -> sitemap.php file Answer You are missing header setting in your
Fatal error: Assignments can only happen to writable values in C:xampphtdocsdogsapplicationcontrollers
I use a local XAMPP server. PHP version 7.2.13 CodeIgniter 3.1.10 When I try to call the page posts, I get this error message: In Sublime line Number 16 corresponds to: $data = [‘title’] = ‘Latest Posts’; My controller file Post.php: My view file index.php: Answer Try this :
Detect Disposable Email with Garbage Domain
I am developing website using php/codeigniter. I have downloaded a list of temporary email domains from github (https://gist.github.com/adamloving/4401361) I integrated this to my website to filter …
PHP mPDF: Failed to display Yiddish Language in PDF
I’m using mPDF in codeigniter project. It’s working well for English and Russian language but in Yiddish language it’s showing only dots (.) and commas (,) like below: mPDF output While the content …
CodeIgniter – How to combine where() and where_not_in() in one query?
In one of my CodeIgniter based application, I need to combine both where() and where_not_in() in one single query. The query I wrote is: $where = array( ‘proj.project_code’ => $project_code ); …
display event in calendar | codeigniter
My code is work fine in add new event to sql database . but Not display the event stored in sql inside the calendar. I WANT TO DISPLAY THE EVENT INSIDE THE CALENDAR JS Controller Model Answer I SOLVED MY PROBLEM BY MY SELF MODEL AJAX – ADD EVENT – DISPLAY EVENT – REFRESH CALENDAR