Functional Testing Functional Testing Before reading this section, it is recommended that you read the Selenium documentation and the PHPUnit documentation first. We summariz...
编写ACTION 编写ACTION 一旦有了model,我们可以开始编写操作model的逻辑。我们把这些逻辑放在controller action里面。用录入登陆表单这个例子来说明,如下是需要的代码: public function actionLogin () { $form = new LoginForm ; ...
创建动作 创建动作 有了模型,我们就可以开始编写用于操作此模型的逻辑了。我们将此逻辑放在一个控制器的动作中。对登录表单的例子来讲,相应的代码就是: public function actionLogin () { $model = new LoginForm ; if ( isset ( $_POST [ 'Log...
Creating Web Client Setup Application Entry Script Define Angular App Define Default Angular Controller Create Main Menu Create Main Module and Sub Module Create Sub Module Def...