Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
api
Commits
80e7bd6c
Commit
80e7bd6c
authored
Oct 04, 2021
by
Yorre Rajaonarivelo
Browse files
create a url description in news
parent
81bb8872
Changes
1
Hide whitespace changes
Inline
Side-by-side
controllers/NewsController.php
View file @
80e7bd6c
...
...
@@ -24,6 +24,14 @@ class NewsController extends ApiController {
)*/
);
}
public
function
actionGetPageContent
(){
if
(
isset
(
$_POST
[
'url'
])){
echo
file_get_contents
(
$_POST
[
'url'
]);;
}
else
{
echo
""
;
}
}
}
?>
\ No newline at end of file
Write
Preview
Supports
Markdown
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