add new page to website

I want to add a new page in my website. I put one link in may profile page <a href="localhost/sciprofile/user/opencv">Open Cv</a> and in user controller I wrote one action public function opencvAction(){} and in view/user I created one file opencv.phtml when I click on the link open cv it opens page but it did not include opencv.phtml page



17.4k
edited Jul '14
  1. How you declared your bootstrap file? I mean how you declared your "view" component? My default folder for views is views. Which is yours? In your post you have written view - without s at the end. Maybe you should change your folder name from "view" to "views"?


30.7k

btw, you should better use tag helper to generate your link: http://docs.phalconphp.com/en/latest/reference/tags.html#generating-links