关于cakephp model的有关问题

WBOY
Release: 2016-06-13 13:37:11
Original
740 people have browsed it

关于cakephp model的问题
数据结构如下:

Array
(
  [Test] => Array
  (
  [id] => 5
  [start_time] =>  
  [end_time] =>  
  [date] => 0000-00-00
  [title] => Array
  (
  [en_us] => title_test
  [zh_hk] => zh_hk_test
  [zh_cn] => zh_cn_test
  )

  [url] => Array
  (
  [en_us] => url_test
  [zh_hk] => url_test_zh_hk
  [zh_cn] => url_test_zh_cn
  )

  [ready] => 1
  [modified_by] => 1
  )
)

saveAll的时候,如何只将zh_hk的值保存到title和url字段中?谢谢

------解决方案--------------------
保存什么不是你决定的吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template