About angularJS mvc or Codeigniter MVC

1,231 views
Skip to first unread message

Wee Ching Chok

unread,
Dec 6, 2012, 6:32:51 PM12/6/12
to ang...@googlegroups.com
Hi all, i am new to AJS. I quite confuse about this, normally i store my M V C files at codeigniter M V C folders.
example: a html partial or page will be stored at backend (codeigniter) views folder as a .php file.


But now, i read some tutorial angular using ng:include/ng:view to retreive .html partial/page file. So is this the time i have to ignore backend mvc and start it at frontend?

Knud Potente

unread,
Dec 6, 2012, 9:48:22 PM12/6/12
to ang...@googlegroups.com
If your application needs to have data stored on a server - ie., on a MySQL database - then you will need some sort of library/framework on the server to access this data, and send it to your Angular app. Angular will 'contact' your server app when it needs to create/read/update/delete the data, and the data will be stored on the server.

If your application does not need to access dynamic, database-stored data - ie., if it will only be loading static html files and partials - then you may be able to get away with *only* using Angular.

OT: Codeigniter is just one of many PHP frameworks available, and you may want to look into other alternatives (which may be even easier) for handling your server-side data storage. If you are new to ORMs and database programming, it is specially worthwhile checking out RedBeanPHP (http://redbeanphp.com): it automatically creates the database schema for you, as you need it, and can serve up your data already in JSON format.

I hope this helps.

Wee Ching Chok

unread,
Dec 6, 2012, 10:04:28 PM12/6/12
to ang...@googlegroups.com
Thanks for you reply,  yes and from now I just want my server side process the data and all the rest in angularJS because I just found angular really powerful. I will check our redbeanphp. Since I'm ready in angularJS because i really like SPA then I also decide to change my server side language. I found node.js, what is this?  A server-side language? A webserver? and what sql can be connect to?

sorry for this kind of questions, because i really new to this

Knud Potente

unread,
Dec 6, 2012, 10:18:48 PM12/6/12
to ang...@googlegroups.com
Node is software that is made to allow you to run Javascript scripts on a server - so you can do things like writing anything from a simple chat server to a full web server entirely in Javascript, if you want to. You can find a good description of Node here:


You may find that it is probably easier for you to get started with PHP-based programs like RedBeanPHP.

Wee Ching Chok

unread,
Dec 6, 2012, 10:44:13 PM12/6/12
to ang...@googlegroups.com
Ok, i found node is not that easy and it is really 'plain'. I'm not that level ..lol


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
 
 



--
Thanks

Regards
Wee Ching
Reply all
Reply to author
Forward
0 new messages