Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
53f43ddd
Commit
53f43ddd
authored
May 06, 2013
by
Simone
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from yiisoft/master
Merge from yiisoft/yii
parents
6a3e9e15
d2f35f20
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
5 additions
and
87 deletions
+5
-87
.gitignore
apps/bootstrap/assets/.gitignore
+0
-0
bootstrap-responsive.css
apps/bootstrap/css/bootstrap-responsive.css
+0
-0
bootstrap-responsive.min.css
apps/bootstrap/css/bootstrap-responsive.min.css
+0
-0
bootstrap.css
apps/bootstrap/css/bootstrap.css
+0
-0
bootstrap.min.css
apps/bootstrap/css/bootstrap.min.css
+0
-0
site.css
apps/bootstrap/css/site.css
+0
-0
glyphicons-halflings-white.png
apps/bootstrap/img/glyphicons-halflings-white.png
+0
-0
glyphicons-halflings.png
apps/bootstrap/img/glyphicons-halflings.png
+0
-0
index.php
apps/bootstrap/index.php
+1
-1
bootstrap.js
apps/bootstrap/js/bootstrap.js
+0
-0
bootstrap.min.js
apps/bootstrap/js/bootstrap.min.js
+0
-0
.htaccess
apps/bootstrap/protected/.htaccess
+0
-0
assets.php
apps/bootstrap/protected/config/assets.php
+0
-0
main.php
apps/bootstrap/protected/config/main.php
+0
-0
SiteController.php
apps/bootstrap/protected/controllers/SiteController.php
+0
-0
ContactForm.php
apps/bootstrap/protected/models/ContactForm.php
+0
-0
LoginForm.php
apps/bootstrap/protected/models/LoginForm.php
+0
-0
User.php
apps/bootstrap/protected/models/User.php
+0
-0
.gitignore
apps/bootstrap/protected/runtime/.gitignore
+0
-0
main.php
apps/bootstrap/protected/views/layouts/main.php
+0
-0
about.php
apps/bootstrap/protected/views/site/about.php
+0
-0
contact.php
apps/bootstrap/protected/views/site/contact.php
+0
-0
index.php
apps/bootstrap/protected/views/site/index.php
+0
-0
login.php
apps/bootstrap/protected/views/site/login.php
+0
-0
bootstrap.md
docs/guide/bootstrap.md
+1
-1
config.php
framework/console/webapp/config.php
+0
-17
index.php
framework/console/webapp/default/index.php
+0
-10
main.php
framework/console/webapp/default/protected/config/main.php
+0
-20
SiteController.php
...e/webapp/default/protected/controllers/SiteController.php
+0
-15
main.php
...k/console/webapp/default/protected/views/layouts/main.php
+0
-17
index.php
...ork/console/webapp/default/protected/views/site/index.php
+0
-1
AccessRule.php
framework/web/AccessRule.php
+0
-3
User.php
framework/web/User.php
+1
-1
readme.md
readme.md
+2
-1
No files found.
app/assets/.gitignore
→
app
s/bootstrap
/assets/.gitignore
View file @
53f43ddd
File moved
app/css/bootstrap-responsive.css
→
app
s/bootstrap
/css/bootstrap-responsive.css
View file @
53f43ddd
File moved
app/css/bootstrap-responsive.min.css
→
app
s/bootstrap
/css/bootstrap-responsive.min.css
View file @
53f43ddd
File moved
app/css/bootstrap.css
→
app
s/bootstrap
/css/bootstrap.css
View file @
53f43ddd
File moved
app/css/bootstrap.min.css
→
app
s/bootstrap
/css/bootstrap.min.css
View file @
53f43ddd
File moved
app/css/site.css
→
app
s/bootstrap
/css/site.css
View file @
53f43ddd
File moved
app/img/glyphicons-halflings-white.png
→
app
s/bootstrap
/img/glyphicons-halflings-white.png
View file @
53f43ddd
File moved
app/img/glyphicons-halflings.png
→
app
s/bootstrap
/img/glyphicons-halflings.png
View file @
53f43ddd
File moved
app/index.php
→
app
s/bootstrap
/index.php
View file @
53f43ddd
...
...
@@ -2,7 +2,7 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
require
(
__DIR__
.
'/../framework/yii.php'
);
require
(
__DIR__
.
'/../
../
framework/yii.php'
);
$config
=
require
(
__DIR__
.
'/protected/config/main.php'
);
$application
=
new
yii\web\Application
(
$config
);
...
...
app/js/bootstrap.js
→
app
s/bootstrap
/js/bootstrap.js
View file @
53f43ddd
File moved
app/js/bootstrap.min.js
→
app
s/bootstrap
/js/bootstrap.min.js
View file @
53f43ddd
File moved
app/protected/.htaccess
→
app
s/bootstrap
/protected/.htaccess
View file @
53f43ddd
File moved
app/protected/config/assets.php
→
app
s/bootstrap
/protected/config/assets.php
View file @
53f43ddd
File moved
app/protected/config/main.php
→
app
s/bootstrap
/protected/config/main.php
View file @
53f43ddd
File moved
app/protected/controllers/SiteController.php
→
app
s/bootstrap
/protected/controllers/SiteController.php
View file @
53f43ddd
File moved
app/protected/models/ContactForm.php
→
app
s/bootstrap
/protected/models/ContactForm.php
View file @
53f43ddd
File moved
app/protected/models/LoginForm.php
→
app
s/bootstrap
/protected/models/LoginForm.php
View file @
53f43ddd
File moved
app/protected/models/User.php
→
app
s/bootstrap
/protected/models/User.php
View file @
53f43ddd
File moved
app/protected/runtime/.gitignore
→
app
s/bootstrap
/protected/runtime/.gitignore
View file @
53f43ddd
File moved
app/protected/views/layouts/main.php
→
app
s/bootstrap
/protected/views/layouts/main.php
View file @
53f43ddd
File moved
app/protected/views/site/about.php
→
app
s/bootstrap
/protected/views/site/about.php
View file @
53f43ddd
File moved
app/protected/views/site/contact.php
→
app
s/bootstrap
/protected/views/site/contact.php
View file @
53f43ddd
File moved
app/protected/views/site/index.php
→
app
s/bootstrap
/protected/views/site/index.php
View file @
53f43ddd
File moved
app/protected/views/site/login.php
→
app
s/bootstrap
/protected/views/site/login.php
View file @
53f43ddd
File moved
docs/guide/bootstrap.md
View file @
53f43ddd
...
...
@@ -7,7 +7,7 @@ If you have installed Yii under a Web-accessible folder, you should be able to
access this application through the following URL:
~~~
http://localhost/yii/app/index.php
http://localhost/yii/app
s/bootstrap
/index.php
~~~
...
...
framework/console/webapp/config.php
deleted
100644 → 0
View file @
6a3e9e15
<?php
/** @var $controller \yii\console\controllers\AppController */
$controller
=
$this
;
return
array
(
'default'
=>
array
(
'index.php'
=>
array
(
'handler'
=>
function
(
$source
)
use
(
$controller
)
{
return
$controller
->
replaceRelativePath
(
$source
,
realpath
(
YII_PATH
.
'/yii.php'
),
'yii'
);
},
'permissions'
=>
0777
,
),
'protected/runtime'
=>
array
(
'permissions'
=>
0755
,
),
),
);
framework/console/webapp/default/index.php
deleted
100644 → 0
View file @
6a3e9e15
<?php
define
(
'YII_DEBUG'
,
true
);
require
__DIR__
.
'/../framework/yii.php'
;
$config
=
require
dirname
(
__DIR__
)
.
'/protected/config/main.php'
;
$config
[
'basePath'
]
=
dirname
(
__DIR__
)
.
'/protected'
;
$app
=
new
\yii\web\Application
(
$config
);
$app
->
run
();
framework/console/webapp/default/protected/config/main.php
deleted
100644 → 0
View file @
6a3e9e15
<?php
return
array
(
'id'
=>
'webapp'
,
'name'
=>
'My Web Application'
,
'components'
=>
array
(
// uncomment the following to use a MySQL database
/*
'db' => array(
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=testdrive',
'username' => 'root',
'password' => '',
),
*/
'cache'
=>
array
(
'class'
=>
'yii\caching\DummyCache'
,
),
),
);
framework/console/webapp/default/protected/controllers/SiteController.php
deleted
100644 → 0
View file @
6a3e9e15
<?php
use
\yii\web\Controller
;
/**
* SiteController
*/
class
SiteController
extends
Controller
{
public
function
actionIndex
()
{
echo
$this
->
render
(
'index'
,
array
(
'name'
=>
'Qiang'
,
));
}
}
framework/console/webapp/default/protected/views/layouts/main.php
deleted
100644 → 0
View file @
6a3e9e15
<?php
use
yii\helpers\Html
as
Html
;
?>
<!doctype html>
<html
lang=
"
<?php
\Yii
::
$app
->
language
?>
"
>
<head>
<meta
charset=
"utf-8"
/>
<title>
<?php
echo
Html
::
encode
(
$this
->
title
)
?>
</title>
</head>
<body>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
)
?>
</h1>
<div
class=
"content"
>
<?php
echo
$content
?>
</div>
<div
class=
"footer"
>
<?php
echo
\Yii
::
powered
()
?>
</div>
</body>
</html>
framework/console/webapp/default/protected/views/site/index.php
deleted
100644 → 0
View file @
6a3e9e15
Hello,
<?php
echo
$name
?>
!
framework/web/AccessRule.php
View file @
53f43ddd
...
...
@@ -9,9 +9,6 @@ namespace yii\web;
use
yii\base\Component
;
use
yii\base\Action
;
use
yii\base\Controller
;
use
yii\web\User
;
use
yii\web\Request
;
/**
*
...
...
framework/web/User.php
View file @
53f43ddd
...
...
@@ -461,7 +461,7 @@ class User extends Component
if
(
$auth
!==
null
)
{
return
$auth
->
checkAccess
(
$this
->
getId
(),
$operation
,
$params
);
}
else
{
return
tru
e
;
return
fals
e
;
}
}
}
readme.md
View file @
53f43ddd
...
...
@@ -13,7 +13,8 @@ without prior notices. **Yii 2.0 is not ready for production use yet.**
DIRECTORY STRUCTURE
-------------------
app/ a ready-to-use application built on Yii 2
apps/ ready-to-use Web apps built on Yii 2
bootstrap/ a simple app supporting user login and contact page
build/ internally used build tools
docs/ documentation
framework/ framework source files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment