wontonst / teststudy-code

0 stars 0 forks source link

Links #55

Closed lhsairplanes closed 11 years ago

lhsairplanes commented 11 years ago

do we use ?ref=index_test.php to access a page or use /index_test.php

wontonst commented 11 years ago

check routes.php i dont rmbr

On Thu, Mar 28, 2013 at 6:15 PM, Jetchan notifications@github.com wrote:

do we use ?ref=index_test.php to access a page or use /index_test.php

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55 .

wontonst commented 11 years ago

but i think we used ?ref=

On Thu, Mar 28, 2013 at 7:04 PM, Roy Zheng roycraft3@gmail.com wrote:

check routes.php i dont rmbr

On Thu, Mar 28, 2013 at 6:15 PM, Jetchan notifications@github.com wrote:

do we use ?ref=index_test.php to access a page or use /index_test.php

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55 .

lhsairplanes commented 11 years ago

Yo confusion, although there are plenty of routes and route.php files on our server, I cannot find the one that manually state all the link (the one with this page has this link)...Did you rearrange it?

wontonst commented 11 years ago

i didn't touch it. i just looked thru

starting line 46 Route::any('/', function() { if (isset($_GET['ref'])) { if ($_GET['ref'] == 'regi') return View::make('registration.register');

            if ($_GET['ref'] == 'settings')
                return View::make('main.settings');

...and so forth contorls the ref gets

On Thu, Mar 28, 2013 at 10:16 PM, Jetchan notifications@github.com wrote:

Yo confusion, although there are plenty of routes and route.php files on our server, I cannot find the one that manually state all the link (the one with this page has this link)...Did you rearrange it?

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55#issuecomment-15629231 .

lhsairplanes commented 11 years ago

given that index_test is a file under applications, views, main

I do http://daviscircles.com/?ref=index_test, it redirects me back to the home page

then I try http://daviscircles.com/index_test, and it gives me a 404 error. (the 2 errors above happen regardless of whether I am logged in or not)

Seems like both ways of linking causes issues. Interestingly, if I login and do http://daviscircles.com/profile, it works

Can you see if you can fix the link issue for http://daviscircles.com/index_test or http://daviscircles.com/?ref=meet_otheruser?

Thanks

wontonst commented 11 years ago

Apparently I did not update my local repo. The previous comment is incorrect. We have moved from routes.php (which is very lame very basic very bad routing system) to controllers. Please see controllers/test.php. To access test pages, you goto /test first, ie http://daviscircles.com/test?ref=design

On Sat, Mar 30, 2013 at 1:20 AM, Jetchan notifications@github.com wrote:

given that index_test is a file under applications, views, main

I do http://daviscircles.com/?ref=index_test, it redirects me back to the home page

then I try http://daviscircles.com/index_test, and it gives me a 404 error.

Seems like both ways of linking causes issues. Interestingly, if I login and do http://daviscircles.com/profile, it works

Can you see if you can fix the link issue for index_test or http://daviscircles.com/?ref=meet_otheruser?

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55#issuecomment-15671268 .

lhsairplanes commented 11 years ago

meet_otheruser_test.php is a page in applications view main.

A similar issue still hasn't been solved.

on the test.php file, there is a line of code that looks right: if ($_GET['ref'] == 'meet_otheruser_test') return View::make('main.meet_otheruser_test');

and I use these 2 urls, http://www.daviscircles.com/meet_otheruser_test (produces 404 error) http://www.daviscircles.com/?ref=meet_otheruser_test (redirects me back to home page)

and they both don't work even after the server has been committed onto and updated

Funny thing is both of the following work: http://www.daviscircles.com/profile and http://www.daviscircles.com/settings

Wondering if you can spot a issue that I am not seeing?

wontonst commented 11 years ago

please read my previous comment and after you have fully understood goto http://www.daviscircles.com/test?ref=meet_otherusers_test

On Sat, Mar 30, 2013 at 7:54 PM, Jetchan notifications@github.com wrote:

meet_otheruser_test.php is a page in applications view main.

A similar issue still hasn't been solved.

on the test.php file, there is a line of code that looks right: if ($_GET['ref'] == 'meet_otheruser_test') return View::make('main.meet_otheruser_test');

and I use these 2 urls, http://www.daviscircles.com/meet_otheruser_test (produces 404 error) http://www.daviscircles.com/?ref=meet_otheruser_test (redirects me back to home page)

and they both don't work even after the server has been committed onto and updated

Funny thing is both of the following work: http://www.daviscircles.com/profile and http://www.daviscircles.com/settings

Wondering if you can spot a issue that I am not seeing?

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55#issuecomment-15685836 .

lhsairplanes commented 11 years ago

Reason I asked is if we are going to fix this in the long run? Or is it fine to keep url's this way?

wontonst commented 11 years ago

fix..? /test is just for testing purposes. we won't use GET requests like that in the actual web program

On Sat, Mar 30, 2013 at 9:17 PM, Jetchan notifications@github.com wrote:

Reason I asked is if we are going to fix this in the long run? Or is it fine to keep url's this way?

— Reply to this email directly or view it on GitHubhttps://github.com/wontonst/teststudy-code/issues/55#issuecomment-15686591 .