The PHP Handbook
HTML. PHP is a scripting language, whose goal is to be able to “decorate” an HTML page with dynamic data. Note that with modern PHP, we generally avoid mixing PHP into the HTML, and instead PHP is used That is called access modifier. You could use 2 other kinds of access modifiers: private and protected . Private makes the property inaccessible from outside the object. Only methods defined inside a method can be invoked from outside the class. Like for properties, you can mark methods as private too, or protected , to restrict its access. You invoke a method on the object instance like this:0 码力 | 97 页 | 8.78 MB | 1 年前3CakePHP Cookbook 2.x
Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion Additional Reading Installation Requirements Understanding Models More on models Associations: Linking Models Together Retrieving Your Data Saving Your Data Deleting Data Data Validation Callback Methods Behaviors DataSources Model Attributes Additional Methods & configuration Setting ini directives Creating a custom session handler Reading & writing session data Exceptions Exception configuration Exception classes Built-in Exceptions for CakePHP Using HTTP0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
something like this: $ chown -R www-data app/tmp If for some reason CakePHP can’t write to that directory, you’ll see warnings and uncaught exceptions that cache data cannot be written. 4 https://git-scm your code using “routes” covered later on. The single instruction in the action uses set() to pass data from the controller to the view (which we’ll create next). The line sets the view variable called Getting Started CakePHP Cookbook Documentation, Release 2.x Creating Post Views Now that we have our data flowing to our model, and our application logic and flow defined by our controller, let’s create a0 码力 | 820 页 | 2.52 MB | 1 年前3Guzzle PHP 5.3 Documentation
echo $res->getBody(); // {"type":"User"...' var_export($res->json()); // Outputs the JSON decoded data // Send an asynchronous request. $req = $client->createRequest('GET', 'http://httpbin.org', ['future' security vulnerability Quickstart Make a Request Using Responses Query String Parameters Uploading Data Cookies Redirects Exceptions Clients Creating a client Sending Requests Sending Requests With a requests using OAuth 1.0. Cache Subscriber [https://github.com/guzzle/cache-subscriber] Implements a private transparent proxy cache that caches HTTP responses. Retry Subscriber [https://github.com/guzzle/retry-subscriber]0 码力 | 72 页 | 312.62 KB | 10 月前3Guzzle PHP 5.3 Documentation
echo $res->getBody(); // {"type":"User"...' var_export($res->json()); // Outputs the JSON decoded data // Send an asynchronous request. $req = $client->createRequest('GET', 'http://httpbin.org', ['future' can be retrieved and cast to a string. $body = $response->getBody(); echo $body; // { "some_json_data" ...} You can also read read bytes from body of a response like a stream. 6 Chapter 1. User guide Responses You can use a response’s xml() method to more easily work with responses that contain XML data. $response = $client->get('https://github.com/mtdowling.atom'); $xml = $response->xml(); echo $xml->id;0 码力 | 63 页 | 275.75 KB | 10 月前3Laravel 5.6 中文文档
laravel/homestead ~/Downloads/virtualbox.box 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your private key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" eval "$(ssh-agent 网络接口 Homestead.yaml 的 networks 属性用于配置 Homestead 的网络接口,你可以想配多少就配多少: networks: - type: "private_network" ip: "192.168.10.20" 要开启 bridged (桥接模式)接口,需要配置 bridge 设置并修改网络类型为 public_network test 在终端 ping 一下任意 *.test 域名,如果 Valet 安装正确就会看到来自 127.0.0.1 的响 应: PING foobar.dev (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=10 码力 | 377 页 | 14.56 MB | 1 年前3Laravel 5.3 中文文档
single job... php artisan queue:work --once 事件数据修改 多个队列任务事件如 JobProcessing 和 JobProcessed 将不再包含$data 属性,你需要更新应用调 用$event->job->payload()来获取对应数据。 失败任务表 如果你的应用有了 failed_jobs 表,需要添加 exception 字段到这张表,exception 4、网络接口 Homestead.yaml 的 networks 属性用于配置 Homestead 的网络接口,你可以想配多少就配多少: networks: - type: "private_network" ip: "192.168.10.20" 要开启 bridged 接口,需要配置 bridge 设置并修改网络类型为 public_network : dev 在终端 ping 一下任意*.dev 域名,如果 Valet 安装正确就会看到来自 127.0.0.1 的响应: PING foobar.dev (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=10 码力 | 691 页 | 9.37 MB | 1 年前3Laravel 6.0 中文文档
your-bucket 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 82 policy: public - name: your-private-bucket policy: none 目前支持的 policy 值包括:none、download、upload 和 public。 端口转发配置 默认情况下,Homestead 端口转发配置如下: 除。 网络接口 Homestead.yaml 的 networks 属性用于配置 Homestead 的网络 接口,你可以想配多少就配多少: networks: - type: "private_network" ip: "192.168.10.20" 要开启 bridged (桥接模式)接口,需要配置 bridge 设置并修改网 络类型为 public_network : networks: 响应,文件下载、流响应等等。 视图响应 如果你需要控制响应状态和响应头,并且还需要返回一个视图作为响 应内容,可以使用 view 方法: return response() ->view('hello', $data, 200) ->header('Content-Type', $type); 当然,如果你不需要传递自定义的 HTTP 状态码和头信息,只需要 简单使用全局辅助函数 view 即可: R0 码力 | 1442 页 | 14.66 MB | 1 年前3CakePHP Cookbook 3.x
Class Writing Configuration data Reading Configuration Data Checking to see if Configuration Data is Defined Deleting Configuration Data Reading & Deleting Configuration Data Reading and writing configuration Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Information Database Basics Query Builder Table Objects Entities Retrieving Data & Results Sets Validating Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640 Clearing Cached Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640 Using . . . . . . . . . . . . . . . . . . . . . 740 Automatically Choosing the Locale Based on Request Data . . . . . . . . . . . . . . . . . . . . . . . . . . 741 22 Logging 743 Logging Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753 Processing Request Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 754 Getting0 码力 | 967 页 | 2.80 MB | 1 年前3
共 80 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8