开发者

cakephp overviews

开发者 https://www.devze.com 2023-02-22 01:54 出处:网络
I recently started working with CakePHP but there are a few things I don\'t understand... What do I have to do to get an overview of a couple o开发者_StackOverflowf functions/views on one page like \

I recently started working with CakePHP but there are a few things I don't understand...

What do I have to do to get an overview of a couple o开发者_StackOverflowf functions/views on one page like 'www.example.com/profile'. I really need help with this I am stuck in thinking in regular procedural php.


First off, you should follow the Blog tutorial on the CakePHP cook book : http://book.cakephp.org/view/1528/Blog

It's a great example and walks you through all the main stuff.

CakePHP follows an MVC structure and maps the URLs to controller/actions (using routes)

In your example www.example.com/profile, if you haven't changed the default routing, actually maps to the index method in your ProfileController. This method uses the view in /views/profiles/index.ctp to display output.

First follow the tutorial and read up on the CookBook to figure out what all this means. It's very easy to learn and they have some good documentation. Also check out code generation in CakePHP. It helps you create your apps faster (if used properly).


You need to read the manual about Routing. Also be familiar with basic Apache knowledge like mod_rewrite.

0

精彩评论

暂无评论...
验证码 换一张
取 消