Hello all! Now I am working as a real programmer in a digital agency company. Well, I work with CMS and it’s not like I only put the contents into the web. I work on the programming part. Creating the blog using a certain CMS, then adding modules needed in it. I am currently working with .NET, ASP, MVC, and of course C#.
Well. I got my first task. Build a module to upload an image on a blog that use MVC. Quite easy I think. So as usual, I create the model, then controller, then view. When I code, all seems right. All seems well. No error on the first compilation. But what happened next is unbelievable. My module is not detected. Even the controller is not known by the CMS! I was like “WHAT THE HELL!!!”
Then I asked my friend and he said that there is some convention in writing a module for the CMS. I have to make this file and that file. I have to make sure it is well written and many more! Okay. I follow. The module shows up. But where’s my controller? Why did every time I tried to access it, it will give me 404 error? How could it cannot be found?! It is so annoying, very annoying to use a CMS like this I think.
What I am trying to say is that in building an additional module for an existing software, we have to follow the regulation. Use this and that. Put that somewhere and that. Then we may create and add the module properly.
But also for those who like to create CMS, create a well documented code and documentation. Well, we can put some comments on top of the method and create a full explaining document and step by step guide. Because it is so tiring to read the codes then follow the flows only to understand how it works.
Have a good Sunday everyone!