|
You last visited: Today at 14:47
Advertisement
[PRESENTATION] New Generation Website
Discussion on [PRESENTATION] New Generation Website within the Shaiya PServer Development forum part of the Shaiya Private Server category.
10/14/2018, 23:09
|
#1
|
elite*gold: 0
Join Date: Nov 2017
Posts: 137
Received Thanks: 148
|
[PRESENTATION] New Generation Website
Hello everyone, today I want to present you my latest website project for shaiya.
this site is not like all the others, this site is based on a php framework, the use of the latest version of php (7.2)
the php framework works with the MVC logical system
As with other software patterns, MVC expresses the "core of the solution" to a problem while allowing it to be adapted for each system. Particular MVC architectures can vary significantly from the traditional description here.
Components- The model is the central component of the pattern. It is the application's dynamic data structure, independent of the user interface. It directly manages the data, logic and rules of the application.
- A view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.
- The third part or section, the controller, accepts input and converts it to commands for the model or view.
Interactions
In addition to dividing the application into three kinds of components, the model–view–controller design defines the interactions between them.[8] - The model is responsible for managing the data of the application. It receives user input from the controller.
- The view means presentation of the model in a particular format.
- The controller responds to the user input and performs interactions on the data model objects. The controller receives the input, optionally validates it and then passes the input to the model.
I do this thread to show everyone that currently the sites we are using are really obsolete.
currently using this framework (YII2), we can go to remove all the queries, and more, let's see...
What is Yii2?
Quote:
|
Yii is a high performance, component-based PHP framework for rapidly developing modern Web applications. The name Yii can be considered as the acronym for Yes It Is!. Yii 2 inherits the main spirit behind Yii for being a simple, fast and highly extensible PHP framework.
|
Using a framework instead of PHP's native OOP has several advantages, let's try and list some of them:
Organization
When you have a very complex project in your hands, it is not enough to "dirty" the code. Writing native PHP code is likely to make several mistakes. Using a framework helps you not to commit them by giving the right organization to the files and the code, taking you to the correct direction.
Integrated features
A framework keeps you focused on your real work, providing you with all the basic features such as routing, authentication or form validation. Your time is precious, do not waste it trying to reinvent the wheel! Use the time you have available to increase the quality and completeness of your software.
URL Seo Friendly and Routing
Forget about the URL rewrite. Each framework has within it a routing module that allows you to easily manage all the routes of your application. Moreover if you need to generate SEO-friendly URLs starting from the titles of your pages, you will already have all the functions available.
MVC (Model View Controller)
Most PHP frameworks use an MVC pattern, which allows you to divide the code into Models, Views and Controllers. What are they?
Models: provide you with a high-level interface with the database.
Views: contain the templates of your project
Controllers: contain the logic to extract the data to be passed to the views.
We can then reconnect to the paragraph "Organization": the code remains more orderly, so in case of problems you will be able to solve them as quickly as possible.
Safety
A framework protects you from many types of attacks. Forget SQL Injection, CSRF attacks and many others. Less worries = more time to devote to your project.
ORM
If you need to do very simple queries, forget the SELECT * FROM posts WHERE bla bla bla. Most frameworks allow you to easily perform almost any high-level query with Object Relational Mapping. Instead, if the query is more complex, you will be able to optimize it and make it faster than the old style in plain SQL, without banging your head too much on the keyboard.
Performance
A framework helps you manage the caching of views, and other optimizations that improve performance.
After giving you this information, I ask the alleged dev remained, what do you think?
would not it be time to change? and offer something safer?
Style = Bootstrap4 ; font-awesome ;
STOP QUERY

