Shineyrock web design & consultancy

Shineyrock

Searched for: "html" / 740 results

Crafting APIs With Rails

…html.erb file is missing as well.Another important difference is that the ApplicationController inherits from the ActionController::API, not ActionController::Base.That's pretty much it—all in all, this is a basic Rails application you've seen many times. Now let's add a couple of models so that we have something to work with:rails g model…


Integrate External Libraries in OpenCart Using Composer

…HTML(true); $objPhpMailer->Subject = "Subject"; $objPhpMailer->Body = "<h2>HTML Body</h2>"; $objPhpMailer->AltBody = "Plain Body"; if(!$objPhpMailer->Send()) { echo "Message could not be sent. <p>"; echo "Mailer Error: " . $objPhpMailer->ErrorInfo; exit; } echo "Message has been sent"; exit; } }You could test it by accessing your site via http://your-opencart-site-url/index.php?route=example/email.In the index method, you…


Using Namespaces and Autoloading in WordPress Plugins, Part 4

…html( "The file attempting to be loaded at $filepath does not exist." ) ); }And at this point, we have a full autoloader (which can be retrieved by downloading the files from the link in the sidebar of this post as the source code would be a bit long to…


Adding Custom Fields to Simple Products With WooCommerce

…html( $teaser ); } }The end result should be something like this:At this point, we have some redundant code. Specifically, the public and the administrative classes both use a textfield_ID and set it up in their constructor. This is a code smell as it violates the whole DRY principle of…


Building Your Startup: Automatic Time-Zone Detection

…Html::activeHiddenInput($model, 'url_prefix',['value'=>\common\components\MiscHelpers::getUrlPrefix(),'id'=>'url_prefix']); ?> <?= BaseHtml::activeHiddenInput($model, 'tz_dynamic',['id'=>'tz_dynamic']); ?> <?= BaseHtml::activeHiddenInput($model, 'tz_current',['id'=>'tz_current']); ?> The url_prefix helps manage JavaScript addressing between development and production environments. The tz_current is loaded from MeetingTimeController.php. It's the user's current time-zone setting in Meeting Planner. The tz_dynamic will be filled in by our detection script.I also created two…


Get Started Building Your Blog With Parse.js: Migration to Your Own Parse Server

…html. Instead of using the version 1.2.19: <script src="//www.parsecdn.com/js/parse-1.2.19.min.js"></script> Switch to the newest version: <script src="//npmcdn.com/parse/dist/parse.min.js"></script> Also, let’s add lodash and Backbone. Now that Parse has stopped supporting Backbone, we need to include it to keep using the Views and Router. <!-- Lodash --> <script src="//cdn.jsdelivr.net/lodash/4.17.3/lodash.min.js"></script> <!-- Backbone.js --> <script…


Authentication in Rails Using Clearance

…html.erb <h1>Tutsplus Clearance</h1> <p>Welcome to our Clearance Page.</p>Edit your routes to:#config/routes.rb Rails.application.routes.draw do root to: "pages#index" endCreate a partial named _navigation.html.erb inside the layouts directory. This will be used to handle everything that has to do with navigation on your application.Paste the following code and save.#app/views/layouts/_navigation.html.erb <nav class="navbar navbar-inverse"> <div…


Make Creating Websites Fun Again With Hugo

…HTML pages served to the user.In this guide, I will show you how to setup your development environment with Hugo and build your first static Hugo website.A Brand New Approach to Static Websites The legendary design acronym KISS - Keep It Simple, Stupid - can be applied to Hugo and…


Using the New York Times API to Scrape Metadata

…What You'll Be CreatingIntroductionLast week, I wrote an introduction to scraping web pages to collect metadata, mentioning that it's not possible to scrape the New York Times site. The Times paywall blocks your attempts to gather basic metadata. But there is a way around this using the New York Times…


Getting Started With Cassandra: Using CQL API and CQLSH

…Apache Cassandra is one of the most popular open-source distributed database systems available. It was designed with the goal of handling large amounts of data stored in many servers distributed across geographies while providing high scalability and availability with no single point of failure. Cassandra systems can span multiple data…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.