[Solved] Codeigniter / Bootstrap Question |
On my controller I count how many files are in my folder
PHP Code: $data['files_total'] = count($files); But on my view for every 3 files I would like to be able to add new bootstrap class="row". But do not know best solution. Currently I have the bootstrap class="row" out side of my foreach loop on view. Question: What would be the best solution any examples? PHP Code: <div class="modal-dialog modal-lg" role="document"> Controller PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
I have solved it now.
For Javascript Code I use PHP Code: <script type="text/javascript"> And then on the view also I have removed the old row class and then also removed bootstrap columns i foreach loop and now add them by the javascript code above. PHP Code: <div class="modal-dialog modal-lg" role="document">
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |