Today, talking to PHP then most programmers are thinking of 1 means is the PHP Framework. Because it helps programmers to minimize the time to rewrite the basic operation. Furthermore, PHP Frameworkcòn make the programmers have a lot of time in research and new technology updates, because they do not take too much time to explore or manipulate the basic knowledge that is already too boring to them in the project.Indeed, PHP Frameworkhiện far quite adequate and meet most of the necessary and sufficient conditions for the construction of a project. Talk to the Framework, the most prominent is still the original rice and elders like: Zend Framework, CodeiGniter Framework, CakePHP Framework, .... The framework for this focus on the smallest details in programming. In order to reduce the download time for users who wield them. Such as the helper that helps users build form, the helper to help users use the HTML tag, the helper that helps the user validation of the form data, and. .. Of this, the only reality contribute to the Framework that become friendly and familiar with many more users.But in fact, PHP Frameworkcũng to leave the implications impact on many elements of the application or more serious still is to human factors. In this article, we analyze the view. What issues need attention and to be noted in operation regardless of PHP Frameworknào.Need or don't need the helper like that?.If you have to ask the programmers that "You have to know HTML or not?. You know create form using HTML or not?. " Will people laugh and show that you're doing things redundant. At the level of a programmer. Then it's basic elements required them to learn through, so why are we still waiting for a PHP Framework rather us do the work. There are, of course, is good. But there also didn't affect anyone. With the update of this library will cause the application to become sluggish and difficult to operate. One thing that the PHP Framework must always bear the impact.Model the problem unsolvable for the framework.Most of the PHP Frameworkđều built on the model of the M-V-C one of the design pattern. This model will split the code into 3 different partitions with 3 different responsibilities. Controller will play the role of receiving request (request) to transfer them to the Model. At this time the model will operate the Active Record structures or pure SQL to retrieve information from the database then pour them into the array form. At the moment when the controller required to request it will push the array information to view. In view to retrieve the values in the array, we must browse array to take out each single element. This makes the application becomes slow. Contribute to increase the% of "turtle" PHP Framework.AutoLoad-Chi element slow network framework.To help users to easily operate the library, the PHP Framework often allows autoload feature turned on in everything. This helps programmers don't spend the time to initialize the object when needed. By them was when we call millions access to controller. Seems to benefit more than hurt you. But in fact, the autoload become unsolvable problem when people use any object to call a million. Because not controller would also need the same library. It depends on the requirements of the controller which and how. So, don't ever imposed for PHP Frameworkcủa we have to load all the libraries. The right is beneficial, but if one is going to harm, then 10 for your application.Object-oriented story indefinitely for the framework.Để code được mạch lạc, được trong sáng. Người lập trình đều muốn đưa mã nguồn của họ về hướng đội tượng Để giúp họ phát huy yếu tố kế thừa và vận hành hiệu quả những gì mà họ đã từng làm với các ứng dụng trước đó. Hơn nữa, mô hình hướng đối tượng (Object-Oriented Programming) cũng là một thế mạnh của PHP. Nên cứ thế mà lập trình viên không ngừng xây dựng code của mình theo hướng đó. Đúng là OOP làm code trở nên trong sáng và rõ ràng, nhưng lạm dụng OOP một cách thiếu linh động sẽ làm gây tác dụng ngược lại với lợi ích mà chúng ta luôn mong muốn. Nên vận dụng OOP thật khéo léo với design pattern để phát huy tối đa sức mạnh mà OOP vốn có.Và tư duy ngủ quên - mối hiểm họa đáng lo lắng cho lập trình viên.PHP Frameworkđúng one significant step of PHP. By building a series of library help users solve problems scientifically and not need to redo the operation was too basic. But also because of this that Frameworklàm for PHP programmers have the habit, previously a serious way when using PHP Framework. For example in version 1.7.2 CodeIgniter, CodeIgniter has support for all library users shopping cart, image, .... This inadvertently makes PHP programmers have thought loafers in the use and development. With them creating 1 cart online simply hooks, hooks, cursor, cursor. The other layer, this layer is done. The main PHP Framework has accidentally killed the thoughts of programmers.They require a real tasty dish, it's the quality and the processing is really fast. Then when the dish like they always thought that eating so new is new, is the right way to save time. But in fact, the implications of the use of "fast food" always bring the inadequacies in many aspects. Such a dish, when the fast processing, how to clean that was, that was not clean when used on the body harms more than the effect. PHP Framework too, if at any time the programmer also know based on PHP Framework that forgot PHP Framework are also made from the knowledge that they have gained. Then surely, that programmers will not be able to escape the big ball of PHP Frameworkđem. So in 1 aspects of programmers, we should be looking at the right thing. When PHP Frameworkcung level 1 new library, don't hesitate to VOC Informatics see how they solve that problem. From which we can draw these improvements, optimizations that PHP Frameworkđem. Not to mention it will complement a huge amount of knowledge for you to read and learn the cycle of operation of a PHP library is Framework any.
đang được dịch, vui lòng đợi..