Jump to content


harshalone

Member Since 24 Dec 2015
Offline Last Active Jul 20 2019 11:07 PM
-----

Posts I've Made

In Topic: Ooooops, something went wrong! If you can see this message, this is proba...

13 July 2019 - 02:29 PM

Solution:

 

Step 1:

 

Make sure in your view you have file iterated via a loop like this

 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php foreach($output->css_files as $file): ?>
        <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
    <?php endforeach; ?>
</head>
<body>
        <div style="padding: 20px 10px;">
            <?php print_r($output->output); ?>
        </div>
        <?php foreach($output->js_files as $file): ?>
            <script src="<?php echo $file; ?>"></script>
        <?php endforeach; ?>
</body>
</html>

 

 

 

 

Step 2: please include this before output

 

if (isset($data->output ->isJSONResponse) && $data->output->isJSONResponse) {
            header('Content-Type: application/json; charset=utf-8');
            echo $data->output->output;
            exit;
        }$this->load->view('test',$data);

In Topic: Ooooops, something went wrong! If you can see this message, this is proba...

13 July 2019 - 01:44 PM

If you think the path is not correct let me tell you that if you copy paste any asset url whether it is a js file or css. They are all publically accessible. 

 

GroceryCrud\Core\Render\RenderAbstract Object ( [output] =>

Ooooops, something went wrong! If you can see this message, this is probably a misconfiguration in Grocery CRUD Enterprise!
 
 
...
Ok
 
 
 
 
 
 
 
 
 
 
 
 
 

[isJSONResponse] => [outputAsObject] => [js_files] => Array ( [c69319ced0fb3d6c48dce8da696b9a246a584427] => https://www.bylde.co...query/jquery.js [b945c772b3edcbae25bae3b763eb6dc153255cdf] => https://www.bylde.co...es/jquery-ui.js [565ee980b9b996004d51e3d67ff2303d7f4ad651] => https://www.bylde.co...rnizr-custom.js [7df3e87b409196ae015ec1035463b452d4734e1a] => https://www.bylde.co....7.8.a4867fc.js [741b6c1fbc47b9ca5c0c13d31debdd872a2f8551] => https://www.bylde.co...grocery-crud.js ) [css_files] => Array ( [ed271fa94029e4746870e3b4e9a6ab7644c5b900] => https://www.bylde.co...p/bootstrap.css [bae794f2a55eb2a5af7ac32bc4bf67947c6589d5] => https://www.bylde.co...i/jquery-ui.css [c7f86dda3c4e82b4ca5ed65332acd235cbc001b5] => https://www.bylde.co...7.8.a4867fc.css ) )