4 Star 6 Fork 4

Staford / DoMVC

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#模板语法 Example: 模板语法 =>编译结果 {$var} =>

  常量:__STATIC__ => PHP常量STC_DIR目录的相对路径,方便外部CSS、JS等资源调用
  
  数组使用语法:
  $array = array('one'=>'hello','two'=>'world');
  {$array[0]} => <?php echo $array[0]?>
  {$array['one']} => <?php echo $array['one']?>
  
  模板循环语法:
   {from 0 to 100 ++}
   
   {/from}
  
  {loop($arr as $v)}
   value is {$v}
  {/loop}
  
  {loop($arr as $k=>$v)}
   key is {$k},value is {$v}
  {/loop}
  
  条件判断语法:
   {if($a<3)}
       do something
   {/if}
  
  {if($a<3)}
       do something
  {else}
       do else
  {/if}
  
  {if($a<3)}
       do something
  {elseif($a<10)}
       do elseif
  {else}
       do else
  {/if}
  
  {switch($a)}
  {case 'one'}
       do something
  {/case}
  {case 'two'}
       do something
  {/case}
  {default}
       do something
  {/switch}
  
        自带几个常用函数,如果不习惯,可以使用PHP原生语言为模板语言。

About

DoMVC框架是在前一代DouPHP框架的基础上拓展、创新出来的新一代的PHP框架,依旧简单易于使用。 expand collapse
PHP
Cancel

Releases

No release

DoMVC

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/staford/DoMVC.git
git@gitee.com:staford/DoMVC.git
staford
DoMVC
DoMVC
master

Search