Tagged Questions
5
votes
2answers
172 views
How to achieve N-Tier type in Codeigniter MVC
I know that N-Tier intended to separate layers on different network
but I would like to have the same code separation in codeigniter
I got this idea to have
Model : for database CRUD - > Data layer
...
4
votes
2answers
306 views
Can REST API be used as business layer?
I am using PHP Codeigniter MVC design pattern
and I had this project with some sort of specific business processes
In my application I will be dealing with 2 existing REST APIs:
Google
Trello
...
4
votes
2answers
519 views
Controllers in CodeIgniter
I little bit new to the CodeIgniter framework and this is my first project with this framework. During a chat on StackOverflow somebody said that we need to make controllers tiny as possible.
...
4
votes
1answer
2k views
How to Properly Make use of Codeigniter's HMVC
I have been having problems wrapping my brain around how to properly utilize the modular extension for Codeigniter. From what I understand, modules should be entirely independent of one another so I ...
3
votes
8answers
993 views
If you were to build an app like Craigslist, would use an off-the-shelf framework or write your own?
Title is the question.
And why I am asking is because from what I read about most PHP frameworks (e.g. Code Igniter, Kohana, Cake, Zend) is that they're ether too complex, or are designed mostly for ...
3
votes
3answers
3k views
How to start with PHP and CodeIgniter? [closed]
When I'm writing code in PHP, I don't understand how to do it logically. Nor do I know where to start. I know basic things in PHP, and want to start using CodeIgniter framework, but I'm lost and don't ...
3
votes
2answers
1k views
What is the correct way to implement Auth/ACL in MVC?
I am looking into making a correctly laid out MVC Auth/ACL system. I think I want the authentication of a user (and the session handling) to be separate from the ACL system. (I don't know why but this ...
3
votes
1answer
241 views
How can I profile database queries from PHP?
CodeIgniter has a very nice feature called a Profiler, which displays information at the foot of a page, information such as GET, Memory, POST data. It also shows database queries and how long they ...
2
votes
1answer
1k views
PHP Framework for RESTful Web Service
I have been going round in circles with this question for days - which is the best PHP framework to use to create a RESTful Web service?
I've trawled the web for info and have come across three main ...
2
votes
2answers
222 views
Codeigniter/MVC workflow
Bit of a workflow question.
I'm just staring with MVC and wondered how other people usually work in MVC? The 2 options I see is to code the model and controller completely first and then work on the ...
2
votes
1answer
457 views
Is there a scalable multi-site strategy with codeigniter?
I've been looking for a efficient and secure way of enabling multi-site capabilities to codeigniter for a while.
These two(one & two) articles I found pretty interesting, but they don't seem to ...
1
vote
1answer
81 views
Fitting an established site into a CI framework
I manage a rather large, feature full nightmare of a site which has no end of feature creep settings/options/etc.
Up to now its been coded in a procedural/functional way and would like to move to an ...
1
vote
0answers
121 views
Codeigniter modular separation with Phing
I am thinking of managing a product source I am doing using Codeigniter + HMVC.
Right now my folder structure is something like this:
application
|-modules
|-module1
| |--controllers
...
1
vote
0answers
280 views
codeigniter pagination - how to have multiple sets of pagination links on one view
Problem
I don't know how to create two sets of pagination links one view.
Background Information
I have a situation where I have parent / child tables that I have to display on the same view - ...
0
votes
2answers
115 views
What is a good technique to prevent unauthenticated users from accessing controller methods?
I have an event(s) controller:
class Event extends CI_Controller{
public function index(){
}
public function foo(){
}
//Shouldn't be able to use this method unless logged in
...
0
votes
1answer
189 views
Using frameworks or writing code without any framework ? Which is better for 3 months aged PHP programmer? [duplicate]
Possible Duplicate:
When do I need to use a framework?
When should I start learning a PHP Framework
I started to learn PHP about four months ago, and I have been writing some applications ...
-1
votes
1answer
102 views
Why should I use the function migration in codeigniter?
What is wrong with using database tables with phpmyadmin or mysql? What are the benefits, if I'll use 'migration'?
-2
votes
0answers
55 views
how to create user specific URL in PHP codeigniter? [closed]
i am developing a website in php codeigniter, where user can create there profile and may share it with other in URL form. e.g if a user 'Ricky' has created his profile he should be able to create URL ...
-2
votes
0answers
39 views
URI Routing in codeigniter [closed]
I have implemented CODEIGNITER FRAMEWORK in PHP. Now I am facing problem with URI routing. I have also refer Usermanual of CI and some sample code from reference sites.
$route['codes'] = ...
-3
votes
1answer
1k views
CodeIgniter routing helping
Can you explain these two lines of code in
applications/config/routes.php file in the CodeIgniter framework?
$route['default_controller'] = 'pages/view';
$route['(:any)'] = 'pages/view/$1';