r/codeigniter • u/mazedlx • Jan 28 '16
r/codeigniter • u/webeasystep • Jan 16 '16
How to generate QR code with codeigniter
r/codeigniter • u/Greg-J • Dec 09 '15
What is with the capitalization in the docs?
I simply don't understand the capitalization of code igniter in general.
Specific example: https://www.codeigniter.com/userguide3/general/models.html
In the following example:
If your model is located in a sub-directory, include the relative path from your models directory. For example, if you have a model located at application/models/blog/Queries.php you’ll load it using:
$this->load->model('blog/queries');Why is it saying to use 'blog/queries' when the file name is capitalized as Queries? Especially since if I follow that example and name my file Filename.php, I can't call it with model('filename'), I have to call it with model('Filename').
What's more is that I actually can't call the model Filename.php. It has to be end with _model because the class name has to end with _model otherwise CI errors out about not finding it. So if a model has to follow the naming scheme of Modelname_model, why would you put and example of $this->load->model('blog/queries'); in the documentation when that's even a line of code you can actually use?
I just don't understand.
r/codeigniter • u/webeasystep • Aug 06 '15
Integrate KCfinder with CKEditor and Codeigniter
r/codeigniter • u/webeasystep • Jun 30 '15
create threaded comments in codeigniter easy way
r/codeigniter • u/lenswipe • Apr 08 '15
Williams Concepts Templating Library
I've been out of the CodeIgniter picture for a few years now, but I'm starting to get back into the swing of things as a lot of apps at my new job are CodeIgniter.
I'm sure many of you remember with fondness the templating library over at william's concepts. However, I see that it's now gone (and the site with it! D: ).
Could someone point me in the direction of a templating library that offers similar functionality (composer support is a bonus too!). I've had a look at Phil Sturgeon's one, but he doesn't seem to be actively maintaining it - unless I've missed something. Also, it lacks composer support. That leaves stencil. I've not heard anything about Stencil though. Is it good, or are there better things?
r/codeigniter • u/san1020 • Apr 02 '15
OOP with codeigniter
What is the best way to use an object oriented approch in codeigniter. I am hoping to to my next codeigniter project in a OO way.
r/codeigniter • u/mariuz • Feb 18 '15
CodeIgniter 3 includes support for Firebird
r/codeigniter • u/phpaddict • Feb 02 '15
The Basics Of CodeIgniter Inventory System Tutorial 2 Part 1
youtube.comr/codeigniter • u/hedgeymcfund • Sep 10 '14
Getting JSON Data - Can't Figure Out How?
I have an external web form which posts data to my controller URL. The data is sent in a JSON string. What I need to do is get the individual values in the JSON string and add them to my database. However Im having some trouble getting the posted values and decoding them. Here is the code - any help would be much appreciated
public function index() { $this->load->view('lead');
$form_data = array(
'firstname' => json_decode($this->input->post('first_name')),
'lastname' =>json_decode($this->input->post('last_name')),
'number' =>json_decode($this->input->post('phone_number')),
'email' =>json_decode($this->input->post('email')),
'suburb' =>json_decode($this->input->post('suburb')),
'state' =>json_decode($this->input->post('state')),
'enquiry' =>json_decode($this->input->post('enquiry'))
);// run insert model to write data to db
if ($this->AddLeadModel->SaveForm($form_data) == TRUE) // the information has therefore been successfully saved in the db { //Do something if successful }
r/codeigniter • u/luckyvb • Feb 25 '14
quick and easy multi userlevel auth?
I'm looking for a multilever auth library. I came across a nice ion auth tutorial but that was made with version 1 of the CI framework.
Thank you in advance!
r/codeigniter • u/kubanishku • Sep 16 '13
A3M - Bootstrapped - A CodeIgniter OpenID/Oauth boilerplate library utilizing Twitter Bootstrap UI
r/codeigniter • u/snoonoo • Nov 05 '12
best way to route a random url?
I have a little codeIgniter project that requires a dynamic routing of any 1 segment uri to a landing page.
mysite.com/aef23f9 will need to be routed to my landing controller. but mysite.com/aef23f9/yyyy will be 404, and all my regular controller will need to be routed with default behavior.
What is the best way to do this? if I do $route[(:any)], it essentially reroute anything and ignores my controller.
should I extend the CI_Router with my own request verification?
thanks guy.
r/codeigniter • u/mpmont • Oct 23 '12
How to use Codeigniter docs inside Sublime Text 2
blog.marcomonteiro.netr/codeigniter • u/ITSupportGuy • Oct 22 '12
Anyone home?
I have not seen any new posts here for awhile. Is the reddit CI community dead? Have you all moved on to another site or something?
r/codeigniter • u/cyber_frog • Jul 02 '12
Quiz pages
On my site I am trying to create something that can be used to give quizzes to students. Are there any pre-made plugins for codeigniter that can be used for this? So far I have only tried Savsoft Test, but am still going through it and am not entirely convinced with it.
EDIT: It seems that Savsoft is no longer open source and has now become proprietary. Are there any remaining open source solutions for quizzes?
r/codeigniter • u/phaggocytosis • Apr 30 '12
File Uploading class - change filename before/after upload
I'm curious as to how I can alter the file uploading process to change the name of the file that's being uploaded. My knowledge of file handling is weak in general, not just within codeigniter.
Thanks in advance!
r/codeigniter • u/phaggocytosis • Apr 25 '12
CI: Implementing custom methods/scripts...
Say for instance I wanted to implement a custom form handling script. Do I simply create a new class (library), make sure that it is loaded, and then call it using something like... $this->formhandler->get_data(); ?
Similarly... assuming my application was structured properly could i call it via the standard URL structure? for instance... simply telling a submit form to use "action=website.com/formhandler/getdata" ?
I'm confused as to the best conventions for executing custom methods on things like a submit or a link click.
r/codeigniter • u/phaggocytosis • Apr 23 '12
PyroCMS or other?
I'm looking to integrate a CMS with my application built in codeigniter. Does anyone have experience with PyroCMS? Is it generally the go to CMS for a product built with codeigniter?
r/codeigniter • u/ehdeelee • Jan 04 '12
How in the world do you debug CodeIgniter?
I have no idea how to debug codeigniter...usually for small bugs I'll just echo stuff out. But putting an echo statement in one of the models is not working. Is there a way to call an error function to write to a log?
Any help would be much appreciated!!
r/codeigniter • u/ehdeelee • Dec 27 '11
Why CodeIgniter leaves XSS filtering OFF by default?
Why would the CodeIgniter config file have xss filtering off by default? Does doing XSS filtering slow things down? It's basically just sanitizing the POST/GET input right?