Hello everyone.
Today i present a brand new habbo retro CMS named BrightStarCMS, currently it is in the
development. And will be made in CakePHP (framework).
- The features
More info later.
Also i have a snippet for you!
- Screenshots:
This is it for now! Later :laugh:
Today i present a brand new habbo retro CMS named BrightStarCMS, currently it is in the
development. And will be made in CakePHP (framework).
- The features
- Login and register
- User settings
- CMS news
- Comments (news)
- Comments edit
- Emojione support (
You must be registered to see links)
- Shop
More info later.
Also i have a snippet for you!
PHP:
$commentRegistry = TableRegistry::get('News_comments')->find('all')->contain(['Creators']); $this->set('comments', $commentRegistry->find('all')->limit(4)->where(['News_comments.news_id' => $news->id])->order(['News_comments.id' => 'DESC'])); $commentRegistry->isEmpty(); $results = $commentRegistry->all(); $results->isEmpty(); //post een bericht $commentAdd = $this->NewsComments->newEntity(); if($this->request->is(['post', 'put', 'patch'])) { $patchComment = $this->NewsComments->patchEntity($commentAdd, [ 'author_id' => $this->Auth->user('id'), 'user_id' => $this->Auth->user('id'), 'date' => Time::now(), 'news_id' => $news->id, 'author' => ['empty'], 'comment' => $this->request->data(['comment']) ]); if ($this->NewsComments->save($patchComment)) { $this->redirect(['controller' => 'News', 'action' => 'view', $id]); $this->Flash->success('Je bericht is geplaatst.', ['class' => 'alert alert-info']); } else { $this->Flash->error('Fout...', ['class' => 'alert alert-info']); } }
- Screenshots:
-
You must be registered to see links
-
You must be registered to see links
-
You must be registered to see links
-
You must be registered to see links
This is it for now! Later :laugh: