1

so I've started dealing with PhalconPHP and I was going through some examples and I couldn't get the CSS working. So I downloaded this INVO sample application (https://github.com/phalcon/invo), put in the htdocs folder, loaded it in the browser and it is also missing the css, just blank text on a white screen. So there must be something wrong with my installation, any ideas what that might be?

Thanks!

user43051
  • 345
  • 2
  • 5
  • 17

2 Answers2

3

Try clearing the baseUri value in app/config/config.ini from:

baseUri        = /invo/

to

baseUri        = /

I had an issue that looked the same as yours, then i noticed all links in the application are prefixed with "invo" as if my application would be in an "invo" subfolder, but it wasn't.

EgaSega
  • 129
  • 1
  • 10
1

For the described situation I would say that your issue is similar to this question: Image resources with Phalcon.

But since you have downloaded the INVO tutorial and it isn't working either I'd that's something to do within your Apache configuration. Please lead to this question: Friendly URLs in phalcon framwork is not working in Ubuntu

If none of these solutions solve your problems please let me know and provide more info.

Community
  • 1
  • 1
cvsguimaraes
  • 12,910
  • 9
  • 49
  • 73
  • Thanks for your comment. I have enabled mod_rewrite but nothing happened. I just tryied clicking some of the links and it gives a 404 - Object not found. Seems that there's some major error in my Phalcon. However when I write "phalcon commands" in the cmd it shows them so no idea what might be the problem. Also it shows on 'localhost' -> phpinfo and it is enabled. – user43051 Jun 17 '14 at 15:11
  • 1
    @user43051 the second solution I've proposed isn't about `mod_rewrite` have you read about the `AllowOverride` setting? Have you checked it? – cvsguimaraes Jun 17 '14 at 15:29
  • Yes, I changed all 'AllowOverride's to ALL. This is what I get for the directory: AllowOverride All Options None Require all granted Should there be something for htdocs where the project is in? I tried adding an entry for it but then it shows in the browser that I don't have permissions to access it. – user43051 Jun 17 '14 at 15:39
  • I forgot to mention this is the httpd.conf in E:\xampp\apache\conf ... should I change any other one? – user43051 Jun 17 '14 at 15:46
  • 1
    @user43051 the `AllowOverride` you've found is for the **cgi-bin** folder. Modify or create one `` section for your **htdocs**. – cvsguimaraes Jun 17 '14 at 16:36
  • Thanks but do you have any idea what should I put between the directory tags? I tried the same as above but it shows Access forbidden. Then I tried: Options Indexes FollowSymLinks ExecCGI Includes AllowOverride All Order allow,deny Allow from all (saw it somewhere online) and it shows the page as before - no css and links not working. – user43051 Jun 17 '14 at 17:04
  • 1
    @user43051 `` means "the following rules applies only for the folder xx/yy". Try to restore your Apache configurations then just add the `AllowOverride` setting and finally check if the Phalcon **.htaccess** files are OK ([**more info here**](http://docs.phalconphp.com/en/latest/reference/apache.html)). – cvsguimaraes Jun 17 '14 at 17:18
  • I think I got them all right but it still doesn't work. Are you able to run the Invo? If so can you tell me what is it in your httpd.conf file? Thanks a lot for your help! – user43051 Jun 17 '14 at 18:15
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/55797/discussion-between-cvsguimaraes-and-user43051). – cvsguimaraes Jun 17 '14 at 21:01