PHPackages                             voganu/yeecms-module-tornado - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. voganu/yeecms-module-tornado

ActiveLuya-module

voganu/yeecms-module-tornado
============================

The tornado module

1.0.1(7y ago)08MITPHP

Since Jan 29Pushed 7y agoCompare

[ Source](https://github.com/voganu/yeecms-module-tornado)[ Packagist](https://packagist.org/packages/voganu/yeecms-module-tornado)[ Docs](http://yeecms.io)[ RSS](/packages/voganu-yeecms-module-tornado/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

News Module
===========

[](#news-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Latest Stable Version](https://camo.githubusercontent.com/74c36cc14fc6607e5c7badb6ee133f5a0c520fd490e723206a6c805d9bbfc843/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6e6577732f762f737461626c65)](https://packagist.org/packages/luyadev/luya-module-news)[![Total Downloads](https://camo.githubusercontent.com/cc2da10ee3d05de9044c04569370647ba1a7f2edc68ad8c4bad0e0ef51238983/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6e6577732f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-module-news)[![Slack Support](https://camo.githubusercontent.com/3574a291a5d77f541be2a9aebff47cf60ed44274b70f9d90bdf6d0d7f4911892/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d6c7579616465762d79656c6c6f77677265656e2e737667)](https://slack.luya.io/)

The news module will provided you a basic news system with categories and tags.

Installation
------------

[](#installation)

For the installation of modules Composer is required.

```
composer require luyadev/luya-module-news:~1.0.0
```

### Configuration

[](#configuration)

After installation via Composer include the module to your configuration file within the modules section.

```
'modules' => [
    // ...
    'news' => [
    	'class' => 'luya\news\frontend\Module',
    	'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
    ],
    'newsadmin' => 'luya\news\admin\Module',
]
```

### Initialization

[](#initialization)

After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project.

1.) Migrate your database.

```
./vendor/bin/luya migrate
```

2.) Import the module and migrations into your LUYA project.

```
./vendor/bin/luya import
```

After adding the persmissions to your group you will be able to edit and add new news articles.

Example Views
-------------

[](#example-views)

As the module will try to render a view for the news overview, here is what this could look like this in a very basic way:

#### views/news/default/index.php

[](#viewsnewsdefaultindexphp)

```

Latest News Articles
