Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to upload multiple images by append form and decode in codeigniter
Post: RE: How to upload multiple images by append form a...
HTML
<input type="file" name="userfile[]" multiple="multiple">
PHP
<?php
public function products()
{
$this->load->library('upload');
$dataInfo = array();
... |
|
alamowais |
Libraries & Helpers
|
2 |
1,534 |
08-02-2018, 05:43 AM |
|
|
Thread: Database Connection Problem
Post: RE: Database Connection Problem
The problem is in username, i realize there's additional suffix. such as suffix_user I think the same errors in Core/Loader.php make sure the username, password and host are right. |
|
alamowais |
Installation & Setup
|
3 |
2,113 |
08-02-2018, 05:36 AM |
|
|
Thread: how do I cache multiple databases (dynamic query)
Post: RE: how do I cache multiple databases (dynamic que...
You should provide the second database information in `application/config/database.php´
Normally, you would set the default database group, like so:
$db['default']['hostname'] = "localhost";
... |
|
alamowais |
CodeIgniter 3.x
|
7 |
4,816 |
07-24-2018, 09:55 AM |
|
|
Thread: can you help... in Pagination I modified View and Controller function
Post: RE: can you help... in Pagination I modified View ...
you can use the logic in controller
class Welcome extends CI_Controller
{
public function __construct() {
parent:: __construct();
$this->load->helper("url");
... |
|
alamowais |
Libraries & Helpers
|
15 |
4,916 |
07-24-2018, 09:53 AM |
|
|
Thread: mysql connection refused
Post: RE: mysql connection refused
You are working on localhost so your user must be root and password must empty
$db['default']['hostname'] = 'localhost:8080';
$db['default']['username'] = 'root';
$db['default']['passwor... |
|
alamowais |
Installation & Setup
|
5 |
5,281 |
07-24-2018, 09:50 AM |
|
|
Thread: Load view from Controller issue
Post: RE: Load view from Controller issue
Put the action in form action="<?php base_url(); ?>controller_name/function_name" and method="post"
Example:
<form id="filters_form" action="<?php base_url(); ?>controller_name/funct... |
|
alamowais |
Model-View-Controller
|
23 |
9,197 |
06-22-2018, 08:35 AM |
|
|
Thread: CodeIgniter problem after upload to hosting
Post: RE: CodeIgniter problem after upload to hosting
Base URL should be absolute, including the protocol:
$config['base_url'] = "http://somesite.com/somedir/";
If using the URL helper, then base_url() will output the above string.
Passing arguments... |
|
alamowais |
Installation & Setup
|
4 |
2,632 |
06-22-2018, 08:08 AM |
|
|
Thread: redirect funtion in codeigniter
Post: RE: redirect funtion in codeigniter
Redirectin perform at some ID or Class so you can use the following trick
$('#particularID').on('event like submit', function(e) {
e.preventDefault();
e.stopPropagation(); // only neccess... |
|
alamowais |
Installation & Setup
|
1 |
1,372 |
06-22-2018, 08:00 AM |
|
|
Thread: codeigniter 404 error on live server
Post: RE: codeigniter 404 error on live server
use the following
in config.php
$config['base_url'] = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';
in .htaccess (This should place o... |
|
alamowais |
Installation & Setup
|
4 |
8,511 |
06-22-2018, 07:43 AM |
|
|
Thread: Upgrading CI to last version
Post: RE: Upgrading CI to last version
Replace all files and directories in your system/ directory.
If you have any custom developed files in these directories, please make copies of them first.
This config file has received some updates. ... |
|
alamowais |
Installation & Setup
|
8 |
3,844 |
06-21-2018, 08:21 AM |
|
|
Thread: Ajax forbidden 403
Post: RE: Ajax forbidden 403
you can use vardump to show the path you have to define and use an alert to check the response of your function. you can cross check by using Flag response in the console of Browser though which you c... |
|
alamowais |
Installation & Setup
|
1 |
1,276 |
06-21-2018, 08:03 AM |
|
|
Thread: [Snippet] Switch language with URL
Post: RE: [Snippet] Switch language with URL
Use the codeigniter language library with this class extension: URI Language Identifier. I also use this controller for switching the language
class LangSwitch extends CI_Controller {
public functio... |
|
alamowais |
Best Practices
|
7 |
12,007 |
05-21-2018, 01:56 AM |
|
|
Thread: URL language strings
Post: RE: URL language strings
class LanguageLoader
{
function initialize() {
$ci =& get_instance();
$ci->load->helper('language');
$ci->lang->load('information','english');
... |
|
alamowais |
Libraries & Helpers
|
2 |
1,795 |
05-21-2018, 01:33 AM |
|
|
Thread: Cannot Pass More than two variable to view
Post: RE: Cannot Pass More than two variable to view
You have to call it <?=$row->price?> as in array format. |
|
alamowais |
Model-View-Controller
|
9 |
4,580 |
05-21-2018, 12:59 AM |
|
|
Thread: Forms (show and process) on the same controller or on different ones?
Post: RE: Forms (show and process) on the same controlle...
You can always extend default controller with new functionality. Codeigniter's documentation is the good place to start. |
|
alamowais |
Model-View-Controller
|
6 |
4,224 |
05-21-2018, 12:53 AM |