Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Export to excel
Post: RE: Export to excel

Hi. First you need to retrieve all data then, it is a model work. Then you need a foreach. I use PhpSpreadSheet to export excel, which seems to be the best for now and let me share a copy of my code...
664 Views
8 Replies
06-13-2021, 06:31 AM
demyr
    Thread: Help Needed with Documentation
Post: RE: Help Needed with Documentation

Well, I'm one of those who think our User Guide is not beginner-friendly. And as a teacher, I can help shaping the general form of it. If you need this kind of help, you can count me in.  You aske...
6,290 Views
8 Replies
06-05-2021, 07:58 AM
demyr
    Thread: How to learn programming language?
Post: RE: How to learn programming language?

What's your aim? Programming a software for pc, coding a web project (backend of this project or front end of this project) or a mobile app?
431 Views
4 Replies
05-30-2021, 06:45 AM
demyr
    Thread: Delete file after download
Post: RE: Delete file after download

You can trigger a delete function via jquery / ajax when you click the download button.
421 Views
5 Replies
05-29-2021, 12:13 AM
demyr
    Thread: New Forums
Post: RE: New Forums

Thanks Development Team. It was surprising for me to see this refreshing change just after I opened my eyes. Great job. P.S. But a link to the codeigniter.com home page is missing. I find it useful...
1,586 Views
17 Replies
05-28-2021, 10:03 PM
demyr
    Thread: get and post filtering for xss, sql injection
Post: RE: get and post filtering for xss, sql injection

Well, if you need to add sth, you can use some classical php functions such as strip_tags  and  preg_replace : PHP Code: -- $name_from_input = strip_tags($this->request->getVar('user_name'));   ...
651 Views
5 Replies
05-16-2021, 11:22 PM
demyr
    Thread: return redirect()->back();
Post: RE: return redirect()->back();

If there is a white page problem after redirect, please check your router.  Match would help you. For example : PHP Code: -- $routes->match(['get','post'],'/en/cart', 'MyController::payment'); --
1,241 Views
11 Replies
05-15-2021, 10:54 PM
demyr
    Thread: Can't get user id from session
Post: RE: Can't get user id from session

Hi again, Your codes don't look healthy. For example, you are trying to start your session with an email, not with a password match. And your password area doesn't have any encryption. I am leaving...
459 Views
3 Replies
05-13-2021, 11:46 PM
demyr
    Thread: Can't get user id from session
Post: RE: Can't get user id from session

When I gave a look at your codes I could'nt see that you started a session first. When the user log in, a session should start first. Then you can call any information related to it. or, if you...
459 Views
3 Replies
05-13-2021, 09:29 AM
demyr
    Thread: Email smtp: mail not send - no error
Post: RE: Email smtp: mail not send - no error

Then I would advise you to check the host name of your server for mails. The servername in the url might be the answer for you.
739 Views
7 Replies
05-09-2021, 10:00 AM
demyr
    Thread: Email smtp: mail not send - no error
Post: RE: Email smtp: mail not send - no error

BFlokstra Wrote: (05-09-2021, 04:58 AM) -- Thanks demyr, for your reply. Is there any way of doing this without using a third party library? The way I understand the documentation is that the build i...
739 Views
7 Replies
05-09-2021, 06:37 AM
demyr
    Thread: CI4 Image Overwriting
Post: RE: CI4 Image Overwriting

You can check your folder, and if there is an image already, you can delete it before you complete your new update
571 Views
4 Replies
05-08-2021, 02:24 PM
demyr
    Thread: Email smtp: mail not send - no error
Post: RE: Email smtp: mail not send - no error

Let me write here the codes which work perfectly for me. 1. Upload your PHPMailer folder into your root folder, beside your App, public etc folders 2. Go to Config / Autoload, find your lines st...
739 Views
7 Replies
05-08-2021, 09:00 AM
demyr
    Thread: Problem fixed and friendly reminder
Post: RE: Problem fixed and friendly reminder

Great news! Thank you for the efforts.
1,218 Views
6 Replies
05-08-2021, 01:22 AM
demyr
    Thread: New XAMPP Releases
Post: RE: New XAMPP Releases

Thanks for the news! Is there any easy way to update xampp without losing any kind of data? I generally backup htdocs folder first.
600 Views
3 Replies
05-05-2021, 08:18 AM
demyr
    Thread: how to get ID's after insertBatch()?
Post: RE: how to get ID's after insertBatch()?

May I kindly ask why you need insertBatch() ? Can you please share some code if possible?
490 Views
2 Replies
04-30-2021, 10:28 AM
demyr
    Thread: localization issue
Post: RE: localization issue

eleumas Wrote: (04-30-2021, 07:01 AM) -- Sorry, but Codeigniter have a specific folder called language for translate multilangual sites. Why i should use a mySQL table for to do this? :) -- Well,...
1,872 Views
14 Replies
04-30-2021, 07:54 AM
demyr
    Thread: localization issue
Post: RE: localization issue

You should have a language column on mysql for any table (pages, products, blog etc). On your controller you can retrieve your datas by using: slug + language, or id + language For example (Contr...
1,872 Views
14 Replies
04-30-2021, 06:47 AM
demyr
    Thread: localization issue
Post: RE: localization issue

What about a basic if control ? I use it to check if language segment of my url is empty or not. I have changed my codes for you PHP Code: -- public function index(){         $lang = $this->req...
1,872 Views
14 Replies
04-29-2021, 09:02 AM
demyr
    Thread: My login page is not working
Post: RE: My login page is not working

Check your model, part: PHP Code: -- if($result->num_rows() == 1){                 return $result->row(0)->id;             } else... -- to try it, just get a row as return without if($result-...
572 Views
4 Replies
04-29-2021, 02:41 AM
demyr

Theme © iAndrew 2016 - Forum software by © MyBB