PHP-Kohana中的模型 [英] PHP - Models in Kohana

查看:79
本文介绍了PHP-Kohana中的模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是PHP的初学者,有人告诉我必须使用Kohana框架对该特定项目进行编程.

我是PHP和Kohana的新手,但是我设法在项目的控制器部分中完成了这一部分(到目前为止),但是每段代码(除了网站格式,位于views部分中)都位于控制器. (全部600行).

我确实知道我必须使用这些模型,但是Kohana文档尚未完成.我不知道,不仅是什么模型,也不知道如何通过控制器与之通信.

有人可以让我深入了解Kohana中的模型是什么,以及如何编写和访问它们.

谢谢:-)

Hi,

I am a beginner in PHP and I got told I have to program this particular project using the Kohana framework.

I am new to PHP and Kohana however I managed to complete my section (so far) in the controller part of the project, however every piece of code (except the formatting of the website, which is in the views section) is located in the controller. (All 600 lines).

I do know however that I have to use the models, yet the Kohana documentation is not yet complete. I have no idea, not only what models are or how to write and communicate through the controller with them.

Can some-one give me an insight into describing what are models in Kohana and how do you write + access them.

Thank-You :-)

推荐答案

检查以下内容:

科纳那的模型 [ kohana-mvc-models [
check these out:

models in Kohana[^]

kohana-mvc-models[^]

hope it helps :)


这篇关于PHP-Kohana中的模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