Category: Programming Development
-
Post Views: 14 1. There is a php Blade code block, which is placed in mysql, and its code is stored in the field schema, as shown in Figure 1 2. Some variables, already declared in the php script, the code block is shown below 3. The code of the compiled template file is as follows. 4. Decided to skip…
-
Post Views: 18 1. Reference URL:https://learnku.com/docs/laravel/6.x/blade/5147#20f1dd. Blade Template – Components & Slots 2. First write a reusable “alert” component, we want to reuse it in the application, create a new file: /resources/views/alert.blade.php 3. Configure the route in /routes/web.php 4. Create a new template file: /resources/views/component.blade.php 5. Open the URL: view-source:http://laravel-theme-demo.local/component. View the source code. in line with expectations. as shown…
-
Post Views: 17 1. The form on the URL: #11-page, template type, and template, which cannot be jumped to the corresponding position. as shown in Figure 1 2. Decide to view the rendered HTML statement. Check: 1.1 The difference between the page, the template type, and the template. id=”user-content-11 – difference between page template type templates”. as shown in Figure…
-
Post Views: 16 1. Click the anchor point in the Markdown document to jump to the corresponding position. as shown in Figure 1 2. In phpstorm, open the editor. When the mouse is placed on #1-overview, it prompts: The targeting tag #1-overview cannot be resolved. as shown in Figure 2 3. When entering #1, the IDE will be completed automatically,…
-
Post Views: 18 1. Composer installs Workerman successfully. as shown in Figure 1 2. The Linux system can use the following script to test whether the local PHP environment meets the workerman operation requirements. curl-sshttp://www.workerman.net/check.php| PHP. All display OK, it means that the Workerman requirements are met. as shown in Figure 2 3. Refer to the implementation of colleagues, edit…
-
Post Views: 18 1. The XML data is printed as follows. as shown in Figure 1 2. At this stage, the XML is converted into an array. The code is implemented as follows. The libxml_disable_entity_loader function has been abandoned since PHP 8.0.0. It is strongly recommended not to rely on this function. 3. After converting to an array, the printing…