ReportFlow:// click the Grid icon and switch to grid pagepublic void changeToGrid()// click the Add/Locate icon in the grid page/or in the controller,...
分类:
其他好文 时间:
2014-08-08 12:32:45
阅读次数:
260
通常定义Controller时一般都定义成public:package net.mingyang.modules.system;@Controller@RequestMapping("/control/system/config")public class ConfigController{ ...
分类:
Web程序 时间:
2014-08-08 12:06:15
阅读次数:
268
一篇文章:在yii中明明白白生成网址:在Yii中经常要生成URL,不管是为了自动跳转还是仅仅是一个链接。下面对Yii中的URL生成做了一个总结。提示:以下controllerX代表控制器X,actionX代表方法X。在Controller::action中,我们要输出一个链接,可以这样做:$this...
分类:
其他好文 时间:
2014-08-07 22:34:08
阅读次数:
153
@Repository、@Service、@Controller 和 @Component 将类标识为Bean Spring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) ...
分类:
其他好文 时间:
2014-08-07 19:29:20
阅读次数:
183
坑1: directive要用到controller里面的东西呢,有两种办法: 通过$scope.xxx来设置的,直接用xxx引用 通过controller function 里面的 this.xxx 设置的,要通过controllerName.xxx引用 爬爬墙,更健康:附Angular...
分类:
其他好文 时间:
2014-08-07 19:25:30
阅读次数:
210
由于AngularJS是通过控制器构造函数的参数名字来推断依赖服务名称的。所以如果你要压缩控制器的JS代码,它所有的参数也同时会被压缩,这时候依赖注入系统就不能正确的识别出服务了。
假如我们的Controller的名称为:BookCtrl,压缩前的代码为:
var BookCtrl = function($scope, $http) { /* constructor body */ }...
分类:
Web程序 时间:
2014-08-07 19:04:50
阅读次数:
251
我们在AngularJS中可以根据网址不同直接切换view,动态加载网页模板,但是控制模板的控制器需要先定义好才可以,不能和网页模板同时加载,这样就造成整个网站的JS都要先加载完成。
requireJS是大家第一个想到的东西,但是体积有点大,github上就有个人用它写了Angular的动态加载controller模块,是通过js
promise异步编程技术实现的,最后的解决很...
分类:
Web程序 时间:
2014-08-07 15:57:40
阅读次数:
216
DefaultControllerFactory 是MVC默认的Controller查找和激活工厂类我们可以通过自定义ControllerFactory替换DefaultControllerFactory类来实现IOC的引入public class DefaultControllerFactory ...
分类:
Web程序 时间:
2014-08-07 15:37:40
阅读次数:
190
1.定义好的xib文件rootView.xib,选中files·owners 在class中选择对应的viewController2.如何在window中指定rootViewController------在appdelegate.h中声明属性 @property (strong,nonatomic...
分类:
其他好文 时间:
2014-08-07 12:44:39
阅读次数:
322
<?php if (!defined(‘BASEPATH‘)) ??? exit(‘No direct script access allowed‘); class UseOra extends CI_Controller { ??? public function index() ??? { ??????? echo ‘欢迎使用测试CI使用O...
分类:
数据库 时间:
2014-08-07 03:09:38
阅读次数:
406