Need a little trick for creating front end please

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
bambinou
Veteran Member
Posts: 163
Joined: 2013-02-01 15:09

Need a little trick for creating front end please

Post by bambinou » 2013-10-25 21:58

Hello,

There is something I do not understand with AppGini at the moment. I have been creating apps that always require a login. Now I would like to create a restaurant website where people can upload their pictures from the back end and have everything showing in the front end to the guest users.
How can I output or echo everything(Pictures, text) to the front end please? I am totally confused with this.

Thank you.


Ben

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Need a little trick for creating front end please

Post by a.gneady » 2013-10-26 02:15

Is the "front-end" another application -- other than the one generated by AppGini?
:idea: AppGini plugins to add more power to your apps:

bambinou
Veteran Member
Posts: 163
Joined: 2013-02-01 15:09

Re: Need a little trick for creating front end please

Post by bambinou » 2013-10-26 06:13

Hi Ahmad,

Thank you for the reply. I have just sent you an email to explain what I meant.
Let me give you an example.
Let's say I buy a bootstrap front end theme from another website, how can I include or echo all the pictures and text I am uploading to AppGini while keeping all the permission settings in that theme.
Imagine that I buy a bootstrap theme right now, which code do I have to include to the header of that theme so that theme can still recognise the users as guest, admin or other users?
Secondly, how can I output all the data(without using "SELECT") statement in mysql to show all my upload pictures and text in that theme, a bit like the <?php echo........?> or short codes of wordpress.

Thank you,

Ben

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Need a little trick for creating front end please

Post by a.gneady » 2013-10-28 23:35

OK, I see what you mean now ... Bootstrap is mainly a CSS file that changes the "skin" of your AppGini application (fonts, colors, spacing, .. etc). Commercial Bootstrap themes include, besides that core CSS file, some HTML templates .. To use these templates, you'd still need to put PHP code in them. They won't automatically integrate with your AppGini application without customizing their code.
:idea: AppGini plugins to add more power to your apps:

bambinou
Veteran Member
Posts: 163
Joined: 2013-02-01 15:09

Re: Need a little trick for creating front end please

Post by bambinou » 2013-10-29 06:35

Hi Ahmad,

Thank you for the reply. Yes I understand but to customize the PHP code and output it exactly where you want, ;et's say I have this code which is the bootstrap carousel:

Code: Select all

<div id="carousel-example-generic" class="carousel slide">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
      <img src="..." alt="...">
      <div class="carousel-caption">
        ...
      </div>
    </div>
    ...
  </div>

  <!-- Controls -->
  <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
    <span class="icon-prev"></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
    <span class="icon-next"></span>
  </a>
</div>





And you would like echo some pictures I added via the appgini app. Do you have an easy way(a bit like wordpress) to echo certain data from the data(picture paths in this example) so the component or widget in Bootstrap can be used in a front end payout.
If yes then we could create simple html frames and integrate Bootstrap components inside that frame(without buying themes).


I hope you understand my question.

Thank you.


Ben

Post Reply