Posted 02 January 2013 - 05:35 PM (#881)
Posted 02 January 2013 - 05:54 PM (#883)
callumacrae, on 02 January 2013 - 05:43 PM, said:
Exactly! Doesn't answer my question
Posted 02 January 2013 - 10:03 PM (#884)
Posted 03 January 2013 - 07:27 AM (#886)
Posted 03 January 2013 - 09:30 AM (#887)
Why is in the hydrogen-mvc-starter on github a Router.php in hydrogen/controllers but in the hydrogen package from hydrogenphp there is the Dispatcher.php instead of the Router.php ? Also which of them to use? I can't even get Hydrogen to work.
Posted 03 January 2013 - 09:45 AM (#888)
derTechniker, on 03 January 2013 - 09:30 AM, said:
Why is in the hydrogen-mvc-starter on github a Router.php in hydrogen/controllers but in the hydrogen package from hydrogenphp there is the Dispatcher.php instead of the Router.php ? Also which of them to use? I can't even get Hydrogen to work.
Use what's on Github -- I haven't packaged a release for the main site yet. If you get the MVC starter and get the submodules, then follow all the instructions in index.php, you should be good to go
Posted 03 January 2013 - 09:48 AM (#889)
Kyek, on 03 January 2013 - 09:45 AM, said:
KK, you should probably update your guide... because like, i really got frustrated trying to get this stuff to work
Posted 03 January 2013 - 06:25 PM (#890)
logs show nothing
Posted 03 January 2013 - 10:31 PM (#891)
derTechniker, on 03 January 2013 - 06:25 PM, said:
logs show nothing
Nginx doesn't parse PATH_INFO out of the box, so using the router won't work. If you're using a recent Nginx, I think there's some new config features to handle that better.
Posted 04 January 2013 - 03:04 AM (#892)
Kyek, on 03 January 2013 - 10:31 PM, said:
Thanks.
Except for the fact that i did set "fastcgi_param PATH_INFO" in my config. I now deleted that line and the example blog shows up. WTH.
//edit: whoops oh wait, the index.php shows up but i can't go to any articles oh well
//EDIT2: Well looks like i got it to work. Found an older thread from you Kyek where you explained that. In fact i tried that but forgot to set fastcgi_pass to the fpm socket
This post has been edited by derTechniker: 04 January 2013 - 08:11 AM
Posted 04 January 2013 - 08:43 AM (#893)
Posted 07 March 2013 - 04:23 PM (#894)
What do you guys do after you have logged someone in (in a user account system)?
Right now after I insert the users login values into the database, I user a header("location: bla.php") to redirect to the users page.
However this is annoying because the paths it takes are either from the webroot or using php __DIR__, rather then hydrogens appurl.
(Meaning that between my local install and on my server I either have to change all my redirects, or some other shady stuff).
Then again, maybe I shouldn't be throwing headers, and there is another solution?






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None















Help