📜 ⬆️ ⬇️

My little CakePHP web service

Hello. In this post, I want to describe how a small “web service” was written as a learning framework for CakePHP, namely, the bookmark manager of web pages.
image
Just want to say that I did not have plans to write a mega functional service, such as Evernote. I tried to make the site as easy to use as possible.


Idea


The idea appeared somewhere between picking in Firefox Sync and reinstalling the OS, after which all my bookmarks disappeared. Yes, and I somehow did not want to be attached to a specific browser, I wanted the bookmarks to be more accessible from any browser and any PC.

Also, I don’t really like the display of all the bookmarks interspersed without categorization (maybe I'm just lazy to understand all the features of the saved bookmarks in Google Chrome or FireFox).
')
I also started learning CakePHP and as a practice I tried to solve my problem by writing a small service :)

What is it


“It's just a place where you can save your favorite web pages.”
Everything is simple enough to add a new bookmark link needed. Bookmarks are displayed as thumbnails (as in Google Chrome), if you don’t want to see thumbnails, you can cancel this option in the settings. The title of the bookmark is the page title (this option can also be unchecked). You can create, delete, rename directories. Nothing complicated.

image
Bookmarks display

Check in. Enter the desired nickname and password, everything. Nothing needs to be confirmed (I know that people would be too lazy to confirm anything there via email).

Cakephp


In PHP programming, I can say newbie (3rd year), always wrote in pure PHP. But I decided to try to learn some PHP framework, as I often see vacancies for the Junior position with the requirement or desire to know one of the frameworks.

So, CakePHP I would put a score of 4 with a minus. The downside is that I had difficulty defining templates for individual pages, as well as creating my own helper and components.

What I liked: validation of data, models, built-in functions of CakePHP itself, work with display, routing, ease of learning (compared to ZF), good help.
Also, this is not the whole cake (I described only what I used), there is also a code generator, different plugins, ACLs, and much more. More on wikipedia .

useful links



I would like to share useful links that will help with the study of Kake.



Also


Also, I specifically developed the Google Chrome extension for the project (my first extension).
If there are any suggestions, then also knock on the PM, or in the feedback on the site.

At last


I would like to say that I received pleasure and little experience from writing this web service, that is, I wrote for the sake of the process itself, I am 18 years old and so far (I think it will always be so) I'm interested.

UPD: Link
UPD2: Added Google Chrome extension
UPD3 (07/07/2012): Updated the design, added the input through FB, VK, etc.

Source: https://habr.com/ru/post/142881/


All Articles