CakePHP Cookbook 3.x
to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your for use in this tutorial, with a name of your choice, e.g. cake_cms. You can execute the following SQL to create the necessary tables: USE cake_cms; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY Cake\Database\Type\IntegerType will now raise an exception when values are not numeric when preparing SQL statements and converting database results to PHP types. Cake\Database\Statement\StatementDecorator::fetchAll()0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.xin Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with SQL Dump Files Fixture State Managers Creating Fixtures Dynamic Data Loading Fixtures in your Test Cases to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your name of your choice such as cake_cms. If you are using MySQL/MariaDB, you can execute the following SQL to create the necessary tables: CREATE DATABASE cake_cms; USE cake_cms; CREATE TABLE users (0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
in Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with SQL Dump Files Fixture State Managers Creating Fixtures Dynamic Data Loading Fixtures in your Test Cases to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your name of your choice such as cake_cms. If you are using MySQL/MariaDB, you can execute the following SQL to create the necessary tables: USE cake_cms; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your for use in this tutorial, with a name of your choice, e.g. cake_cms. You can execute the following SQL to create the necessary tables: USE cake_cms; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY Cake\Database\Type\IntegerType will now raise an exception when values are not numeric when preparing SQL statements and converting database results to PHP types. • Cake\Database\Statement\StatementDecorator::fetchAll()0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xgoing to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your name of your choice such as cake_cms. If you are using MySQL/MariaDB, you can execute the following SQL to create the necessary tables: CREATE DATABASE cake_cms; USE cake_cms; CREATE TABLE users ( id NOW()); If you are using PostgreSQL, connect to the cake_cms database and execute the following SQL instead: CREATE TABLE users ( id SERIAL PRIMARY KEY, email VARCHAR(255) NOT NULL, password VARCHAR(255)0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and run SQL snippets from the tutorial. CakePHP will handle building all the queries your name of your choice such as cake_cms. If you are using MySQL/MariaDB, you can execute the following SQL to create the necessary tables: USE cake_cms; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY NOW()); If you are using PostgreSQL, connect to the cake_cms database and execute the following SQL instead: CREATE TABLE users ( id SERIAL PRIMARY KEY, email VARCHAR(255) NOT NULL, password VARCHAR(255)0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database: CakePHP will be taking the reins from there. Since we’re using MySQL We’ll also throw in a few posts right now to use for testing purposes. Execute the following SQL statements into your database: /* First, create our posts table: */ CREATE TABLE posts ( id INT UNSIGNED , or any other URL structure that already utilizes mod_rewrite, you’ll need to add RewriteBase statements to the .htaccess files CakePHP uses (/.htaccess, /app/.htaccess, /app/webroot/.htaccess). This0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database: CakePHP will be taking the reins from there. Since we’re using MySQL We’ll also throw in a few posts right now to use for testing purposes. Execute the following SQL statements into your database: /* First, create our posts table: */ CREATE TABLE posts ( id INT UNSIGNED events. DataSources allow you to associate records from different sources: rather than being limited to SQL joins, DataSources allow you to tell your LDAP model that it is associated with many iCal events.0 码力 | 820 页 | 2.52 MB | 1 年前3
Laravel 5.0 Documentation
@endforelse Echoing Data After Checking For Existence Displaying Raw Text With Curly Braces If Statements Loops @while (true)I'm looping forever.
@endwhile @include('view.name') You may MySQL, Postgres, SQLite, and SQL Server. Sometimes you may wish to use one database connection for SELECT statements, and another for INSERT, UPDATE, and DELETE statements. Laravel makes this a breeze delete statements return the number of rows affected by the operation. DB::statement('drop table users'); You may listen for query events using the DB::listen method: DB::listen(function($sql, $bindings0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelExamples 17 Views: Introduction 17 Control Structures 18 Conditionals 18 'If' statements 18 'Unless' statements 18 Loops 18 'While' loop 19 'Foreach' loop 19 'Forelse' Loop 19 Echoing PHP expressions templating loading content from master templates, we can have variables, loops and conditional statements inside the blade file. Examples Views: Introduction Views, in an MVC pattern, contain the logic Conditionals 'If' statements @if ($i > 10){{ $i }} is large.
@elseif ($i == 10){{ $i }} is ten.
@else{{ $i }} is small.
@endif 'Unless' statements (Short syntax0 码力 | 216 页 | 1.58 MB | 1 年前3
共 71 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













