Tagged Questions
0
votes
1answer
95 views
CodeIgniter maintain data through Controllers
I have a main menu in my application, it loads depending on the role of the user that I validate from a table in my data base, but I have to recreate this menu everytime I call a new controller, here ...
3
votes
1answer
102 views
Best practice for generating jQuery dynamical content
I am new user of CodeIgniter and I am trying to build an application that there are lots of jQuery dynamical content.
Below I provide a code that I am using in order to be precise. The code below is ...
1
vote
1answer
111 views
Passing an object to the view in CodeIgniter
I'm trying to use an object and persist it into the data base.
I created a class in the library's folder.
...
1
vote
0answers
92 views
1
vote
1answer
71 views
Codeigniter view within a view
I'm calling a view into a view. Am I doing correctly, or is this a bad practice?
...
2
votes
1answer
645 views
Builder pattern for Codeigniter ActiveRecord queries
I am using Codeigniter and it's ActiveRecord.
I had this idea for a base class that provided a generic getter/setter for doing simple queries on a database. I have a lot of database objects that ...
0
votes
1answer
138 views
CodeIgniter Model - Correct/Secure Usage?
I'm working on my first large CodeIgniter project (and one of my first MVC projects), and I want to get some feedback on the techniques I've used so far in one of my models. Here's the code:
...
3
votes
2answers
340 views
Am I using MVC Codeigniter correctly?
I'm currently writing Report's system. I have about 20 different users with different access.
Am I doing it correctly? Can I improve my style of writing this code? All my reports based on the same ...
2
votes
1answer
750 views
CodeIgniter nav/menu insecurities
I more or less asked the same questions on stackoverflow.com, but maybe this is more for this forum. I have a hard time getting to grips with how to implement a top navigation (common for the whole ...
1
vote
2answers
622 views
Controller for an Administrator User, can this be improved? (codeigniter)
I want to write better code.
This is a simple controller class for an administrator login.
Are there conventions or tips in PHP to rewrite this code and improve it?
...
3
votes
1answer
3k views
Where should I put menu items in MVC with PHP - Model or Controller?
This is my first attempt with MVC and I almost get it, but a small thing bothers me.
I have this controller in CodeIgniter:
...
5
votes
2answers
937 views
Critique My Codeigniter Custom CMS Pages Model
I am currently developing a custom CMS being built on top of Codeigniter and was wondering if you can spot any flaws in my page fetching model code. The page fetching model is not entirely complete ...