Войти
Введите цифры и буквы
Paul Sh
Пример работы можно посмотреть залогинившись на хабре.
в этом файле только данные о БД
не выходит каменный цветок) даже при удалении стандартной конфигурации роутнига $config['router']['config']['action_default'] = 'dashboard';
$config['router']['config']['action_default'] = 'dashboard';
$this->oUserCurrent=$this->User_GetUserCurrent();
$config['router']['config']['action_default'] = 'profile';
publick function Init() {
if ($this->oUserCurrent) { $this->SetDefaultEvent($this->oUserCurrent->getLogin()); } else { Router::Action('login'); }
$this->AddHook('module_vote_addvote_before', 'test3', __CLASS__);
public function test3($aArgs=array()) { if (isset($aArgs[0]) { $oVote = $aArgs[0]; if (!$oVoteUser = $this->User_GetUserById($oVote->getVoterId()) { return false; } //code } }
это неважно, туда надо было просто добавить строчку из config.php с измененным значением
Кто сказал что ты ее удалил? Ты установил главной несуществующую страницу, вот и 404…
ActionProfile — \classes\actionsActionProfile.class.php
ActionProfile:
find string:
add after:
action_event_ajax_before
и
action_event_ajax_after
SELECT b.blog_id, COUNT(t.topic_id) as count
FROM ".Config::Get('db.table.blog')." as b
LEFT JOIN ".Config::Get('db.table.topic')." t ON (t.blog_id = b.blog_id)
WHERE b.blog_type<>'personal'
GROUP BY b.blog_id
ORDER BY count ASC