dmitryd / typo3-simplemvc

[OBSOLETE] A TYPO3 "simplemvc" extension. This extension adds a simple high performance MVC framework to TYPO3.
7 stars 0 forks source link

Mistakes in manual #14

Open rikwillems opened 10 years ago

rikwillems commented 10 years ago

The manual of the 4_x branch has some mistakes that makes it hard to make the code work. I attached an updated manual with tracked changes.

rikwillems commented 10 years ago

Ok, none-image files are not supported.

rikwillems commented 10 years ago

Top page 4:

$extpath = t3lib_extMgm::extPath . 'yourextkey'; return array(

);

$extpath = t3lib_extMgm::extPath('yourextkey'); return array( );

Also page 4:

$extpath = t3lib_extMgm::extPath . 'yourextkey';

$extpath = t3lib_extMgm::extPath('yourextkey');

Also page 4: Keep example names the same

cat=tx_yourext; type=int+; label=Storage PID;Storage PID for records

plugin.tx_yourext.storagePid = 0

cat=tx_myext; type=int+; label=Storage PID;Storage PID for records

plugin.tx_myext.storagePid = 0

Also page 4:

storagePid = {$plugin.tx_myext>storagePid}

storagePid = {$plugin.tx_myext.storagePid}

Page 5:

public anotherAction() {

public function anotherAction() {

Top page 7 The translation wasn't available so there was no output. This was very confusing. Either document or use another example.

public function render() {
    return sprintf($this->getLL('page_info'),
        htmlspecialchars($this->page->getTitle()),
        date('d.m.Y', $this->page->getCrdate())
    );
}

There is a parenthese missing at the end of this line.

        date('d.m.Y', $this->page->getCrdate()

        date('d.m.Y', $this->page->getCrdate())