Your Open Source
Free YourOpenSource Softwares Online Resources and Softwares Downloads with Demo
Related Posts
cake php for Beginner Part II (Starting Simple code)
cake php for Beginner Part II (Starting Simple code)
following steps to start the code with cake php
database and other configuration refer the link
-----------------------------------------------------------
http://youropensource.com/projects/173-Cacke-PHP-Guide-For-beginner-Part-1-Configuration
----------------------------------------------------------
Steps to start
Database name : testcake
Table name : notes
Aim : to create on form for enter the notes details edit the notes adding the notes and delete the notes
about cake php file and folder setup:
~~~~~~~~~~
testcake/app/ -> this folder is application folder
/ config = > configuration files
/controllers => your controller files.
like ...
write your application inside this folder...
------------------------------------------------------------------
testcake/cake/ -> this folder is root flder
start coding
``````````
important one the cake setup url look like
======================
http://localhost/testcake/notes/view/1
testcake -> root folder name
notes -> controller name
view -> is the action name
1 -> is the first parameter.
======================
so you plan the controller and action like wise
Step 1:
create the controller file named as notes_controller.php in side the : testcake/app/controllers/
write the following code inside your notes controller
Step 2:
Create the model file for the particular controller inside the : testcake/app/models/note.php
write the following code inside you model
Step3:
create the views for the particular model
create one folder nside the view folder named as your controller name
app\views\notes\
create the files named as depend on your action.
index.ththml,add.thtml view.thtml,edit.thtml
now check the out put. in your browser.
326
Oct 18 08 04:20:37
Damu
|
Rating :
![]() ![]() ![]() ![]() ![]() | Tags :- PHP |
|
|||
Digg
Yahoo
delicious
