We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



26.3k
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"?


43.9k

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