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 @@ ...@@ -30,7 +30,7 @@
| Class "BladeManagement" | Class "BladeManagement"
|------------------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------------------
*/ */
class BladeManagement class BladeManagement
{ {
/* /*
...@@ -101,40 +101,43 @@ ...@@ -101,40 +101,43 @@
|-------------------------------------------------------------------------------- |--------------------------------------------------------------------------------
| Load all allocations from the config. | 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)
{ {
/* $blade->directive($key, function ($parameters) use ($key, $config, $method, $folder, $namespace)
|------------------------------------------------------------------------
| Protect parameters array against empty strings.
*/
if (strlen($parameters) < 2)
{ {
$parameters = 'array()'; /*
} |------------------------------------------------------------------------
| Protect parameters array against empty strings.
/* */
|------------------------------------------------------------------------ if (strlen($parameters) < 2)
| Increase the picasso unique id. {
*/ $parameters = 'array()';
$this->picassoid++; }
/* /*
|------------------------------------------------------------------------ |------------------------------------------------------------------------
| Register the directive return value (related View) together with the | Increase the picasso unique id.
| picasso tag as identifier. */
*/ $this->picassoid++;
return
'<picasso id="picasso' . $this->picassoid . '" type="start" folder="' . $folder . '" method="' . $method . '"></picasso>' . /*
AssetHelper::generateAssetTag($config, $namespace, $folder, $key) . |------------------------------------------------------------------------
'<?php | Register the directive return value (related View) together with the
$array = ' . $parameters . '; | picasso tag as identifier.
$class = new \Ceetrox\Sidekick\Views\\' . $namespace . '\\' . $folder . '\Config(); */
echo $class -> ' . $method . '($array)->render(); return
?>' . '<picasso id="picasso' . $this->picassoid . '" type="start" folder="' . $folder . '" method="' . $method . '"></picasso>' .
'<picasso id="picasso' . $this->picassoid . '" type="stop"></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 @@ ...@@ -149,7 +152,7 @@
| Class "ViewStorage" | 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 @@ ...@@ -29,24 +29,14 @@
| Class "Config" | 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" | Method "internalNavigation"
|-------------------------------------------------------------------------------------------- |--------------------------------------------------------------------------------------------
*/ */
public function internalNavigation($parameters) public function internalNavigation()
{ {
if(isset($_GET['page'])) { 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