Jump to content

delta37

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

delta37's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. alas, found the solution, my bad...
  2. I am quite new to cakephp Basically I've downloaded the files and have placed them on c:/xampp/htdocs/newproject Also, my database is done and I have uploaded it already via phpmyadmin Now I tried running bake.php in the command prompt. -I navigated to ../newproject/cake/console then ran php cake.php -A console came out "Welcome to CakePHP v1.2.1.8004 Console" -I then ran cake bake and the console asked "What is the full path for this app including the app directory name?" -I typed in c:/xampp/htdocs/newproject confirmed it. -After this, it was asking for a DB configuration so I type in all the info When I look into newproject folder it looks like it's messed up with a lot of folders created, and There was no model/view/controllers created. I tried to type in cake bake model in the command prompt but it says I should create a folder "models" under the cake/console directory. Am I doing anything wrong? I've been trying to run the bake.php for 2 days now and I can't make it create MVC files. any help pls? ???
  3. how do I use models like category, user, product in the home.ctp? Do I have to modify the pages_controller under the cake/lib? Do I create a new pages_controller? or is it better to just route the homepage to another view/controller? any help appreciated Thanks in advance!
  4. dang! I totally forgot it's called OOP!!! that's why I was having a hard time looking for tutorials on this. Thanks dude! btw, you mentioned smarty having their own tutorial but it's basically still OOP right?
  5. thanks for the reply man, but I need something more detailed hehe I am looking at this site http://www.php-shopping-cart-tutorial.com/introduction.htm and I've downloaded the source-code. I am looking at it right now and I have no idea where to start. it's like A->B, A->C, C->E, E->B, B->D, ... I know how the whole thing works I can code it in just maybe 5 php files? more or less... but I want to start learning how to code this way having modules/templates/db separated in folders because it will be a lot easier maintaining the site.
  6. Hi, I have been programming with php for 3 years already and I'm still programming it the way beginners do it, where you have index.php and you have all the codes there, then an admin.php and you have everything there also, and so on... I just need some help on how some of the new php apps/website work where there are several folders like modules/templates/config/db/admin etc... I know what these folders are suppose to do but I get mixed up on where to start and how to start this kind of coding. I've tried downloading some example but they are too complicated already with a lot connection from here and there that I don't know where to even start looking. Maybe someone can tell me where to find a tutorial about this so I can start from scratch, or maybe someone can advice me on how these modules/templates/db combine to work? Thanks is advance!
  7. but if the user decides to put more inputs then an array is needed right? i actually made a javascript code that will allow user to add more input forms if they wish, that's why i made it into an array to store that multiple entries. i will try this out later see if it works. thanks!
  8. thanks for the reply. apparently I need to make it into an array because the user can enter as many contact_no as he/she wishes i'm just trying to make a fail-safe here if incase a user clicks on submit without entering any values in the contact_no[] apparently, even though there is not value, when i validate it in PHP, there's like a default value (i think it's a string) "Array" in it.
  9. i've been trying to find solution to this for days now but can't seem to find one. anyways, here's the problem... from a input form, i named it into an array "<input type='text' name='contact_no[]'>" for some weird reason, every time i try to validate it in PHP, the $contact_no will always have a default value of "Array" even though the user did not fill up the input text field. i tried using this... if($contact_no == null) or if(is_null($contact_no)) but i always get a default value when i echo it, it displays the word "Array" can anyone help me here on how to validate if the array is really "null"? any help much appreciated, thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.