I am currently working on a site at the moment that requires multiple domains to be available and each domain needs to deliver a different language version of the website.
For this reason I have chosen ExpressionEngine and the Multi Site Manager. However I am having trouble getting it initially setup, and I am having trouble understandi...
The codeigniter library, UAgent, is giving me errors on installation. Here is the error:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Shared_Framework::__construct(),
called in /system/libraries/Loader.php on line 928 and defined
Filename: libraries/Shared_Framework.php
This happens...
Hello I want to have a form_radio() set as obligatory field in codeigniter any ideas on how can I do that?
this is my form:
echo form_radio('radio','earing',FALSE)."earings";
echo form_radio('radio','bag',FALSE)."bag";
echo form_radio('radio','bracelet',FALSE)."bracelet";
echo form_close();
...
I'm wondering if there is something wrong with my CI setup. If I load the base_url ie http://localhost/~User/project/
then it loads perfectly, adding the index.php before the default controller. However,
my config file has
$config['index_page'] = '';
As a test I returned this value to 'index.php'. When I loaded the base_url after t...
Hi, I have an issue when posting fields like the following in codeigniter
type="checkbox" name="test[some content]"
Notice the space between [some content]. If there is no space it works fine, but I need it to have space. Any help is greatly appreciated.
...
Hi everyone,
I am using code-igniter, and some of my views require jquery. Because they must be used in multiple places they must call jquery in their file, however since they are referencing an external file, calls to $(document.ready) are evaluated before loading jquery and therefore fail. Is it possible to put jquery in the body and ...
Hello.
I have recently started using the CodeIgniter framework for my PHP development.
I was just curious as to correct usage.
Essentially I have the following situation.
I have a controller entitled 'items'
I want it so if the user goes to items/index they get a list of caetgories, if they go to items/category-name they get a list ...
Please help I want to use first URI segment into my CodeIgniter website.
Like when I open these url they opens my profile:
http://www.facebook.com/buddyforever
or
http://www.myspace.com/zarpio
How can I do this with CodeIgniter? I checked _remap function but first coming controller how to hide controller?
...
I use redirect() (from uri helper) in every function who need to load the main view of my app. It redirect to the same function. My goal is to get the same clean uri, even when i use a pages' feature (that call other controller). Is it good practice? When should i use redirect()? Are there any other solution to get a similar result?
th...
Hello,
I do struggle with it as hell. Can someone tell me what is wrong with that code.
In a word:
CI + jquery form submit. I try to add inline row.
java part
var pair = $('#pair').attr('value');
var entry = $('#entry').attr('value');
var exit = $('#exit').attr('value');
var buysell = $('#buysell').attr('value');
...
I really want to setup a portable php environment. I would need to use CodeIgniter, WAMP or XAMPP with MySQL and carry any projects with me between my computers/laptops. All of this would need to be on a USB flash drive with an editor.
Is this even remotely possible?
Thanks!
...
I am working on an public facing interface that makes use of a database that is effectively untrusted due to multiple applications accessing it.
I would like a clean way of encoding all my output to UTF-8 with htmlentities to prevent XSS.
Codeigniter (CI) has nothing built in. The filter that is there is meant for input and does not ac...
Hi,
I am writing an application in CodeIgniter and I have concluded that it's best to write two applications. One for back office and one for client use.
I would like to have just one login screen. It will be in the back office application but if a client user logs in then I want to redirect to the client app and create a session there...
Hi Stackers,
Basically I have a mostly Ajax-based site. When you load up a result, it appears via Ajax, and the URL address bar changes from mysite.com to mysite.com/#xyz/A_Random_Title.
A_Random_Title is an SEO-friendly formatted title of the thing loaded up, but the important part is #xyz. xyz is the ID of the loaded result and is us...
Hi everyone,
I am using CodeIgniter, and in one of my models I would like to refer the $this which is used in $this->load->model and $this->load->view, instead of the $this which refers to the object itself.
Is it possible?
Thanks,
Lemiant
...
Hi friends,
It's ok to upload image in file using codeigniter upload library with this example.
However, I want to send filename in database. Can anybody pls give me example ? Thanks
<?php
class Upload extends Controller {
function Upload()
{
parent::Controller();
$this->load->helper(array('form', 'url'));
}
function index...
Fatal error: Class 'Controller' not found in <local_path>\system\application\controllers\welcome.php on line 3
<?php
class Welcome extends Controller {
function __construct()
{
parent::Controller();
}
function index()
{
$this->load->view('welcome_message');
}
}
/* End of file welcome.php */...
Hi everyone,
As above: Is it possible to regenerate Code Igniter sessions manually? I'm looking for something similar to session_regenerate_id in PHP sessions, so that I could call it manually when a user went through privilege escalation.
Thanks,
Lemiant
...
My company has been setting up a different server for read and write access of mysql DB. Previously, we use custom php script.
However, I was recently given task to create tools by leveraging CI. I've done it on test server. Now, I'm confused, how to implement it on live server.
...
Hi,
i've set up Exim4 on my Ubuntu machine.
I've started learning CodeIgniter and when sending an e-mail through there email library i get the following if I ask for the debug status. Looks OK i suppose, but i never receive e-mail on [email protected]. Also doesn't work for [email protected], anyone has an idea?
220 Co...