开发者

Cakephp change model's title without rename model/dbtable

开发者 https://www.devze.com 2023-01-04 03:13 出处:网络
I have a table th开发者_Python百科at store all information about class, but because Class is reserved for class name I had to rename the table from classes to types.

I have a table th开发者_Python百科at store all information about class, but because Class is reserved for class name I had to rename the table from classes to types.

But in the view section I need it to be displayed as "Class", including the Paginator links.

Anyway to achieve this by adding something in the Type model, without completely customize Paginator and and all view compoenents?


Which display elements in the view are you trying to customise?

As you could probably do this using routes.

http://book.cakephp.org/view/341/Routes

0

精彩评论

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