Problem I have the following in the header.php file which is included in all of my views: $dh = opendir(Vs.get_class($this).’/js’) […]
Tag: mvc
Simplifying my dispatch and routing class
Problem I started off with a simple dispatch class, but it’s grown and I’m sure it could be simplified in […]
Simple MVC – Displaying a Customer
Problem I would like to ask about possible improvement of this code. I have created very simple code using MVC […]
Model for math facts
Problem I’ve written a model for an app that generates math facts kids have to solve by evaluating the operation […]
Simple wiki with PHP
Problem I’m attempting to create a basic wiki for personal use. I’ve got a pretty good start, but the code […]
Refusing to use a common template engine
Problem As the title says, I refuse to use a common template engine. I have my reasons, so instead of […]
Laravel 4 clean code review of users controller and model, trying to maintain MVC structure
Problem I’d like you to review my attempt at creating an authorization class and let me know if there is […]
Solving quadratic equation using quadratic formula
Problem I’ve just started learning C# + MVC. Here’s my attempt with MVC: using System; namespace QuadraticSolver { class Program […]
MVC app to associate users with roles
Problem I’m a beginner to web programming and just started a MVC project from scratch. Because this will become a […]
Laravel UserController Design
Problem <?php namespace AppHttpControllers; use IlluminateHttpRequest; use AppUser; use Auth; class ProfileController extends Controller { public function __construct() { $this->middleware(‘auth’); […]