Sha256: 709ecd6a15c18421c6f45a809fd2e487cd4da4a5c36aa4dc3c6c27416a3a72b5

Contents?: true

Size: 486 Bytes

Versions: 17

Compression:

Stored size: 486 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
  class Frontend::ArticlesController < ApplicationController
  
    # Security & Filters
    layout '/layouts/phcpresspro/frontend.html.erb'
    
    # Article Index
    def index
      @articles_index = Articles::Post.where(pststatus: "published")
    end
    
    # Single Article Post
    def show
      @articles_single = Articles::Post.where(pststatus: "published").find(params[:id])
    end
  
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcpresspro-8.0.5 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.4 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.3 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.2 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.1 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.1.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.5 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.4 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.3 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.2 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.1 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-7.0.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.9.1 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.9.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.8.5 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.8.0 app/controllers/phcpresspro/frontend/articles_controller.rb