Memaparkan catatan dengan label ColdBox. Papar semua catatan
Memaparkan catatan dengan label ColdBox. Papar semua catatan
This problem happen as I copy and paste other source code from other developer .


In Coldbox, we need to initialize as we insert something new . Hence go to the home page :


Click on Execute .

After you click on the execute the page can be open .


HandlerService.EventHandlerNotRegisteredException - Coldbox ColdFusion

I am not really sure this problem, but it seem problem with entity .  Because we are using ORM to interact with database we need to create orm-entity using CommandBox .

coldbox create orm-entity entityName=User primaryKey=id, properties=name,email,password --activeEntity



--activeEntity is most important to write because it will activate the entity ..


Make sure you don't have any space while write for properties. He will get dizzy if you put space like this properties=name, email, <space> password  <-- this is wrong .








ColdBox - The parameter entityName to function is required but was not passed in.


coldbox create model name=Users --open

Create the name="???" same as the database name . 

Create Model using CommandBox in ColdBox Framework










Above is coding that need to be add in Appliction.cfc to enable the application to interact using ORM .

Enable ORM ColdFusion Coldbox Framework


Open Lucee in ColdBox

After we right click on ColdBox icon, there will be a pop-up show few menus . Choose "Open Server Admin".



A browser will open the browser directing to the Lucee Server Admin. For the first time user, you need to put your password.



Create new datasource 


For example
Then click create !


Datasource configuration .
Make sure your put valid Host/Server , Database( inside MySql), Username and Password . Then your database name must already inside the MySQL. We are not creating new database but actually directing to MySql database. 


Verify your datasource 

Lastly, verify your datasource . After you choose datasource name .. click verify . 









Setup Datasource in ColdBox + Lucee !



coldbox create hello echo,index .

How to create controller and action in command box ColdBox





Coldbox is another way of MVC for Cold Fusion . This is framework can be alternative for CFWheels .




Visit the web site https://www.coldbox.org/
This the guide http://coldbox.ortusbooks.com/content/getting_started_guide/index.html

Get the Malay guide book here :
https://azman1204.gitbooks.io/coldbox-volume-1/content/


Coldbox For Cold Fusion