Home >Backend Development >PHP Tutorial >关于cakephp model的有关问题

关于cakephp model的有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:14:55891browse

关于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字段中?谢谢

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

Statement:
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
Previous article:Zend Studio是什么软件Next article:PHP+MYSQL乱码