PHP Classes
elePHPant
Icontem

MVC 4 Dummies: Web development PHP MVC framework

Recommend this page to a friend!
  Info   View files Documentation   View files View files (154)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-03-13 (1 year ago) RSS 2.0 feedStarStarStarStar 71%Total: 700 All time: 4,493 This week: 1,099Up
Version License PHP version Categories
mvc-4-dummies 0.1GNU General Publi...5.4PHP 5, Libraries, Design Patterns
Description Author

This package is a Web development PHP MVC framework.

It provides a base class to implement controllers, router, database access using MySQL, error handling, and view template engine.

The template engine extends the Smarty template engine also included in the package.

Picture of Ali Sharifi
  Performance   Level  
Name: Ali Sharifi <contact>
Classes: 3 packages by
Country: Iran Iran
Innovation award
Innovation award
Nominee: 1x

Details

PHP MVC 4 Dummies

A Simple PHP MVC Framewok

make Hello World

edit /routes.php

Router::get("/","HomeController","index");

in /controllers make HomeController.php

class HomeController extends BaseController
{
      public function index(){
          $this->templateEngine->assign('greeting','hello world');
          $this->templateEngine->display('home.tpl');
      }  
}

in /views/templates make home.tpl

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>hello world</title>
</head>
<body>
    <h1>{$greeting}</h1>
</body>
</html>

  Files folder image Files  
File Role Description
Files folder imageassets (1 directory)
Files folder imagebiz (1 file, 1 directory)
Files folder imageconf (3 files)
Files folder imagecontrollers (3 files)
Files folder imagecore (6 files, 1 directory)
Files folder imagelibs (1 directory)
Files folder imagemodels (1 file)
Files folder imageviews (4 directories)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Image file favicon.ico Icon Icon image
Accessible without login Plain text file index.php Example Sample output
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data
Accessible without login Plain text file routes.php Output Sample output

  Files folder image Files  /  assets  
File Role Description
Files folder imagejs (1 file)

  Files folder image Files  /  assets  /  js  
File Role Description
  Accessible without login Plain text file jquery.min.js Data Auxiliary data

  Files folder image Files  /  biz  
File Role Description
Files folder imagemembership (1 file)
  Plain text file Validator.php Class Class source

  Files folder image Files  /  biz  /  membership  
File Role Description
  Plain text file Authenticator.php Class Class source

  Files folder image Files  /  conf  
File Role Description
  Accessible without login Plain text file app.php Conf. Sample output
  Accessible without login Plain text file forms.php Conf. Sample output
  Accessible without login Plain text file messages.php Conf. Sample output

  Files folder image Files  /  controllers  
File Role Description
  Plain text file BaseController.php Class Class source
  Plain text file HomeController.php Class Class source
  Plain text file SimpleFormController.php Class Class source

  Files folder image Files  /  core  
File Role Description
Files folder imagehelper (1 file)
  Accessible without login Plain text file autoload.php Aux. Class source
  Plain text file ErrorHandler.php Class Class source
  Plain text file MysqlDBHandler.php Class Class source
  Plain text file Router.php Class Class source
  Plain text file TemplateEngine.php Class Class source
  Plain text file URL.php Class Class source

  Files folder image Files  /  core  /  helper  
File Role Description
  Plain text file RouterHelper.php Class Class source

  Files folder image Files  /  libs  
File Role Description
Files folder imagesmarty (3 files, 2 directories)

  Files folder image Files  /  libs  /  smarty  
File Role Description
Files folder imageplugins (47 files)
Files folder imagesysplugins (70 files)
  Accessible without login Plain text file debug.tpl Data Auxiliary data
  Plain text file Smarty.class.php Class Class source
  Plain text file SmartyBC.class.php Class Class source

  Files folder image Files  /  libs  /  smarty  /  plugins  
