Тогда скажите хотябы ключевые слова, для ваших сайтов в топе? ( без CMS )
Привидите примеры своих сайтов пожалуйста? ( ссылки )
Ну извините пожалуйста!
Спасибо! Разобрался. Создал нового пользователя в настройках open server.
Спрошу здесь за одно. Как на этом форуме закрывать темы?
Ответьте пожалуйста на мой, так сказать, глупый вопрос?
Почему некоторые компании пишут, что ищут специалиста специально который может разрабатывать модули на определённой CMS ?
То есть получается, что у каждой CMS нужно что-то знать? Или как это работает?
Если вы такие хакеры и можете взламывать продукты больших IT компаний.
Я думаю вам не составит взломать мой контакт? ( если, не струсили, тогда напиши мне в личку, я отправлю ссылку на страницу)
$smarty->template_dir
Я так понял мне нужна
$smarty->config_dir
Только куда её вставлять? в main.conf или же в test.php ?
PS - пробовал туда и туда, результат нулевой.
Сделал так файл test.php:
<html> <head> <title>Привет</title> </head> <body> <? $smarty->config_dir; {config_load file="config/main.conf"} {#title#} ?> </body> </html>
Если добавлять её в main.conf то там, как я понял нужны <?php ?> от php ?
Понятно! Что-то я совсем запутался в этом смарте!
Делаю самую простую вещь: файл main.conf
title = "Мой сайт" BgColor = "Black" BorderSize = 1
файл test.php
<html> <head> <title>Привет</title> </head> <body> <table> <tr> {config_load file="config/main.conf"} <td>Хомяк</td> <td>{#title#}</td> <td>Жук</td> </tr> </table> </body> </html>
И это не срабатывает! Я просто понять не могу в чём прикол? Инструкции в интернете пересмотрел нечего не выходит!
class MySmarty extends Smarty { function MySmarty() { $this->Smarty();
class MySmarty extends Smarty { function MySmarty() { $this->__construct();
Не помогает! Выдаёт:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "templates\test.tpl" on line 1 "Привет, {$name}!" unknown tag "private_print_expression"' in C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 1) #1 C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(27) #4 C:\open\OpenServer\domains\local\sysplugins\smarty_internal_smartytemplatecompiler. in C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templatecompilerbase.php on line 665
define('SMARTY_DIR', '/'); require(SMARTYDIR . 'Smarty.class.php');
define('SMARTY_DIR', '/'); require(SMARTY_DIR . 'Smarty.class.php');
Спасибо! Эт, не я ошибся! Это автор в учебнике ошибся)))
Сейчас вылезает вот такое: Fatal error: Uncaught exception 'SmartyException' with message 'PHP5 requires you to call __construct() instead of Smarty()' in C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templatebase.php:803 Stack trace: #0 C:\open\OpenServer\domains\local\setup.php(14): Smarty_Internal_TemplateBase->__call('Smarty', Array) #1 C:\open\OpenServer\domains\local\setup.php(14): MySmarty->Smarty() #2 C:\open\OpenServer\domains\local\smarty-test.php(10): MySmarty->MySmarty() #3 {main} thrown in C:\open\OpenServer\domains\local\sysplugins\smarty_internal_templatebase.php on line 803