Commit b947cd72 authored by Kevin Yumang's avatar Kevin Yumang

fix doctype problem on loading

parent c42562ae
.table-docu {
line-height: 2;
font-size: 13px;
}
\ No newline at end of file
......@@ -30,7 +30,7 @@
| Class "BladeManagement"
|------------------------------------------------------------------------------------------------
*/
class BladeManagement
class BladeManagement
{
/*
......@@ -101,40 +101,43 @@
|--------------------------------------------------------------------------------
| Load all allocations from the config.
*/
foreach ($config->methodAllocation as $key => $method)
if(isset($config->methodAllocation))
  • added isset to methodAllocation since i removed this one on the helper config.php

Please register or sign in to reply
{
$blade->directive($key, function ($parameters) use ($key, $config, $method, $folder, $namespace)
foreach ($config->methodAllocation as $key => $method)
{
/*
|------------------------------------------------------------------------
| Protect parameters array against empty strings.
*/
if (strlen($parameters) < 2)
$blade->directive($key, function ($parameters) use ($key, $config, $method, $folder, $namespace)
{
$parameters = 'array()';
}
/*
|------------------------------------------------------------------------
| Increase the picasso unique id.
*/
$this->picassoid++;
/*
|------------------------------------------------------------------------
| Register the directive return value (related View) together with the
| picasso tag as identifier.
*/
return
'<picasso id="picasso' . $this->picassoid . '" type="start" folder="' . $folder . '" method="' . $method . '"></picasso>' .
AssetHelper::generateAssetTag($config, $namespace, $folder, $key) .
'<?php
$array = ' . $parameters . ';
$class = new \Ceetrox\Sidekick\Views\\' . $namespace . '\\' . $folder . '\Config();
echo $class -> ' . $method . '($array)->render();
?>' .
'<picasso id="picasso' . $this->picassoid . '" type="stop"></picasso>';
});
/*
|------------------------------------------------------------------------
| Protect parameters array against empty strings.
*/
if (strlen($parameters) < 2)
{
$parameters = 'array()';
}
/*
|------------------------------------------------------------------------
| Increase the picasso unique id.
*/
$this->picassoid++;
/*
|------------------------------------------------------------------------
| Register the directive return value (related View) together with the
| picasso tag as identifier.
*/
return
'<picasso id="picasso' . $this->picassoid . '" type="start" folder="' . $folder . '" method="' . $method . '"></picasso>' .
AssetHelper::generateAssetTag($config, $namespace, $folder, $key) .
'<?php
$array = ' . $parameters . ';
$class = new \Ceetrox\Sidekick\Views\\' . $namespace . '\\' . $folder . '\Config();
echo $class -> ' . $method . '($array)->render();
?>' .
'<picasso id="picasso' . $this->picassoid . '" type="stop"></picasso>';
});
}
}
}
}
......@@ -149,7 +152,7 @@
| Class "ViewStorage"
|------------------------------------------------------------------------------------------------
*/
class ViewStorage extends ServiceProvider
class ViewStorage extends ServiceProvider
{
/*
......
<?php
  • i use this class "Limitless::Documentation" to bootstrap the documentation...

Please register or sign in to reply
//
// This little helper boots the documentation.
// @extends('Limitless::Documentation')
//
$x = new Ceetrox\Sidekick\Views\Limitless\Help\Config();
echo $x -> internalNavigation();
?>
......@@ -29,24 +29,14 @@
| Class "Config"
|------------------------------------------------------------------------------------------------
*/
class Config
class Config
{
/*
|--------------------------------------------------------------------------------------------
| Parameter
|--------------------------------------------------------------------------------------------
*/
public $methodAllocation = [
  • removed because this is not working within this special file... since this is bootstraped by the "documentation helper"...

Please register or sign in to reply
'Limitless::Help' => 'internalNavigation',
];
/*
|--------------------------------------------------------------------------------------------
| Method "internalNavigation"
|--------------------------------------------------------------------------------------------
*/
public function internalNavigation($parameters)
public function internalNavigation()
{
if(isset($_GET['page'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment