P
P
Pasha Andreev2014-03-08 17:52:09
symfony
Pasha Andreev, 2014-03-08 17:52:09

How long would it take you to solve this problem?

write a small wiki-environment for storing and editing texts using PHP frameworks (yii, symfony)
Task description: wiki-environment is a set of pages with a human-readable address (/page1/page2). The page consists of a title, text and links to child pages, to the parent page (if any), as well as links to deleting and editing the page, and a link to adding a child page
Adding a child page is done at (parent_page_address/add). The user is prompted to enter the title, content of the page and its address. If the address is not entered, it is generated automatically from the header. The following characters are allowed in the page address: a-z0-9_
The page is deleted at the address (parent_page_address/delete). Before permanent deletion, the user must confirm this.
The page is edited at (parent_page_address/edit).
You can edit the title and text of the page, but not its address.
If the user visits a non-existent page, then a response with a 404 code is given to him, as well as a link to the page creation page.
The page text is entered in the wiki markup:
**text** - bold text text
//text// - italic text
__text__ - underlined text text
[page1/page2 page 2]] - link to page2 (url/page1/page2) , link text <page 2>.
If the link leads to a non-existent page, then the link text is highlighted in red, and its address is replaced with the page for adding a page.
— link to an external resource. Link text — <Yandex>.
This is a test task for one of the web studios. The time limit is 2-4 hours, is it possible to implement it in such a time?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Artur Panteleev, 2014-03-08
@arturpanteleev

I think if it is real, then with a big stretch. But given that the "masters" above rivet in 30 minutes, then apparently the point is in my qualifications. Or someone has very fast internet...

L
lookid, 2014-03-08
@lookid

This is a task for knowledge of PHP programmer's stack of technologies. There are more "modules to pump up, assemble, configure, deploy the database" than "solve or code".

Y
Yuri Morozov, 2014-03-08
@metamorph

Yes, it's real, but there is a small pitfall in child pages: whether it is necessary to check the entire /page1/page2/.../pageN tree for existence.

T
top13, 2014-03-08
@top13

It's easier to get a template engine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question