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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
1d2185f9
Commit
1d2185f9
authored
Jun 10, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added note about usage to StringHelper::basename()
parent
1df859cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
StringHelper.php
framework/yii/helpers/base/StringHelper.php
+3
-1
No files found.
framework/yii/helpers/base/StringHelper.php
View file @
1d2185f9
...
@@ -43,8 +43,10 @@ class StringHelper
...
@@ -43,8 +43,10 @@ class StringHelper
/**
/**
* Returns the trailing name component of a path.
* Returns the trailing name component of a path.
* This method does the same as the php function
basename()
except that it will
* This method does the same as the php function
`basename()`
except that it will
* always use \ and / as directory separators, independent of the operating system.
* always use \ and / as directory separators, independent of the operating system.
* This method was mainly created to work on php namespaces. When working with real
* file paths, php's `basename()` should work fine for you.
* Note: this method is not aware of the actual filesystem, or path components such as "..".
* Note: this method is not aware of the actual filesystem, or path components such as "..".
* @param string $path A path string.
* @param string $path A path string.
* @param string $suffix If the name component ends in suffix this will also be cut off.
* @param string $suffix If the name component ends in suffix this will also be cut off.
...
...
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