Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,181
» Latest member: muddasirawan
» Forum threads: 65,676
» Forum posts: 412,999

Full Statistics

Latest Threads
affect vs effect
Forum: Lounge
1 hour ago
» Replies: 8   » Views: 244
metatag keyword populator
Forum: General Help
2 hours ago
» Replies: 1   » Views: 23
Error 404 in log
Forum: Issues
4 hours ago
» Replies: 4   » Views: 146
working with two tables u...
Forum: Model-View-Controller
5 hours ago
» Replies: 1   » Views: 22
Can't insert data using s...
Forum: General Help
6 hours ago
» Replies: 0   » Views: 22
DropDown with onchange ev...
Forum: General Help
10 hours ago
» Replies: 1   » Views: 54
CodeIgniter 4 Important F...
Forum: CodeIgniter 4 Development
11 hours ago
» Replies: 22   » Views: 18,289
Ajax output problem
Forum: General Help
Today, 12:24 AM
» Replies: 3   » Views: 143
BCIT newsletter story abo...
Forum: News & Discussion
Yesterday, 05:14 PM
» Replies: 7   » Views: 2,444
undefined variable
Forum: General Help
Yesterday, 02:06 PM
» Replies: 7   » Views: 152

 
  Community Auth Database Engine
Posted by: Schop - 03-24-2017, 08:54 AM - Forum: Addins - Replies (1)

I'm considering using Community Auth for a new project. As I'm browsing through the source, I noticed that some database tables use MyISAM as the engine, and others use InnoDB. Is this on purpose? Why wouldn't it be the same?


  How to create Admin Section in CodeIgniter Project?
Posted by: Shivafeb17 - 03-23-2017, 11:21 PM - Forum: Best Practices - Replies (2)

Hi all, 

I have created a simple project in CI. Now I want to create users and Admins. How to create an area only admin can login and modify data? Should I create an ADMIN Folder in APPLICATION folder and install another CI in it?


  Does CodeIgniter SMTP client actually use TSL to send email?
Posted by: sneakyimp - 03-23-2017, 07:11 PM - Forum: Libraries & Helpers - Replies (1)

I configured my email settings to connect to sendgrid on port 587 and use tsl:

