$this->data['ProCollectiontype']['id']
$this->data['ProProducttype']['pro_category_id']
and so on

On Jul 10, 7:12 am, leafchild <[email protected]> wrote:
> controller: created by bake( this part handle data is available to
> view):
> =========================================
> ...
>                 if (empty($this->data)) {
>
>                         $this->data = $this->ProCollectiontype->read(null, 
> $id);
>
>                 }
> ...
> =========================================
>
> view: I can show data if I use form Helper
> ===============================================================
> <?php echo $form->input('description'); ?>
> <?php echo $form->textarea("ProCollectiontype.description", array
> ("cols"=>52, "rows"=>3));?>
>
> ================================================================
>
> query:
> ================================================================
> SELECT `ProCollectiontype`.`id`,
> `ProCollectiontype`.`pro_collection_id`,
> `ProCollectiontype`.`pro_producttype_id`,
> `ProCollectiontype`.`description`, `ProProducttype`.`id`,
> `ProProducttype`.`pro_category_id`,
> `ProProducttype`.`producttype_name`, `ProCollection`.`id`,
> `ProCollection`.`pro_category_id`,
> `ProCollection`.`pro_subcategory_id`, `ProCollection`.`pro_brand_id`,
> `ProCollection`.`pro_productline_id`, `ProCollection`.`group`,
> `ProCollection`.`display`, `ProCroppedImg`.`id`,
> `ProCroppedImg`.`pro_collectiontype_id`, `ProCroppedImg`.`org_name1`,
> `ProCroppedImg`.`server_name1`, `ProCroppedImg`.`org_name2`,
> `ProCroppedImg`.`server_name2`, `ProCroppedImg`.`org_name3`,
> `ProCroppedImg`.`server_name3`, `ProCroppedImg`.`org_name4`,
> `ProCroppedImg`.`server_name4`, `ProCroppedImg`.`org_name5`,
> `ProCroppedImg`.`server_name5`, `ProFullImg`.`id`,
> `ProFullImg`.`pro_collectiontype_id`, `ProFullImg`.`org_name1`,
> `ProFullImg`.`server_name1`, `ProFullImg`.`org_name2`,
> `ProFullImg`.`server_name2`, `ProFullImg`.`org_name3`,
> `ProFullImg`.`server_name3`, `ProFullImg`.`org_name4`,
> `ProFullImg`.`server_name4`, `ProFullImg`.`org_name5`,
> `ProFullImg`.`server_name5` FROM `pro_collectiontypes` AS
> `ProCollectiontype` LEFT JOIN `pro_producttypes` AS `ProProducttype`
> ON (`ProCollectiontype`.`pro_producttype_id` = `ProProducttype`.`id`)
> LEFT JOIN `pro_collections` AS `ProCollection` ON
> (`ProCollectiontype`.`pro_collection_id` = `ProCollection`.`id`) LEFT
> JOIN `pro_cropped_imgs` AS `ProCroppedImg` ON
> (`ProCroppedImg`.`pro_collectiontype_id` = `ProCollectiontype`.`id`)
> LEFT JOIN `pro_full_imgs` AS `ProFullImg` ON
> (`ProFullImg`.`pro_collectiontype_id` = `ProCollectiontype`.`id`)
> WHERE `ProCollectiontype`.`id` = 1 LIMIT 1  1 1 1
> 2 SELECT `ProProduct`.`id`, `ProProduct`.`pro_collectiontype_id`,
> `ProProduct`.`sku`, `ProProduct`.`style_num`,
> `ProProduct`.`pro_size_id`, `ProProduct`.`pro_color_id`,
> `ProProduct`.`pro_scent_id`, `ProProduct`.`price`,
> `ProProduct`.`display` FROM `pro_products` AS `ProProduct` WHERE
> `ProProduct`.`pro_collectiontype_id` = (1)
>
> ================================================================
>
> How can I show some data in view page instead of using form Helper?
> Looking at query, data is available but I don't know how I can access
> these information.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to