Need an Sample Web Application with code of PHP using MVC - php

Need an Sample Web Application with code of PHP using MVC with the following functionality and the database is mysql
sample:
add
edit
delete
update
I have searched a lot. but i can't find the exact thing what i need.
Kindly provide your suggestions.
thanks in advance.

The term you can search google with is "CRUD" (Create Read Update Delete), there should be a fair few sample applications, try Netbeans examples, they post quite a few bits of PHP. Or look at the Bakery on CakePHP, this will help you with the MVC side of it

Look at the demo application of any PHP framework.
http://www.symfony-project.org/
http://cakephp.org/
http://codeigniter.com/

Related

how to convert yii framework project into php

can any one help me. actually I create yii framework project.how i convert into php in easiest way.Actually i know little concept of mvc using in php but the problem is render,redirect,lot of pages create through MVC . how i control admin panel .
actually i create differt admin panel for media person and agent.i dont understand if i extends from ccontroller in yii but how i use in php also..
lot of confusion for me about this project. can any one help me as easiest way as possible.if you describe that will better for me.
Please help. Thank you in advance.
Let me be clear.
PHP is a server-side scripting language.
The Yii Framework is an instrument, which supports the development process and relieve the "Programmer" with common activities. The Framework itself is build on PHP, because of this, there is no "converting".
My advice to you: Check the requirements given by your client carefully. After that, you have probablary two Options.
coding all Functionality by yourself in PHP
checkout a cool Framework and spent some time learning

how to use codeigniter for application

I'm new to codeigniter but I wanted to create an application like that of http://redbeacon.com or http://thumbtack.com.
What is the best approach to go about creating a site like one of the above and is there any open source application I can use as a skeleton? Even a tutorial on creating a site like that would be great!
Thank you so much!
I doubt there are any specific open source solutions to your particular problem so I would say that you're going to have to create most of the site from scratch. That is, provided you have a good knowledge of PHP already.
If not, then I would suggest starting with some good php development books that will teach you the fundamentals of PHP.
For learning CodeIgniter you're quite lucky. One of the best parts about CodeIgniter is that it is very well documented.
For the quickest ramp up time I would take a hard look at Expression Engine. It is a commercial web publish tool that is based on CodeIgniter - so you get all the power of CI but with much greater ease of use. You can make pretty much any kind of site/web app with EE: showcase.

cakephp overviews

I recently started working with CakePHP but there are a few things I don't understand...
What do I have to do to get an overview of a couple of functions/views on one page like 'www.example.com/profile'. I really need help with this I am stuck in thinking in regular procedural php.
First off, you should follow the Blog tutorial on the CakePHP cook book : http://book.cakephp.org/view/1528/Blog
It's a great example and walks you through all the main stuff.
CakePHP follows an MVC structure and maps the URLs to controller/actions (using routes)
In your example www.example.com/profile, if you haven't changed the default routing, actually maps to the index method in your ProfileController. This method uses the view in /views/profiles/index.ctp to display output.
First follow the tutorial and read up on the CookBook to figure out what all this means. It's very easy to learn and they have some good documentation. Also check out code generation in CakePHP. It helps you create your apps faster (if used properly).
You need to read the manual about Routing. Also be familiar with basic Apache knowledge like mod_rewrite.

Zend Framework 1.11 with Doctrine 2 Integration

Could someone explain in detail how to integrate Doctrine 2 and Zend Framework 1.11?
There is a great video by Jon Lebensold about integrating D2 and ZF: Unit Testing Doctrine 2 - don't be misleaded by the title :)
I know this is a late inclusion but I just did this following the Zend webinar recording at http://www.zend.com/en/webinar/Framework/70170000000bSrG-webinar-zf-v-1-doctrine-v-2-20101214.flv (you need a (free) Zend account to view it).
Ralph Schindler also has the slides up here http://www.slideshare.net/ralphschindler/zend-framework-1-doctrine-2-6177485
If you're familiar with Doctrine2, you can probably skip the first half.
There are several Github repositories that show you how to do this.
Take a look at the source code and learn from it.
Apart from that, a simple Google search yields plenty of results that should help get you on your way.
Christian Soronellas has an tutorial: http://christian.soronellas.es/2010/12/19/zend-framework-and-doctrine-2/?lang=en
There is nice ZF1+D2 project code example:
https://github.com/dynamicguy/zf1doctrine2
you can download all project from
https://github.com/SpiffyJr/zfd2_tutorial
more info in
Maybe you are still interested in, I just found a Application Resource for Doctrine 2.
Check out my question

Are there specific parts of PHP I should learn to help me use CodeIgniter in the future?

I'd like to learn PHP with a view to using CodeIgniter to make a few apps. Does this alter what or how I should approach PHP to start with?
I'm a designer with good front-end skills. I used Coldfusion in University but want to build stuff in a language more widely supported (and respected?). CodeIgniter seems great but I'd like to know how good a grounding in PHP I'll need. Any tutorial/book suggestions much appreciated.
Here' s a post from Derek Allard about learning php with codeigniter (it's short, only a couple paragraphs):
http://www.derekallard.com/blog/post/learning-php-with-codeigniter/
yes there is one major thing you need to learn or understand first. It's the MVC model that codeigniter uses, it stands for Model, view & controller. Basicly you need to split your code into 3 layers, the model is to query the database, the controller is also called the business logic layer, you will need to check if a query can be executed or not and finally the view which is the presentation layer, what the user will see. For the rest general php knwoledge is required for codeigniter.
Here are some articles about MVC structure:
http://net.tutsplus.com/tutorials/other/mvc-for-noobs/
http://net.tutsplus.com/tutorials/php/hvmc-an-introduction-and-application/
and here is a list of 15 video tutorials about codeigniter written by authors of nettuts:
http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-profiling-benchmarking-hooks/ (this is the last tutorial of the list but it's the only one that links to all other tutorials)
EDIT: OOP (object oriƫnted programming) is also something you might want to have a look at.
http://net.tutsplus.com/tutorials/php/oop-in-php/
My take: first learn PHP, then learn a framework like CI. Trust me, that is the correct order.

Categories