- Ersteller des Themas
- #1
Hallo zusammen,
Vielleicht hat von euch jemand einen tipp für mich !
Ich möchte gerne das die url https://xxxx.xxxx/download/1003785
so ausgegeben wird https://xxxx.xxxx/download/titel-vom-film/1003785
Der inhalt der php datei schaut so aus:
die ausgabe für den titel ist $article->title
danke schon mal an alle die mir eine lösung anbieten.
gruß
Vielleicht hat von euch jemand einen tipp für mich !
Ich möchte gerne das die url https://xxxx.xxxx/download/1003785
so ausgegeben wird https://xxxx.xxxx/download/titel-vom-film/1003785
Der inhalt der php datei schaut so aus:
Code:
public function action_index($article_id = '')
{
$article = Model_Article::query()->where ('id', $article_id)->get_one();
if(!$article)
{
throw HttpNotFoundException;
}
$article->links = json_decode($article->links, true);
$data['article'] = $article;
'url' => Uri::base().'download/'.$article->id,
danke schon mal an alle die mir eine lösung anbieten.
gruß