I would like to know what you think, do you say it's time to change?
do you have any useful tips, or anything?
|
|
|
10/14/2018, 23:41
|
#2
|
elite*gold: 152
Join Date: Mar 2015
Posts: 149
Received Thanks: 1,281
|
Next generation? Perhaps in the context of Shaiya, but in terms of web technologies this is still a few steps behind. You really don't need to make a thread about this, as this should be the standard anyway. The newer version of PHP are actually pretty great in terms of speed, but the language itself is rather lackluster and hacky. Would it not make more sense to use something like ASP.NET, seeing as we're almost required to use Windows environments anyway? You can follow the same MVC design (which I believe is the default for new projects), or if you wanted a simple API you could do something like the following:
Code:
using Microsoft.Owin.Hosting;
using Owin;
using System.Net.Http.Formatting;
using System.Web.Http;
namespace Apulune.Net.Http
{
class GameHttpServer
{
public void Configuration(IAppBuilder builder)
{
var config = new HttpConfiguration();
config.Formatters.Clear();
config.Formatters.Add(new JsonMediaTypeFormatter());
config.Routes.MapHttpRoute(
name: "DefaultRoute",
routeTemplate: "{controller}/{action}"
);
builder.UseWebApi(config);
}
public void Start(int port)
{
var address = $"http://*:{port}/";
WebApp.Start<GameHttpServer>(url : address);
}
}
}
Code:
using Apulune.Game.World;
using System.Web.Http;
namespace Apulune.Net.Http.Controller
{
public class ServerController : ApiController
{
[HttpGet]
public int Users()
{
return GameWorld.GetOnlinePlayers();
}
}
}
Most web projects these days are either React / Vue / Angular apps served to the client and have the client render the website rather than the current server-side rendering, and request the required data from an API. At least, this is how I'm designing my website. The reason for this is because if we serve all of the assets to the user on the first page load, and have the client handle routing and contact an API, then we only need to load the website once and modify components depending on the application's state. This makes the website feel much more responsive and user friendly. You'd use JSON Web Tokens for accessing authorized routes. If you're concerned about SEO (as web crawlers won't render JavaScript), there are plenty of tools you can use to pre-render the app, and then serve that for robots.
I like that you're trying to make a change, and by all means, go for it. I just don't believe that PHP would be the way to go for a game like Shaiya.
|
|
|
10/15/2018, 00:23
|
#3
|
elite*gold: 0
Join Date: Nov 2017
Posts: 137
Received Thanks: 148
|
Quote:
Originally Posted by Cups
Next generation? Perhaps in the context of Shaiya, but in terms of web technologies this is still a few steps behind. You really don't need to make a thread about this, as this should be the standard anyway. The newer version of PHP are actually pretty great in terms of speed, but the language itself is rather lackluster and hacky. Would it not make more sense to use something like ASP.NET, seeing as we're almost required to use Windows environments anyway? You can follow the same MVC design (which I believe is the default for new projects), or if you wanted a simple API you could do something like the following:
------
Most web projects these days are either React / Vue / Angular apps served to the client and have the client render the website rather than the current server-side rendering, and request the required data from an API. At least, this is how I'm designing my website. The reason for this is because if we serve all of the assets to the user on the first page load, and have the client handle routing and contact an API, then we only need to load the website once and modify components depending on the application's state. This makes the website feel much more responsive and user friendly. You'd use JSON Web Tokens for accessing authorized routes. If you're concerned about SEO (as web crawlers won't render JavaScript), there are plenty of tools you can use to pre-render the app, and then serve that for robots.
I like that you're trying to make a change, and by all means, go for it. I just don't believe that PHP would be the way to go for a game like Shaiya.
|
Thanks for the honest answer, in fact I had started an admin panel using this system, for business reasons I moved on YII, I currently work on this framework.
The thread was also made to accept answers like yours, not having done so I would never know your thoughts about this.
from my last post on my old website, over 2 years, provided to SHAIYA EXCALIBUR, is currently sold by a certain "Pacifier Jr" (I really do not know who it is ...)
I had the desire to show anyone that what they go to pay is old, obsolete, without security, now even a child can throw it down...
this pushed me to finally create this thread, to inform possible buyers to be careful before buying an "unsafe" site.
There have been no inflictions that have led to fill report or anything else, but an unsafe website, implies that all data entered into the databases are not secure, for shaiya we can say that our Email is not secure, and eventually our password (many use the same for many sites)
Currently this is for information
|
|
|
Similar Threads
|
[Selling] Website coding & editing! Cann create your website or edit your website cheep!
01/17/2016 - Coders Trading - 20 Replies
Hello i'm a web developer under education.
Forum createde by me!: http://luckycs.com/
My skill is the following:
asp.net = 5%
mvc = 35%
Umbraco (CMS) = 60%
javascript/jquery = 40%
|
SeafightNews - Website presentation
08/03/2014 - Seafight - 6 Replies
Hi :)
I'm SeafightNews website's owner and I will present you this website.
I'm french so sorry for my bad english.. So this website was first in french and i translated calculators for english players.
There is 6 calculators :
Profitability calculator
|
HolyNight2-New english private server NEW PRESENTATION BETTER :)
11/14/2012 - Metin2 PServer Advertising - 1 Replies
Hello we will today presents you a Holynight2 private server :) link: HolyNight2
I hope you will like it , enjoy :)
Server Information's
2 Channels are online every time.
Server root, and online 24/7
|
All times are GMT +1. The time now is 14:51.
|
|