File Role Description
  Accessible without login Plain text file block.textformat.php Aux. Auxiliary script
  Accessible without login Plain text file function.counter.php Aux. Auxiliary script
  Accessible without login Plain text file function.cycle.php Aux. Auxiliary script
  Accessible without login Plain text file function.fetch.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_checkboxes.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_image.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_options.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_radios.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_select_date.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_select_time.php Aux. Auxiliary script
  Accessible without login Plain text file function.html_table.php Aux. Auxiliary script
  Accessible without login Plain text file function.mailto.php Aux. Auxiliary script
  Accessible without login Plain text file function.math.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.capitalize.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.date_format.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.debug_print_var.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.escape.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.regex_replace.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.replace.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.spacify.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.truncate.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.cat.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_characters.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_paragraphs.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_sentences.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_words.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.default.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.escape.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.from_charset.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.indent.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.lower.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.noprint.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.string_format.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.strip.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.strip_tags.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.to_charset.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.unescape.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.upper.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.wordwrap.php Aux. Auxiliary script
  Accessible without login Plain text file outputfilter.trimwhitespace.php Aux. Auxiliary script
  Accessible without login Plain text file shared.escape_special_chars.php Aux. Auxiliary script
  Accessible without login Plain text file shared.literal_compiler_param.php Aux. Auxiliary script
  Accessible without login Plain text file shared.make_timestamp.php Aux. Auxiliary script
  Accessible without login Plain text file shared.mb_str_replace.php Aux. Auxiliary script
  Accessible without login Plain text file shared.mb_unicode.php Aux. Auxiliary script
  Accessible without login Plain text file shared.mb_wordwrap.php Aux. Auxiliary script
  Accessible without login Plain text file variablefilter.htmlspecialchars.php Aux. Auxiliary script

  Files folder image Files  /  libs  /  smarty  /  sysplugins  
File Role Description
  Accessible without login Plain text file smarty_cacheresource.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_cacheresource_custom.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_cacheresource_keyvaluestore.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_config_source.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_cacheresource_file.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compilebase.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_append.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compile_assign.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compile_block.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compile_break.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compile_call.php Aux. Auxiliary script
  Accessible without login Plain text file smarty_internal_compile_capture.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_config_load.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_continue.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_debug.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_eval.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_extends.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_for.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_foreach.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_function.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_if.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_include.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_include_php.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_insert.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_ldelim.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_nocache.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...te_block_plugin.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...function_plugin.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...rivate_modifier.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co..._block_function.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...object_function.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...rint_expression.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...egistered_block.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...stered_function.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_co...pecial_variable.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_rdelim.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_section.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_setfilter.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_compile_while.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_config.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_configfilelexer.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_configfileparser.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_config_file_compiler.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_data.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_debug.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_filter_handler.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_fu...on_call_handler.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_get_include_path.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_nocache_insert.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_parsetree.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_eval.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_extends.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_file.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_php.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_registered.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_stream.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_resource_string.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_sm...emplatecompiler.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_template.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_templatebase.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_templatecompilerbase.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_templatelexer.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_templateparser.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_utility.php Aux. smarty lib
  Accessible without login Plain text file smarty_internal_write_file.php Aux. smarty lib
  Accessible without login Plain text file smarty_resource.php Aux. smarty lib
  Accessible without login Plain text file smarty_resource_custom.php Aux. smarty lib
  Accessible without login Plain text file smarty_resource_recompiled.php Aux. smarty lib
  Accessible without login Plain text file smarty_resource_uncompiled.php Aux. smarty lib
  Accessible without login Plain text file smarty_security.php Aux. smarty lib

  Files folder image Files  /  models  
File Role Description
  Plain text file User.php Class Class source

  Files folder image Files  /  views  
File Role Description
Files folder imageconfigs (1 file)
Files folder imagemy_plugins (1 file)
Files folder imageplugins (6 files)
Files folder imagetemplates (3 files)

  Files folder image Files  /  views  /  configs  
File Role Description
  Accessible without login Plain text file test.conf Data Auxiliary data

  Files folder image Files  /  views  /  my_plugins  
File Role Description
  Accessible without login Plain text file function.load_presentation_object.php Aux. Auxiliary script

  Files folder image Files  /  views  /  plugins  
File Role Description
  Plain text file cacheresource.apc.php Class Auxiliary script
  Plain text file cacheresource.memcache.php Class Auxiliary script
  Plain text file cacheresource.mysql.php Class Auxiliary script
  Plain text file resource.extendsall.php Class Auxiliary script
  Plain text file resource.mysql.php Class Auxiliary script
  Plain text file resource.mysqls.php Class Auxiliary script

  Files folder image Files  /  views  /  templates  
File Role Description
  Accessible without login Plain text file home.tpl Data Auxiliary data
  Accessible without login Plain text file layout.tpl Data Auxiliary data
  Accessible without login Plain text file simple-form.tpl Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:700
This week:0
All time:4,493
This week:1,099Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:71%StarStarStarStar
Rank:249