关于zend.framework的一些疑问解决办法
关于zend.framework的一些疑问
很少用框架,用zf也只是拿来玩玩,没有上正式项目上
没有具体研究过zf代码,用的时候都是依葫芦画瓢
我发现网上很多朋友都是这样做的,只是在用
我因为没有具体研究它的代码,所以总感觉用的别别扭扭,迷迷糊糊的,知其然不知其所以然,就像是一个武林高手不知道他即将挥出的剑是什么样的剑,要达到什么目的
但是框架的目的不就是这样的么
刚开始用的时候,首页几乎每一行都不知道什么意思,只知道应该这么写,这样写才对,你们当时是这样的么?
一有问题,除了问没有第二个办法
页面中每一个类,都不知道什么意思,只知道应该调用这个,并且参数只能这样写,不然就报错,你们当时是这样的么?
一路走来,发现除了研究源码没有任何其他捷径,走的路除了绕弯就是摸黑
想问下大家,你们当时是怎么学的?
------解决方案--------------------
跟着一群人,做点项目
------解决方案--------------------
实践多了,就明白了,
偶现在明白index.php为啥要这么写
------解决方案--------------------
和 LZ 有一样的困扰 ZF 刚刚起步 不知怎么学 里面的源码几乎是看不懂 期待有高手路过指点一二
------解决方案--------------------
看看zend start
------解决方案--------------------
看看帮助手册
------解决方案--------------------
一路走来,发现除了研究源码没有任何其他捷径,走的路除了绕弯就是摸黑
似乎也有同感!
------解决方案--------------------
有些时候看源码是很费劲的,看源码的前提是你熟悉如何使用了。zend的中文资料是比较少,但是手册是有中文的。多看手册,多逛论坛,多想多问就行了。
------解决方案--------------------
抄,先抄
到了一定时候,自然就会有看源码的动力,多看,第一次不懂,看两次,两次还不懂,看三次.四次..........直至看懂,其实ZF里面你把controller看明白了就已经不错了,它的VIEW MODEL,有时间也去看看,你会学到不少东西,至于其它,都像一些组件一样,用到什么的时候就去看,就去学,没必要都弄懂,ZF的架构是那么多牛人弄出来的,弄了那么久,如果你一下子看明白了,那就真怪了,还有它里面的缓存,权限控制,都是值得一看的,就算你不用它,知道它的思想也是很有用处的

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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



.NET Framework 4 is required by developers and end users to run the latest versions of applications on Windows. However, while downloading and installing .NET Framework 4, many users complained that the installer stopped midway, displaying the following error message - " .NET Framework 4 has not been installed because Download failed with error code 0x800c0006 ". If you are also experiencing it while installing .NETFramework4 on your device then you are at the right place

Whenever your Windows 11 or Windows 10 PC has an upgrade or update issue, you will usually see an error code indicating the actual reason behind the failure. However, sometimes confusion can arise when an upgrade or update fails without an error code being displayed. With handy error codes, you know exactly where the problem is so you can try to fix it. But since no error code appears, it becomes challenging to identify the issue and resolve it. This will take up a lot of your time to simply find out the reason behind the error. In this case, you can try using a dedicated tool called SetupDiag provided by Microsoft that helps you easily identify the real reason behind the error.

When a SpringBoot novice creates a project, the Controller cannot be scanned for a series of problems 1.2.3.4.5.6. Another way is to add @ComponentScan(basePackages={"xxx.xxx.xx","xxx.xxx" when starting the service class) .xx”}) is the fully qualified name of the package, which can be used for multiple SpringBoot custom controllers. The SpringBoot custom controller route cannot be scanned and cannot be found because the startup class and the custom Controller package are not in the same directory. Officially recommended placement of application.java
![SCNotification has stopped working [5 steps to fix it]](https://img.php.cn/upload/article/000/887/227/168433050522031.png?x-oss-process=image/resize,m_fill,h_207,w_330)
As a Windows user, you are likely to encounter SCNotification has stopped working error every time you start your computer. SCNotification.exe is a Microsoft system notification file that crashes every time you start your PC due to permission errors and network failures. This error is also known by its problematic event name. So you might not see this as SCNotification having stopped working, but as bug clr20r3. In this article, we will explore all the steps you need to take to fix SCNotification has stopped working so that it doesn’t bother you again. What is SCNotification.e

Solution to docker start failure: 1. Check the running status, and then release the occupied memory through the "echo 3 > /proc/sys/vm/drop_caches" command; 2. Use "$netstat -nltp|grep .. ." command to check whether the port has been occupied. If it is found to be occupied after going online, change it to an available port and restart.

Microsoft Windows users who have installed Microsoft.NET version 4.5.2, 4.6, or 4.6.1 must install a newer version of the Microsoft Framework if they want Microsoft to support the framework through future product updates. According to Microsoft, all three frameworks will cease support on April 26, 2022. After the support date ends, the product will not receive "security fixes or technical support." Most home devices are kept up to date through Windows updates. These devices already have newer versions of frameworks installed, such as .NET Framework 4.8. Devices that are not updating automatically may

Preface In some cases, the prefixes in the service controller are consistent. For example, the prefix of all URLs is /context-path/api/v1, and a unified prefix needs to be added to some URLs. The conceivable solution is to modify the context-path of the service and add api/v1 to the context-path. Modifying the global prefix can solve the above problem, but there are disadvantages. If the URL has multiple prefixes, for example, some URLs require prefixes. If it is api/v2, it cannot be distinguished. If you do not want to add api/v1 to some static resources in the service, it cannot be distinguished. The following uses custom annotations to uniformly add certain URL prefixes. one,

After problems occurred in many centralized exchanges, more and more cryptocurrency investors began to transfer assets to cold wallets to reduce the risks posed by centralized exchanges. This article will introduce Trezor, the world's earliest cold wallet provider. Since the first cold wallet was launched in 2014, it has been sold in many countries around the world. Trezor's products include Model One launched in 2014 and the advanced version Model T launched in 2018. The following will continue to introduce the differences between these two products and other cold wallets. What is Trezor cold wallet? In 2014, Trezor launched the first cold wallet ModelOne. In addition to common BTC, ETH, USDT and other currencies, the wallet also supports more than 1,000 other currencies.
