[TYPO3-ect] The concept behind the model-array?
Xavier Perseguers
typo3 at perseguers.ch
Wed Jul 29 14:37:57 CEST 2009
Hi Walter,
Please send your question to typo3.dev instead as this list is not for
coding questions.
Regards
Walter Seeberger wrote:
> Hello everybody,
>
> I am trying to deal with the lib/div-components to have a new extension.
> Now I am having a problem to work with my model, I don't got the idea behind the registry-area of a model class...
>
> Ok, I query the db and register the values:
>
> $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields, $tables, $where, $groupBy, $orderBy);
> if($result) {
> while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
> $entry = new tx_lib_object($row);
> $this->append($entry);
> }
> }
>
> Now, I am able to print out the stuff through my views and templates.
> Fine. But how can I deal with some other queries in this model? I can't register more records in this way:
>
> $this->set('foo','bar');
>
> after my query... There is something with parameters for different query, but I do not understand that.
>
> You may help me?
> Thank you.
>
> Walter
--
Xavier Perseguers
MVC ExtJS Samples Leader
http://forge.typo3.org/projects/show/extension-mvc_extjs_samples
More information about the TYPO3-team-extension-coordination
mailing list