# |
May 28th 2016, 21:25 |
ionas |
if your code base is small, re-create in cakephp3 if you want to learn great new features |
# |
May 28th 2016, 21:25 |
first |
why is http://cakephp.org/ without ssl? |
# |
May 28th 2016, 21:25 |
ionas |
then you can do it in afterfind or you can create a helper or just call the class/object from the view template and be done with it |
# |
May 28th 2016, 21:24 |
Xeus |
basically the goal is to bring up a new wiki in less than a minute |
# |
May 28th 2016, 21:24 |
ionas |
ok good |
# |
May 28th 2016, 21:24 |
Xeus |
it is a very simple and fast wiki app |
# |
May 28th 2016, 21:24 |
ionas |
body = markdown, rendered_body = h() -> markdown() -> |
# |
May 28th 2016, 21:24 |
Xeus |
this app was created a long time ago |
# |
May 28th 2016, 21:24 |
Xeus |
I am using 2.8 |
# |
May 28th 2016, 21:24 |
ionas |
if it is create a virtual property in the entity |
# |
May 28th 2016, 21:23 |
ionas |
cakephp3? |
# |
May 28th 2016, 21:23 |
ionas |
maybe it has composer support now |
# |
May 28th 2016, 21:23 |
Xeus |
yeah I am sure mine is out of date |
# |
May 28th 2016, 21:23 |
Xeus |
nice |
# |
May 28th 2016, 21:23 |
ionas |
but maybe parsedown is good, I had good xp with it |
# |
May 28th 2016, 21:23 |
Xeus |
ok |
# |
May 28th 2016, 21:22 |
ionas |
yeah h() is convenience with some default around htmlentities afair |
# |
May 28th 2016, 21:22 |
ionas |
it should not â??changeâ? over multiple saves |
# |
May 28th 2016, 21:22 |
Xeus |
I am doing output -> htmlentities() -> markdown() right now |
# |
May 28th 2016, 21:22 |
ionas |
try to save the same body multiple times |
# |
May 28th 2016, 21:22 |
Xeus |
ok |
# |
May 28th 2016, 21:21 |
ionas |
then Iâ??d do: input -> save; output -> h() -> markdown() |
# |
May 28th 2016, 21:21 |
ionas |
ah ok |
# |
May 28th 2016, 21:21 |
Xeus |
so people can make wiki pages about html |
# |
May 28th 2016, 21:21 |
ionas |
however then h() is right |
# |
May 28th 2016, 21:21 |
ionas |
why? |
# |
May 28th 2016, 21:21 |
Xeus |
just convert to html entities |
# |
May 28th 2016, 21:21 |
ionas |
ah |
# |
May 28th 2016, 21:21 |
ionas |
on output: h() then parsedown -> render |
# |
May 28th 2016, 21:21 |
Xeus |
I want to keep the tags |
# |
May 28th 2016, 21:20 |
ionas |
so on input: strip_tags() then store to database |
# |
May 28th 2016, 21:20 |
ionas |
and Xeus: http://php.net/manual/en/function.strip-tags.php |
# |
May 28th 2016, 21:20 |
Xeus |
I will check that out |
# |
May 28th 2016, 21:20 |
ionas |
Iâ??d probably use Parsedown PHP Library |
# |
May 28th 2016, 21:20 |
ionas |
cool |
# |
May 28th 2016, 21:19 |
Xeus |
I am going to be creating a SAAS product from it to allow people to spin up their own wikis |
# |
May 28th 2016, 21:19 |
Xeus |
I am updating an old wiki app I created to CakePHP 2.8 and docker: https://github.com/Dynamictivity/sqwiki/blob/master/View/Helper/MarkdownHelper.php#L11 |
# |
May 28th 2016, 21:19 |
ionas |
h() |
# |
May 28th 2016, 21:18 |
ionas |
php strip_tags |
# |
May 28th 2016, 21:18 |
ionas |
Xeus: good :) |
# |
May 28th 2016, 21:18 |
Xeus |
I am already using markdown |