-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Релизация вывода по id #1
Comments
@foozzi, view - это у Вас точно контроллер? |
application/controllers/view.php есть |
$controller_name = 'Controller_'.$controller_name; ..... $controller_file = strtolower($controller_name).'.php'; $controller_path = "application/controllers/".$controller_file; if(file_exists($controller_path)) { include "application/controllers/".$controller_file; ...... я там в сообщении выше пропустил приставку controller_ |
с приставкой в первую очередь попробовал |
тогда выкладывайте код полностью на github, потому что так гадать можно вечно |
Решение - https://gist.github.com/dimkof/5668691 |
кстати, я бы на Вашем месте ввел бы третий параметр - id |
Собтвенно как вывести пост с условем where = 1 например, меня кидает на 404 роутер,создал модель, контроллер и представление для view
пытаюсь site.ru/view?id=1 , кидает на 404
The text was updated successfully, but these errors were encountered: