<?php
namespace MyApp\Controllers;
use Phalcon\Mvc\View;
use MyApp\Model\Products;
use MyApp\Model\Posts;
use MyApp\Model\ProductCategories;
class HomeController extends ControllerBase
{
public function indexAction() {
$products = new Products();
$this -> view -> products = $products -> findByLimit(6);
$posts = new Posts();
$this -> view -> posts = $posts -> findByLimit(4);
$this -> view -> titleForLayout = "Trang chủ - ".DEFAULT_NAME;
$categories = new ProductCategories();
$result = $categories->getMenuToTree();
echo "<pre>";
print_r($result);exit;
}
}
Friday, June 3, 2016
Debug in HomeController

Subscribe to:
Post Comments (Atom)
Sosial Media
Paling Dibaca
-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/ undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0 ...
-
a Access forbidden! You don't have permission to access the requested directory. There is either no index document or the direct...
-
Đây là html của 1 đoạn phim <video id= "video-hidden" width= "320" height= "240" controls > ...
-
công việc là gì Thái độ làm việc thể hiện chỉ hướng của con người. Muốn tìm hiểu thái độ làm việc của một người, hãy tìm hiểu thái độ ...
-
Tạo Breadcrumb cho Blogger Tạo Breadcrumb thân thiện với SEO cho Blogger, bao gồm 3 bước: Khai Báo breadcrumb Tìm dòng có đoạn code như vầy ...
-
Cách làm seo chia theo giai đoạn Việc đẩy một từ khóa lên top Google là không hề đơn giản. Đặc biệt là trong 1-2 năm trở lại đây, Google luô...
-
Cách sử dụng Git cho Bitbucket - Lệnh cơ bản git clone https://username@bitbucket.org/username/folk_name.git git remote add upstream https:/...
-
Tạo https cho tên miền trên Ubuntu với web server Apache2 #Bật Secure Sockets Layer của apache2 a2enmod ssl #Khởi động apache2 serv...
Kategori
Timeline
-
▼
2016
(65)
-
▼
June
(14)
- Tạo bash shell tự khởi động lại service khi bị tắt...
- Kiểm tra ip đang truy cập vào server bằng netstat
- The Unmanned Store
- jQuery Append chèn một thẻ p trong một thẻ div
- Thắc Mắc Về Godaddy
- Cách làm seo chia theo giai đoạn
- AngularJS học công nghệ mới
- SQLMAP
- WPSCAN Test Website
- Responsive Boostrap
- 500 internal server error phalcon apache2 solution
- Đi Chơi Quận 9 nhà anh Vũ
- Debug in HomeController
- Tạo Breadcrumb cho Blogger
-
▼
June
(14)
Formulir Kontak
About Me
Powered by Blogger.
EmoticonEmoticon