PHP初学者应该选择哪个版本的ThinkPHP?
作为一个PHP初学者,发现ThinkPHP的版本众多,新版本与旧版本许都操作习惯和命名规则都不一样,特别是网上各种视频教程大多都是3.1.x的版本,已经很久之前的版本了。
1、如果以快速找工作为目的的话,应该学习老版本还是自己适应新版本呢,或者先跟视频学习老版本,再看手册学习新版本?哪个学习效率更高?
2、以后工作的话,公司是习惯用以前的版本呢还是及时回更新最新的版本呢?或者有一套标准来决定是继续使用老版本还是换为新版本?
3、如果公司频繁更改版本,是否会造成维护的不便呢?
ps.请勿建议改用其他模板(如laravel,YII),此问题不限于框架和编程语言。
回复内容:
用新版本,namespace不能再好用 我认为是要适应新版本的,没有人会无缘无故累死累活写一个新版本发出来的。我印象比较深的是上次看jeffrey way.
他写数组是这么写的
<span class="x">$foo = [</span> <span class="x"> 'bar' => 'baz'</span> <span class="x">];</span>
我当初一点都不纠结,直接看3.1.3的视频,对于初学者的我们,看开发文档非常头疼,专用名词不识几个。(不可否认看开发文档是最快速有效的,但是前提是能看得懂人家写的是什么)
好不容易找到有手把手的视频,肯定先学了先,新版的更替,至少保留了原版本的一大部分内容。
学完了旧版视频,再完完整整看完开发文档,清楚有什么内容,再用旧版自己搭建一个小程序。
发现需要什么东西,直接在开发文档就找得到了。此时,你已经差不多可以去实习了。
鄙人到了公司,新的项目都用最新版3.2以上。那么,只要看开发文档和模仿他人的写法,就可以很快上手。
鄙人实习了两个月,做了个后台管理,由于公司离住处太远,换了家公司。
新公司用的是cake,项目已经非常大,用的是比较旧的版本,由于有前面换版本学习的经验,现在上手非常快。
总而言之,有得学,先学了,需要什么,再继续进阶。
希望我的分享对您有帮助! 最新 Tp觉渣~甚入 讲一个冷笑话:
最近常常遇到一些客户谈需求时要求采用ThinkPHP,鄙人不用,一般都拒绝了!
后来实在忍不住了,问一客户为什么指定要用ThinkPHP,客户答曰:用的人多,搬砖价即可解决问题!
此后凡是要求采用ThinkPHP的,一律拒绝! 以我个人招聘的经验,简历里面熟悉thinkphp是扣分项。
以找工作为前提,应该修炼内功而不是把自己锁死在某一个特定框架上。 我觉着初学者自己按照MVC的结构去写才能学到东西,框架只是个工具而已,学好了基础再看框架就不难了。 tp3.1和3.2在学起来没太大区别,如果会看文档的话,可以先学3.1,再看下3.2,相对来说更快点。不过这个框架写的确实一般,社区也不是跟活跃,学习可以随便选版本,正式开发就确定一个吧,别指望开发后换版本,毕竟正式开发不是一个人的事。 建议最新版,上手快,学起来简单,而且学习最新版可以直接看官方的OneThink源码

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

CMS stands for Content Management System. It is a software application or platform that enables users to create, manage, and modify digital content without requiring advanced technical knowledge. CMS allows users to easily create and organize content

Arrays are linear data structures used to process data in programming. Sometimes when we are processing arrays we need to add new elements to the existing array. In this article, we will discuss several ways to add elements to the end of an array in PHP, with code examples, output, and time and space complexity analysis for each method. Here are the different ways to add elements to an array: Use square brackets [] In PHP, the way to add elements to the end of an array is to use square brackets []. This syntax only works in cases where we want to add only a single element. The following is the syntax: $array[] = value; Example

PHP provides tools to allow websites to easily integrate social media functions: 1. Dynamically generate social media sharing buttons for users to share content; 2. Integrate with the OAuth library to achieve seamless social media login; 3. Use the HTTP library to capture social media Data, obtain user profile, posts and other information.
