我的页面中有2个表单.我需要一次验证它们1,但我认为存在冲突.这里看看:

当我提交任何一个表单时,它们都显示相同的错误消息
我validation_errors()用来显示消息.如何一次验证表单1?
这是代码
public function update_user_info(){
$this->form_validation->set_rules("firstname","First Name","required");
$this->form_validation->set_rules("lastname","Last Name","required");
$this->form_validation->set_rules("middlename","Middle Name","required");
if($this->form_validation->run()===false){
//wrong
}
else { //correct }
}
Run Code Online (Sandbox Code Playgroud) 如何将数据传递给布局文件?我只能访问内容页面上传递的数据,但不能访问布局文件.
public function get_index($name){
return View::make('widget.'.$name)
->with("title", ucwords($name).' ‹ Document Management System');
}
Run Code Online (Sandbox Code Playgroud) 这是我的代码:
<ion-content padding text-center>
<img src="../assets/img/logo.png" width="200" class="logo" />
</ion-content>
<ion-footer>
<ion-row no-padding>
<ion-col col-6 align-self-stretch>
<button ion-button full>Button</button>
</ion-col>
<ion-col col-6 align-self-stretch>
<button ion-button full>Button</button>
</ion-col>
</ion-row>
</ion-footer>
Run Code Online (Sandbox Code Playgroud)
我需要删除ion-row和ion-col的填充/边距.我试过谷歌搜索但我没有运气.我也是Ionic的新手.TIA!
这是截图:
我需要实现这个目标:
请参阅下面的代码.我很难在我的视图中显示$ scope.brand的值.当我点击获取用户品牌按钮时没有任何反应.视图中的brand.name没有更新,但是当我单击获取用户品牌按钮后单击测试品牌按钮时,将显示范围的值.我不知道现在发生了什么.请帮忙.谢谢!
角
var app = angular.module('nwApp', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
});
var url = 'http://localhost:3000';
app.controller('brandsCtrl', ['$scope', '$http', function($scope, $http){
$scope.brands = {};
$scope.brand = {};
$http.get(url+'/brands/all')
.success(function(result){
$scope.brands = result;
});
$scope.getAssignUser = function(brand_id){
$.get(url+'/brands/'+brand_id)
.success(function(result){
$scope.brand = result;
});
$("#brandModal").modal('toggle');
};
$scope.checkBrand = function(){
console.log($scope.brand);
}
}]);
Run Code Online (Sandbox Code Playgroud)
视图
<a href="javascript:void(0)" class="btn btn-warning" title="Assign User for this Brand" ng-click='getAssignUser(brand._id)' >GET USER BRAND</a>
<a href="javascript:void(0)" class="btn btn-warning" ng-click='checkBrand()' > TEST BRAND …Run Code Online (Sandbox Code Playgroud)