Tagged Questions
5
votes
3answers
303 views
how to structure MVC models and ORM models
I have some trouble getting a good folder structure in my project and i would like to know what other ways i could use to structure my files.
I'm currently working in an MVC sturctured folder.
www/
...
0
votes
1answer
104 views
Places to store basic data
I am using PHP.
I'm building a fully modular CMS, which is destined for the public. Some people might view this as a framework, but I intend to write a set of extensions for it, extensions that will ...
0
votes
2answers
184 views
Is there any proprietary PHP MVC framework?
I was doing a small list of PHP MVC framework (like Zend, CakePHP, Yii etc...) and I noticed that all of them are open source.
Then I tried to find some proprietary framework, but my research was ...
3
votes
1answer
169 views
Rewriting a Procedural PHP App - Should we use a framework?
We have an app that's currently only got about 120 users. The userbase will probably grow by 50% over the next 12 months - but we're going to have to separate storage etc. because we're looking at ...
1
vote
7answers
233 views
Should PHP view files be called something other than '.php'?
By default, any file that PHP touches is usually suffixed with .php. It's universally understood by Apache / Nginx as the default for PHP files and most setups expect PHP files to end in this ...
3
votes
4answers
331 views
Handling Errors In PHP When Using MVC
I've been using Codeigniter a lot recently, but one thing that gets on my nerves is handling errors and displaying them to the user. I've never been good at handling errors without it getting messy. ...
1
vote
3answers
254 views
Can you call any php model class in an MVC from the controller?
I'm creating a simple MVC at the moment and am wondering if it's 'correct' to be able to call any model class directly from the controller to get the data to send to the view?
I have the following ...
2
votes
2answers
454 views
How can I design a model layer without ORM, and when should I use it?
I'm a PHP developer who started with CodeIgniter. In it, designing models was easy: it seemed like each method defined in models was the equivalent of static methods in a normal, objected-oriented ...
4
votes
2answers
235 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.
...
2
votes
1answer
205 views
How is the facade pattern different from abstraction layers?
I just read about the facade pattern and found this example where a client (user of a computer) invokes a startComputer() method which calls on all the complex stuff:
Source: wikipedia
/* Complex ...
-2
votes
2answers
229 views
why use a form object when you can get needed data from view object's html?
I am working with server side code.
I have a request object that handles request data validation and filtering.
I have a view object that uses template files to generate html for output. the ...
3
votes
2answers
172 views
New PHP project, how to best architect it
I have already done a PHP project, and I did a number of things pretty wrong :)
I just had all pages as scripts with php mixed in with html. I also wasn't using a framework like cakephp. And I didn't ...
1
vote
1answer
372 views
Do modular PHP frameworks really improve applications?
One of the goals of modular frameworks like Kohana or Alloy is to make it easy to add and remove components (i.e. "plugins" or "modules").
However, in all the larger projects I have ever worked - the ...
3
votes
1answer
98 views
Workflow for a plugin assignment
I'm starting a new project in PHP, a plugin for a website that grabs additional data from it through cURL, getContents etc and re-tabulates it in excel. It's a local project, basic script like with a ...
1
vote
4answers
201 views
Need recommendation for transferring ASP.NET MVC skills to PHP
I am looking to translate my skills in .NET to PHP - specifically in regards to ASP.NET MVC. At work I am currently using .NET MVC 2.0 on a variety of projects and thoroughly enjoy the platform. ...