Hi,
Ok so Im running 1.7.2 and I installed the codeigniter-modular-seperation library (the newest version which is maintained by Phil Sturgeon , as the wiki said to install that version if Im using 1.7 or above)
-- anyways, the documentation is super light, just says put MY_Router and MY_Loader in the libraries folder which Ive done, a...
I have a CodeIgniter site and the problem is I have:
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
But this results in people going from example.com to www.example.com/index.php/
I'd like them simply to go to www.example.com
Any ideas? Also, if they're at example.com/page1 they s...
I'm using TOAST and it's doing a great job testing models... but what about views?
...
I want to develop a edit form for newsletter. I have done this but i can't load category list in same view.
if user click on newsletter its open in edit view, in this edit view i want to give him a option for category selection option. categories are stored in different table name cat.
i have tried it but its showing only one category....
Can you recommend me some book about CodeIgniter? I have knowledge about oop but not about mvc or other frameworks.
...
Hi,
Quick question about CI.
I have a view with a form, several text input fields and a file upload.
I want to be able to take the input from the text fields, save it to the DB, and then upload the image.
I've achieved this by having the upload code in a controller, and if the upload is successful, a call to my Model is made to update...
Hi There,
I am currently adding a purchase history section to payment system, the system is built in PHP (codeigniter framework) and mysql. The idea of the payment history section is that all the customer purchases are grouped together by date, so in the end the HTML would look similar to this,
My question is I can get the data out o...
This is probably pretty simple but I am new to this.
All I want to do is put some of the current links I have working inside a dropdown menu.
Here are the working links I would like to display in a dropdown:
<p>
<?=anchor('tasks/AddTask', 'Add a Task')?>
<?=anchor('tasks', 'All Tasks')?>
<?=anchor('tasks/mjh', 'Mike')?>
<?=anchor('tas...
Hi Everyone!
Real basic CI question here, which I cant find anything on in the documentation. I think I may need some further configuration?? I have a function which loads a view and it works correctly, but when I send it parameters its doesn't load the view, any ideas??
Heres code with params (view does not load)
function grid($heigh...
Are there any good articles on naming comprehensive naming conventions?
I'm looking to clean up some code... everything from assets to models (Codeigniter) to HTML and CSS.
I'm also curious how to structure the CSS... is it better to give everything a unique class ie search-bar-icon or is it better to repeat classes like .search span.i...
I've got an image uploader that doesn't upload images. I'm not receiving any errors and i've checked the folder permissions and even on 777 no images are getting uploaded.
You can see the code here: http://pastebin.com/gvH1dKh9
The value for gallery_path is /home/domain/public_html/assets/images/gallery
The value for gallery_path_url...
Hello..
I am new to PHP and I was hoping someone could help me determine what the best way to go about creating a reusable view would be. What I have is a form that will be used to Add or Edit data. Therefore the view will be identical except in the case of an Edit the form fields will be populated.
So I am creating an HTML helper that...
Hi im making a image gallery in useing the following tutorial at
http://superdit.com/2010/06/27/basic-image-gallery-with-codeigniter/
i keep getting this error
wrong parameter count for strstr()
google'd and tried this and found i needed to remove a third parameter.
I removed the third parameter from line38 $ext = strrev(strstr(...
I need to know whether I should re-call my helper redirectIfNotLoggedIn() inside ajaxFunction, since it's already in the constructor:
class Group extends Controller {
function Group() {
parent::Controller();
redirectIfNotLoggedIn();
}
function ajaxFunction() {
//I am called via AJAX
//Do I n...
I've trying to add a messageboard to my Codeigniter web site. Everything has gone well except for one little part: I'd like my log in from the main site to carry over to the messageboard. Since the messageboard is not able to run in Codeigniter, I made a subdomain to run the messageboard in. This means that the main site and the messa...
I am building a web application and have opted to use similar table and field names to Wordpress in my application. By that I mean I have a users table and a usermeta table similar to how Wordpress works.
Forgive me for making this question so big, I opted to be as descriptive as possible in this question.
The usermeta table has the fo...
I have a custom Auth library in CodeIgniter and want to send data from the signup form to it.
I know to send the data to a controller I do:
echo form_open('login/validate');
and the data is sent to the validate function of the login controller. So how do I send the data to a library rather than a controller?
...
Hi Everyone!
For some reason I cannot get the error logging to work, I'm getting the white screen of death and I'm hoping an error log will be able to shed some light on the situation!
My index.php has
error_reporting(E_ALL);
I have also made sure that the system/logs directory has appropriate permissions,
If the page fails to l...
hi guys,
SORRY FOR THE LONG POST. I JUST WANT TO BE CLEAR!! :cheese:
I am using the stated template library in my ci setup and everything works great except for when i use Mr. Haughin's facebook_connect!
facebook_connect works beautifully if I call anything in a separate view file in my controller like so:
function facebookconnect...
hello
i want to build a project using codeigniter, the project conisist of 2 levels, USER level and ADMIN level
i'm now building the ADMIN level, is it the best practice to make all my admin functions in 1 controller ? like add/modify/delete users and add/modify/delete admins etc....
or make many controllers everyone has it's job li...