Yaf video tutorial yafphp installation in windows

Source: Internet
Author: User
The last few articles are about how to set up and configure yaf and yaf for linux servers. the last few articles are about how to set up and configure yaf and yaf for linux servers, this video describes how to configure and install the yaf framework in windows, because linux is rarely used as the development environment for personal development and testing in China.


(1) the configuration file of windows yaf is the same as that of linux.
Project configuration file. ini


[App]
Application. directory = APP_PATH "/app /"
Application. view. ext = "html"
Application. library = APP_PATH "app/library /"
Application. bootstrap = APP_PATH "Bootstrap. php"
Application. dispatcher. catchException = 1
After the configuration output, we also loaded a Com class globally. However, you can see the differences in the next video. we also introduce some differences between windows and Linux.


Class Com {
Static function Dump (){
$ Args = func_get_args (); // returns an array composed of function parameters.
If (count ($ args) <1 ){
Return;
}
Echo'
';
// Multiple parameters are output cyclically
Foreach ($ args as $ data ){
Switch ($ data ){
// Determine the type and output it cyclically based on different types
Case is_array ($ data ):
Print_r ($ data );
Echo'
';
Break;
Case is_string ($ data ):
Echo $ data .'
';
Break;
Default:
Var_dump ($ data );
}
}
Echo'
';
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.