View upload_controller.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Upload_Controller extends CI_Controller { | |
public function __construct() { | |
parent::__construct(); | |
} | |
public function custom_view(){ | |
$this->load->view('custom_view', array('error' => ' ' )); | |
} | |
public function do_upload(){ | |
$config = array( |
View module.xml
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> | |
<module name="Magenticians_Mymodule" setup_version="2.0.0" /> | |
</config> |
View AppServiceProvider.php
use Laravel\Dusk\DuskServiceProvider; | |
public function register() | |
{ | |
if ($this->app->environment('local', 'testing')) { | |
$this->app->register(DuskServiceProvider::class); | |
} | |
} |
View auth.php
'guards' => [ | |
'web' => [ | |
'driver' => 'session', | |
'provider' => 'users', | |
], |
View head.blade.php
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="Saquib" content="Blade"> | |
<title>Checkout our layout</title> | |
<!-- load bootstrap from a cdn --> |
View bootstrap.php
<?php | |
require "vendor/autoload.php"; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
View web.php
// ... | |
'components' => [ | |
// ... | |
'cdn' => [ | |
'class' => '\yii2cdn\Cdn', | |
'baseUrl' => defined ('YII2CDN_OFFLINE') | |
? 'http://localhost/yii2/cdn' |
View laravelaimeos.php
composer create-project aimeos/aimeos myshop |
View departments.php
<?php | |
class Departments extends CI_Model | |
{ | |
public function __construct() { | |
parent::__construct(); |
View captcha.php
<?php | |
defined('BASEPATH') OR exit('your exit message'); | |
class Captcha extends CI_Controller | |
{ | |
function __construct() |
OlderNewer