The concept behind the model-array?

View: New views
2 Messages — Rating Filter:   Alert me  

The concept behind the model-array?

by Walter Seeberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
TYPO3-team-extension-coordination mailing list
TYPO3-team-extension-coordination@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination

Re: The concept behind the model-array?

by Xavier Perseguers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
TYPO3-team-extension-coordination mailing list
TYPO3-team-extension-coordination@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination