Jump to content

Recommended Posts

Posted

сама ошибка 

Page Not Found

The page you have requested was not found on our server. Please check the address and make sure it is correct, and try again.

/?module=main&action=downloads

 

modules/main/download.php

<?php
if (!defined('FLUX_ROOT')) exit;
$pages = Flux::config('FluxTables.CMSPagesTable');
$path = trim($params->get('path'));

$sql = "SELECT title, body, modified FROM {$server->loginDatabase}.$pages WHERE path = ?";
$sth = $server->connection->getStatement($sql);
$sth->execute(array($path));

$pages = $sth->fetchAll();

if($pages) {
    foreach($pages as $prow) {
        $title        = $prow->title;
        $body        = $prow->body;
        $modified    = $prow->modified;
    }   
}
else {
    $this->redirect($this->url('main','index'));
}
?>
  and  themes/default/main/downloads.php

<?php if (!defined('FLUX_ROOT')) exit; ?>
<div class="heading">Downloads</div>

<li><a href="<?php something goes here?>">downloads</a>https://drive.google.com/file/d/1IuAdeK-xrrCD0tMfNjE6Z_XFfGlaXtSr/view</li>
 в чем ошибка кто может детально помочь  Спасибо заранее ...

Posted (edited)

В отсутствии страницы downloads в main? О_о The page you have requested was not found on our server.

создай/добавь страницу downloads.php в modules/main/... и  в theme/default/main/...

Edited by Balfear

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...