Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
8a575400
Commit
8a575400
authored
Apr 18, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix
parent
bf31f0ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
common/modules/analyticsSchool/controllers/CourseController.php
.../modules/analyticsSchool/controllers/CourseController.php
+0
-2
common/modules/analyticsSchool/models/CoursesSearch.php
common/modules/analyticsSchool/models/CoursesSearch.php
+3
-5
No files found.
common/modules/analyticsSchool/controllers/CourseController.php
View file @
8a575400
...
...
@@ -34,8 +34,6 @@ class CourseController extends FrontendController {
$searchModel
=
new
CoursesSearch
();
$search
=
\Yii
::
$app
->
request
->
queryParams
;
var_dump
(
$search
);
die
;
$dataProvider
=
$searchModel
->
search
(
$search
);
return
$this
->
render
(
...
...
common/modules/analyticsSchool/models/CoursesSearch.php
View file @
8a575400
...
...
@@ -42,7 +42,7 @@ class CoursesSearch extends AnalyticsSchoolCourse {
*/
public
function
search
(
$params
)
{
if
(
$params
){
if
(
count
(
$params
)
>
0
){
$params
=
array_filter
(
$params
);
$query
=
AnalyticsSchoolCourse
::
findByCondition
(
$params
);
}
...
...
@@ -57,14 +57,12 @@ class CoursesSearch extends AnalyticsSchoolCourse {
]);
$query
->
andFilterWhere
([
'like'
,
'description'
,
$this
->
description
])
->
andFilterWhere
([
'like'
,
'name'
,
$this
->
titl
e
])
->
andFilterWhere
([
'like'
,
'name'
,
$this
->
nam
e
])
->
andFilterWhere
([
'like'
,
'image'
,
$this
->
image
]);
$query
->
orderBy
([
'id'
=>
SORT_DESC
]);
$dataProvider
=
new
ActiveDataProvider
([
return
new
ActiveDataProvider
([
'query'
=>
$query
,
]);
return
$dataProvider
;
}
}
\ No newline at end of file
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