PHP code example of newday-me / think-cms

1. Go to this page and download the library: Download newday-me/think-cms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

newday-me / think-cms example snippets


{$widget->form('text', ['title' => '用户昵称', 'name' => 'user_nick', 'value' => ''])}

{$widget->form('tag', ['title' => '文章标签', 'name' => 'article_tags', 'value' => ''])}

{$widget->form('image', ['title' => '文章封面', 'name' => 'article_cover', 'value' => ''])}

{$widget->form('select', ['title' => '文章分类', 'name' => 'article_cate', 'list' => $cate_list])}

{$widget->form('summer_note', ['title' => '文章内容', 'name' => 'article_content', 'value' => ''])}