xml tag with one attribute and one value

2012-11-01 Thread kevin.ncbible
Hello ... and thank you so very much for assisting! The core libraries > utilities > xml documentation seems to imply that I can return the value of a tag's text by using '@' as the key. See following, straight from the documentation: === array( '@id' => 1,

Re: XML export basics

2012-09-04 Thread kevin.ncbible
Andras: Thank you! That was exactly what I needed, inserted at the top of the controller page. I do appreciate your help. On Tuesday, September 4, 2012 5:49:26 PM UTC-7, Andras Kende wrote: > > Try to add: > > App::uses('Xml', 'Utility'); > > Andras Kende > http://www.kende.com > -- You receive

XML export basics

2012-09-04 Thread kevin.ncbible
Hello ... and thank you for being willing to offer your time and expertise to help me! My ultimate goal is to take the data from one of my models and export it as an xml file (that I can then import into Adobe InDesign). I've read the article "XML" under "Core Libraries," but cannot seem to get

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread kevin.ncbible
Thank you cricket. >From what you've shared, I've been learning a lot about the Containable behavior, including limiting the fields displayed. That is very helpful. I was using: 'contain' => array( 'Passage' => array( 'fields' => array( 'Passage.id', 'Passage.ref_abbr') ),

Model with self association: how do I reference associated field from Child?

2012-08-23 Thread kevin.ncbible
Thank you, so much, for taking the time to help. I do appreciate how quickly individuals here has shared their expertise. I have a model, called "Topic", with a hasOne association to another model, called "Passage." In the Passage model is a field that I always need when calling up Topic data:

Re: How to access base model functions from a related behavior model

2012-08-20 Thread kevin.ncbible
Thank you, Tilen -- I really appreciate you sharing your time and talents: if you have associated Topic and TopicTree, than you can access in > controller with $this->TopicTree->Topic This first approach seems the most "elegant," but should I be trying to associate two models based on the same

Re: How to access base model functions from a related behavior model

2012-08-20 Thread kevin.ncbible
oops: in above, it should have read: e.g., my Clause model, with a one-to-one association to *Topic* -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, sen

How to access base model functions from a related behavior model

2012-08-20 Thread kevin.ncbible
Hi. Thank you, again, for helping. I have a basic model (Topic), with functions, e.g., MyFunction(), and another model that is a behavior (TopicTree), based on the same underlying table: public $useTable = 'topics'; public $name = 'TopicTree'; public $actsAs = array('Tree'); So,

Re: Proper MVC location for a function and its call

2012-08-03 Thread kevin.ncbible
cricket: A. That was it. So, it makes sense doesn't it, that when you're in the model you do not need to reference the model, so $this->getPath(...) is enough. So, in MVC terminology, I'm using the model to retrieve the data. re: Set, although I had read about it, I also was not getting t

Re: Proper MVC location for a function and its call

2012-08-02 Thread kevin.ncbible
Tarique: Thank you, so much. Yes, this is just being used by the one model. (If it was being used by more, then where would I put it?) So, per your instruction, I placed $this->TopicTree->getLevel($id); in one of my controller functions and successfully call it from a view. It in turn successf

Proper MVC location for a function and its call

2012-08-01 Thread kevin.ncbible
Hello. Thank you, so very much, for you time and expertise. I am just getting started with PHP, MVC, and CakePHP. Having read through the documentation, I'm still confused about how, where to do things with proper MVC. I have a function for a TreeBehavior that returns the level of a node in th