[Typo3-dev] Some questions concerning extension programming
Andreas Bulling
spam at phoenix.hadiko.de
Tue Nov 29 13:49:52 CET 2005
On 29. Nov 2005 - 13:41:54, Bernhard Kraft wrote:
| In my eyes that is rather complicated ...
I thought the same when reading the code ;)
| A simple:
|
| $link = $this->cObj->typolink('linked text', array('parameter' => $GLOBALS['TSFE']->id));
|
| would achieve the same ... add all those cache and extra parameters and it will work ?
Well, apparently it didn't achieve the same because I had that before:
$conf = array(
'useCacheHash' => $this->pi_USER_INT_obj ? 0 : $this->allowCaching,
'no_cache' => $this->pi_USER_INT_obj ? 0 : !$this->allowCaching,
'parameter' => $pageID,
'section' => 'cat_' . $categoryUID,
);
$link = $this->local_cObj->typoLink( $category, $conf );
This didn't work but $pageID is set for sure.
| May anyone tell me why they instance a new cObj ? What is the problem with the existing one?
I'm also interested in an answer to this question (see other posting).
Sincerly,
Andreas
More information about the TYPO3-dev
mailing list