English 中文(简体)
CakePHP在即时之前将数据输入部件
原标题:CakePHP passing data to component before instantiation
  • 时间:2010-12-10 02:13:30
  •  标签:
  • cakephp

我有一个组成部分,利用某些班子从事本应该做的工作。 我需要把数据传送给它,以便它能够立即提出它所需要的物体。 我如何能够这样做?

是否应使用<条码>初始化(和;$Controller, 设定数=阵列() 如果是的话,我怎么能够填写<代码>?

最佳回答

www.un.org/Depts/DGACM/index_spanish.htm 通常都是这样做的好地点,$-dingsps可通过 储存:$components。 阵容:

public $components = array( Foobar  => array( baz  => 42));
// array( baz  => 42) will be passed as the second argument ($settings) to
// FoobarComponent::initialize(&$Controller, $settings)
问题回答

暂无回答




相关问题
PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

specifying date format when using $form->inputs() in CakePHP

I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...

Using DISTINCT in a CakePHP find function

I am writing a CakePHP 1.2 app. I have a list of people that I want the user to be able to filter on different fields. For each filterable field, I have a drop down list. Choose the filter ...

Assistance with CakePHP model relationships

How would I represent the following in a CakePHP model? Product ======= product_id .... Cart ==== cart_id .... Carts_Products ============== cart_id product_id quantity

Prevent controller from trying to autoload model

I am a beginning Cake user and trying to do some work on an already existing application. Running into a problem when I create a new controller. I have created StoreController and when I try to call ...

热门标签