![]() |
Question about CI working with AS3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Question about CI working with AS3 (/showthread.php?tid=42349) Pages:
1
2
|
Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]R_Nelson[/eluser] I am trying to use a post from AS3 to use a Function inside my site controller name test will CI let me do this or do i need to write raw php code files to talk with my flash program? Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]adityamenon[/eluser] $this->input->post('yourVar'); should work. If that doesn't, $_POST['yourVar'] will definitely work. Whatever works in Raw PHP, usually also works in CI. Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]R_Nelson[/eluser] that's not the problem it won't run the function the only way i can get it to work is if i make just a php file in the base directory Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]adityamenon[/eluser] Okay, are you following the URL patterns of Codeigniter? http://domain/controller/method/? If you are and it doesn't work, I guess you're better off with raw PHP... it must have something to do with CI's "routing" principles and stuff... forgive me, I'm no master Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]R_Nelson[/eluser] you hit the nail right on the head at least if someone else reads this now they will be able to understand it thanks! Question about CI working with AS3 - El Forum - 06-04-2011 [eluser]adityamenon[/eluser] Glad I could help.It's uplifting ![]() Question about CI working with AS3 - El Forum - 06-05-2011 [eluser]R_Nelson[/eluser] Hopefully someone else will see this and not have to spend hours looking for an answer i was hoping i could have just used a function inside of CI controller i'm hoping my raw php files will let me use CI commands so i dont have to connect to the db and that but if i do then i do! Question about CI working with AS3 - El Forum - 06-05-2011 [eluser]adityamenon[/eluser] You might want to try using PEAR if it's installed. Sure, it's not as good as CI, but it might save you from some boring unnecessary coding - PEAR files are just includes so you don't have routing issues there. Question about CI working with AS3 - El Forum - 06-05-2011 [eluser]R_Nelson[/eluser] might as well just user raw code instead of learning yet another language! Question about CI working with AS3 - El Forum - 06-05-2011 [eluser]adityamenon[/eluser] There's nothing much to learn. PEAR is just raw PHP on steroids. Check this out: http://pearcalendar.sourceforge.net/examples/1.phps |