Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

filter input - PHP: Wrapping built-in function (filter_input) and optional parameters -


so, know php can define optional parameters (stackoverflow questions).

what i'm trying following:

function myfunc($a, $b, $c, $type, $variable_name, $filter, $options) {    $value = filter_input($type, $variable_name, $filter, $options);     //do $a, $b, $c, , $value } 

since passing in parameters pertain built in function of filter_input know $filter , $options optional parameters, , make them optional assign them default value. but, i'm not sure default value should be. guess $filter should default filter_default, makes sense, can not find information $options should default to.

default both $filter , $options null. optional filter_input() well, why assign them value when filter_input() you? if php ever update defaults function you'd still current, too.

your function this:

function myfunc($a, $b, $c, $type, $variable_name, $filter=null, $options=null) {... 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -