how to use BootStrap theme in a Phalcon Project??

Hellou everybody!!! So, how to use bootstrap theme in a Phalcon Project?? I am begginer in Phalcon PHP, and in MVC too. I'll tried to make it, but, not was good :(

if you know some site that talk about the subject, post the link in here. thank you!


Bootstrap? You mean ?

Like always: put it in your public folder (separating CSS and JS into properly folders), and just add link and script, nothing else. Later, on their URL/SRC, write /css/... or /js/... (if your have set your project root in /).

edited Aug '14

Yes it is! I'm having problems. for example: when I access controller ( ), the bootstrap template works, but, when I access an action ( ) the bootstrap template is broken! I'm missing somewhere.

Other question! In app/view/index.volt, I have the code: {{ content() }}
how can I make others, ex {{ menu() }} or {{ footer() }} ???

edited Aug '14

I think you need to set up a base template


bootstrap js and css goes here
{% block content %}{% endblock %}


{% extends "base.volt" %}

{% block content %}
{% endblock %}


Now you should be able to see how to add a footer, your menu can stay in the base.volt unless you have variable menus.

Please see inheritance:


For {{ content() }} I've no idea 'cause I haven't worked with Volt yet. But for the <link> and <script> ones, let's take an example.

Imagine you have a public folder. That is your virtual host root. Now, if you use views (don't know if for templates will be the same), you have to set your CSS and JS below the root you defined below. Now you just put your root, followed by css/... or js/....