Code:
$config["useragent"] = "CodeIgniter";
$config["protocol"] = "smtp"; // or mail or sendmail
$config["mailpath"] = "/usr/sbin/sendmail";
$config["smtp_host"] = "smtp.sendgrid.net";
$config["smtp_user"] = "apikey";
$config["smtp_pass"] = "<SENDGRID-API-KEY-HERE>";
$config["smtp_port"] = 587;
$config["smtp_crypto"] = "tsl";
$config["dsn"] = FALSE;
// ETC
I wrote a short script on a controller:
Code:
    public function mailtest()
    {
        
        $this->load->library('email');
        
        $this->email->from([email protected]', $this->config->item("site_name"));
        $this->email->to([email protected]');
        
        $this->email->subject('Email Test ' . microtime(TRUE));
        $this->email->message('Testing email config with new port');
        
        $this->email->send(FALSE);
        header("content-type: text");
        echo ($this->email->print_debugger());
        die("done");
    }

When I look at the output of print_debugger(), I don't see any STARTTLS command:
Code:
220 SG ESMTP service ready at ismtpd0003p1sjc2.sendgrid.net
<br /><pre>hello: 250-smtp.sendgrid.net
250-8BITMIME
250-PIPELINING
250-SIZE 31457280
250-STARTTLS
250-AUTH PLAIN LOGIN
250 AUTH=PLAIN LOGIN
</pre><pre>from: 250 Sender address accepted
</pre><pre>to: 250 Recipient address accepted
</pre><pre>data: 354 Continue
</pre>250 Ok: queued as tegwA0rzQKWW-zhM2QCUYg
<br /><pre>quit: 221 See you later
</pre>Your message has been successfully sent using the following protocol: smtp<br /><pre>Date: Thu, 23 Mar 2017 17:57:40 -0700
From: &quot;sneakyimp workstation&quot; &lt;[email protected]&gt;
Return-Path: &lt;[email protected]&gt;
To: [email protected]
Subject: =?UTF-8?Q?Email=20Test=20149031706?==?UTF-8?Q?0.8739?=
Reply-To: &lt;[email protected]&gt;
User-Agent: CodeIgniter
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: &lt;[email protected]&gt;
Mime-Version: 1.0


Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Testing email config with new port
</pre>
Is the server output truncated or something? How can I be sure that my server's interactions with the SMTP gateway are encrypted?


  affect vs effect
Posted by: skunkbad - 03-23-2017, 02:53 PM - Forum: Lounge - Replies (8)

I consider myself a real idiot when it comes to the English language, and perhaps a lot of other things. Every time I see the DB function affected_rows, it makes me wonder if it should be effected_rows. So I checked it out on Google, and talked to somebody else about it, and it didn't help.

If affect is supposed to be a verb, and effect a noun, but "affected rows" makes it an adjective, right? Nowhere in the dictionary that I'm looking at does it say that affected or effected would be right.


  Looking for Experienced Developer in CodeIngniter Full Time (home based)
Posted by: pilartw - 03-23-2017, 11:16 AM - Forum: Jobs - Replies (3)

We are looking for long term developers to work with us creating websites for our customers.
Working hours are 40 hours per week, Monday to Friday during UK business hours. 9:00 - 17:00 London, UK Time
Please email [email protected] with answers to the following questions.

From 1 to 10 (10 being excellent)

What is your experience from 1 to 10 in MySQL
What is your experience from 1 to 10 in PHP
What is your experience from 1 to 10 in converting PSD to HTML
What is your experience from 1 to 10 in WordPress
What is your experience from 1 to 10 in CodeIgniter
What is your experience from 1 to 10 in Bootstrap


  PhpStorm 2017.1 Released today
Posted by: InsiteFX - 03-23-2017, 10:47 AM - Forum: Lounge - Replies (2)

PhpStorm 2017.1 Released today

WHAT’S NEW IN PHPSTORM 2017.1


  Add option in select and set_select than
Posted by: Tokotome - 03-23-2017, 08:23 AM - Forum: General Help - No Replies

Hello, everyone. I`m new to Codeigniter and PHP too. So here is my problem. I have two dropdowns each with values - '1', '2' and '3'(set_selected).  By default is '3' from the first and disables the second dropdown, also prepending to 2nd a new disabled empty option and remove it if '1' or '2' is selected from the 1st than(using JQuery) Any suggestions how to set_select the new option in 2nd dropdown or maybe I`ll need to change my concept? Thanks


  CI4 Database Pessimistic Locking Row
Posted by: arma7x - 03-23-2017, 04:38 AM - Forum: CodeIgniter 4 Feature Requests - Replies (4)

Does codeigniter 4 database library will have pessimistic locking feature like laravel eloquent does, https://laravel.com/docs/5.4/queries#pes...ic-locking


  Combine input val ajax from two forms.
Posted by: wolfgang1983 - 03-23-2017, 03:33 AM - Forum: General Help - Replies (1)

When user asks a question on my form and needs to upload a image they can by clicking on button and opens a bootstrap modal. When the user ask a question that question has its own id.

I would like to know how to combine these to on my ajax code below

Code:
var form_upload = new FormData($('#form-upload')[0]);
var question_code = $('#form-ask #question_code').val()

Question: How to combine question code val with the form upload?


Code:
$('input[id=\'file\']').on('change', function(e) {
    if (typeof timer != 'undefined') {
        clearInterval(timer);
    }

    timer = setInterval(function() {
        if ($('input[id=\'file\']').val() != '') {
            clearInterval(timer);

            // Form-upload is in bootstrap modal
            var form_upload = new FormData($('#form-upload')[0]);
            var question_code = $('#form-ask #question_code').val()

            $.ajax({
                url: "<?php echo base_url('question/ask/upload');?>",
                type: 'post',
                dataType: 'json',
                data: form_upload,
                cache: false,
                contentType: false,
                processData: false,
                success: function(json) {
                    if (json['error']) {
                        alert(json['error']);
                    }
                },
                error: function(xhr, ajaxOptions, thrownError) {
                    alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                }
            });
        }
    }, 500);
});


Photo Class stdClass not found
Posted by: ibitcm - 03-23-2017, 03:01 AM - Forum: General Help - Replies (2)

Please ada yang bisa bantuin gak....?
errornya kayak gini ..

A PHP Error was encountered

Severity: Error

Message: Class 'stdClass' not found

Filename: mysqli/mysqli_result.php

Line Number: 183



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.