PHP / Cake PHP专家需要的建议 [英] Advice needed from PHP/Cake PHP expert

查看:112
本文介绍了PHP / Cake PHP专家需要的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,考虑到我的新生活,我对我如何开始感到迷茫。在路上,我想使用MVC框架,所以我帮助自己在我的方式纪律。但是,我知道PHP和OOP PHP的基本知识是必需的。所以我的问题是这是:什么是正确的步骤掌握蛋糕PHP?我不想在学习到Cake PHP之前跳过学习的关键阶段。同时,我不想花更多的时间比所需的学习PHP,如果我可以通过Cake PHP知识直接学习。

Now, given how new I am, I'm rather lost as to how I get started. Down the road, I want to use MVC framework so that I help myself be disciplined in the way I build. However, I know basic knowledge of PHP and OOP PHP are required. So my question is this: what are the right steps to mastering Cake PHP? I don't want to skip critical phases of learning before learning to Cake PHP. At the same time, I don't want to spend more time than required learning PHP if I can learn it directly through Cake PHP knowledge.

任何建议都会感激。

推荐答案

在使用框架之前,舒适地使用干净的标准程序代码编写至少一个基本应用程序。这意味着掌握所有语言的基本元素,例如 if switch ,循环,函数,局部和全局变量等。它还包括舒适的HTTP GET和POST, RESTfulness 以及如何在网页加载(Cookie,会话,网址参数)之间保留信息。

IMHO you should be comfortable writing at least a basic app in clean standard procedural code before using a framework. That means mastering all the basic elements of the language like if and switch, loops, functions, local and global variables, etc. It also includes being comfortable with HTTP GET and POST, RESTfulness and how to persist information between page loads (Cookies, Sessions, URL params). A basic idea of Javascript and AJAX would help as well.

好的练习可能包括:


  • 输出数据库内容的页面,可以通过各种字段进行拼写,过滤和排序。

  • 一个商店结帐过程或类似的向导 b $ b
  • A page that outputs database contents and is paginatable, filterable and sortable by various fields.
  • A shop checkout process or similar "wizard"-like page.

这是当你可以拿起一个框架,因为大多数框架抽象这些繁琐的事情远离你。尤其是Cake有很多的内置的自动化,这将让你绝望的困惑,如果出了问题,你不知道上面提到的。要开始与OOP,你可能想尝试像Zend首先,这是更透明的对象如何使用。

That's when you can pick up a framework, since most frameworks abstract exactly these kinds of tedious things away from you. Especially Cake has a lot of automagic built in, which will leave you hopelessly confused if something goes wrong and you have no knowledge of the above mentioned. To start with OOP, you might want to try something like Zend first, which is a lot more transparent in how objects are used.

这篇关于PHP / Cake PHP专家需要的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