Re: What is MVC?
MVC is a general programming concept, that applies to any and all languages. It stands for Model View Controller. Model is your data. And by this I'm referring to a database like MySQL, MongoDB, CassandraDB etc. View is your presentation layer. What the user actually sees in his or her web browser. Consisting of the visual elements the user sees and the surface level controls usually generated by things like java script. Controller is the intelligence built into your program. It consists of the code generated by your core programming language. Be it, PHP, Ruby, Java, nodeJS or any other programming language you might want to use. It's a general way of thinking about how to organize your website and think about it logically. You may find more information about that here: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller And googling "Model View Controller" certainly couldn't hurt! ;) Tim On Tue, Jan 13, 2015 at 6:11 AM, Gowthaman Suriya < gowthaman.sur...@gmail.com> wrote: > Hi, friends. > > Anyone can explain about this clearly?. Why did they implement MVC concept > in cakePHP?. > > Thanks for reply.. > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Vaga CakePHP Rio de Janeiro
Cool job! Requires a LOT of very cool knowledge and skill. But at the pay they're offering, you'd have to live in Rio's favelas (dirt poor neighborhoods). These people are asking for the sky, and offering almost nothing in return. I'd pass on this if I were you!! Sent from my iPhone > On Apr 2, 2014, at 6:19 PM, Helio wrote: > > Olá, > > Você vai desenvolver sistemas web em PHP e MySQL, CakePHP (ou outro framework > MVC em PHP ou Ruby), Javascript e JQuery. > > Necessário: Dinamismo, estar aberto a novas tecnologias e metodologias de > trabalho, gostar de aprender na prática e com fome, muita fome de > conhecimento. > > Diferenciais: Wordpress (desenvolvimento avançado de temas), Scrum, > conhecimentos sólidos em HTML, entender que versionamento salva vidas, não > ter medo de linha de comando (Linux/Mac), photoshop básico (ou GIMP, claro) e > CSS, ter um hobby (de jardinagem a mecatrônica passando por gastronomia, só > importa que o adore) e inglês técnico (para ler artigos técnicos e pesquisas > no Google). > > > Regime de contratação: CLT > Salário: Até R$ 3.000,00 > > Benefícios: > Vale-Transporte > Vale-Refeição > Participação de lucros e resultados > Outros > > Se você for realmente bom, podemos pensar em home-office. > > > TFA, > Hélio Ricardo - BSConsult > > Responder por email: cont...@bsconsult.com.br > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: How To Write Programme In PHP?
Best online tutorial I've found, in my humble opinion is on Tizag.com http://www.tizag.com/ Best of luck to you! tim On Wed, Dec 28, 2011 at 9:37 PM, sudarshana sampath wrote: > Hi, > > go through the PHP manual, it is the most suitable place for PHP newbie. > http://www.php.net/manual/en/ > > > On Thu, Dec 29, 2011 at 12:59 AM, Timothy O'Reilly > wrote: >> >> Not sure where to start with such a huge question. I assume from your >> question that you have very little programming experience? I am a newbie >> (though tinkering for a long time). On the assumption that you are new to >> web programmmg, here are some ideas. >> >> Tools - Editors >> Coda for Mac; >> Notepad++ for Windows; >> An FTP tool of your choice and a local server environment (MAMP or XAMP); >> >> PHP Education >> YouTube PHP - tons of free tutorials; >> Udemy - Tons of low cost online courses; >> CAKE Book - as per Euromarks response; >> NetTuts for courses on Object Oriented Programming in PHP; >> >> I suggest you learn some basic PHP (HTML & CSS are essential too); then do >> a course on OOP, then get stuck into an MVC (CAKE) thereafter. >> >> Then 6+ months fulltime hard work to get running and a lifetime of >> learning. >> Regards, >> Tim >> >> >> >> >> On Wednesday, December 28, 2011, nir neerav wrote: >> > Hello Guyz, >> > I am new to PHP. I dont know how to start developing website in PHP. >> > Please I need a Step by Step Guidence From you. >> > Including which Tools I need To Write Programme In PHP. >> > >> > Thanx. >> > >> > -- >> > Our newest site for the community: CakePHP Video Tutorials >> > http://tv.cakephp.org >> > Check out the new CakePHP Questions site http://ask.cakephp.org and help >> > others with their CakePHP related questions. >> > >> > >> > To unsubscribe from this group, send email to >> > cake-php+unsubscr...@googlegroups.com For more options, visit this group >> > at http://groups.google.com/group/cake-php >> > >> >> -- >> | cellphone: +18579280348 | >> >> | 123 10th Street | San Francisco | CA 94103 | >> | web: www.zign.me | skype: timothy.o.reilly | twitter: @timothyjoreilly | >> >> >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php > > > > > -- > Cheers, > Sudarshana Sampath. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't connect to db
whoops! silly me! I forgot to install the php-mysql extension! I did that and now it's working. So thanks for your help! tim On Sun, Nov 6, 2011 at 12:04 AM, Andras Kende wrote: > I think you need mysql.so extension for the cake 1.3 > and pdo_mysql.so for cake 2.0 > Just paste the errors into google, the answer should be there somewhere... > http://www.somacon.com/p109.php > > Andras Kende > http://www.kende.com > On Nov 5, 2011, at 10:52 PM, Tim Dunphy wrote: > > ok, update. so I decided to ls the php modules directory > > [root@cloud cake]# ls -l /usr/lib64/php/modules/ > total 2392 > -rwxr-xr-x 1 root root 63008 Sep 30 14:14 curl.so > -rwxr-xr-x 1 root root 1838496 Sep 30 14:14 fileinfo.so > -rwxr-xr-x 1 root root 32984 Sep 30 14:14 json.so > -rwxr-xr-x 1 root root 98312 Sep 30 14:14 pdo.so > -rwxr-xr-x 1 root root 24264 Sep 30 14:14 pdo_sqlite.so > -rwxr-xr-x 1 root root 257440 Sep 30 14:14 phar.so > -rwxr-xr-x 1 root root 15416 Mar 30 2011 phpcups.so > -rwxr-xr-x 1 root root 82112 Sep 30 14:14 zip.so > > and saw that pdo.so was there. > > so I got rid of pdo_mysql.so from the extension=php.ini file and left > extension=pdo.so in there. then I restarted apache. and now this is > what happens when I run the mysql connect script you've provided: > > [root@cloud cake]# php mysql.php > PHP Warning: Module 'PDO' already loaded in Unknown on line 0 > PHP Fatal error: Call to undefined function mysql_connect() in > /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 > > any thoughts? thanks! > > > > On Sat, Nov 5, 2011 at 11:48 PM, Tim Dunphy wrote: > > Thanks for that! It seems that php can't find it's pdo librarries > > > [root@cloud cake]# php mysql.php > > PHP Warning: PHP Startup: Unable to load dynamic library > > '/usr/lib64/php/modules/pdo_mysql.so' - > > /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: > > No such file or directory in Unknown on line 0 > > PHP Warning: Module 'PDO' already loaded in Unknown on line 0 > > PHP Fatal error: Call to undefined function mysql_connect() in > > /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 > > I can't ls the module file > > [root@cloud cake]# ls -l /usr/lib64/php/modules/pdo_mysql.so > > ls: /usr/lib64/php/modules/pdo_mysql.so: No such file or directory > > > But the rpm database tells me that php-pdo is already installed. > > [root@cloud cake]# rpmquery php-pdo > > php-pdo-5.3.8-5.el5.remi.1 > > so what gives? :) > > > > > On Sat, Nov 5, 2011 at 11:38 PM, Andras Kende wrote: > > Maybe php5-mysql support not enabled ? You could try a plain php file to > test without cakephp > > > mysql_connect("localhost", "admin", "secret") or die(mysql_error()); > > echo "Connected to MySQL"; > > mysql_select_db("cake") or die(mysql_error()); > > echo "Connected to Database"; > > ?> > > 'Andras Kende > > http://www.kende.com > > On Nov 5, 2011, at 10:25 PM, Tim Dunphy wrote: > > Hello and thanks for your reply.. > > I tried removing the port setting as you've suggested and moved from > > cake 1.3 to cake 2.0 but the result was the same! > > class DATABASE_CONFIG { > > public $default = array( > > 'datasource' => 'Database/Mysql', > > 'persistent' => false, > > 'host' => 'localhost', > > 'login' => 'admin', > > 'password' => 'secret', > > 'database' => 'cake', > > 'prefix' => '', > > //'encoding' => 'utf8', > > ); > > public $test = array( > > 'datasource' => 'Database/Mysql', > > 'persistent' => false, > > 'host' => 'admin', > > 'login' => 'root', > > 'password' => 'secret', > > 'database' => 'cakeblog', > > 'prefix' => '', > > //'encoding' => 'utf8', > > ); > > } > > On Sat, Nov 5, 2011 at 10:03 PM, Ma'moon wrote: > > Most likely you need to leave the port section empty in your db > > configuration > > On Sat, Nov 5, 20
Re: can't connect to db
ok, update. so I decided to ls the php modules directory [root@cloud cake]# ls -l /usr/lib64/php/modules/ total 2392 -rwxr-xr-x 1 root root 63008 Sep 30 14:14 curl.so -rwxr-xr-x 1 root root 1838496 Sep 30 14:14 fileinfo.so -rwxr-xr-x 1 root root 32984 Sep 30 14:14 json.so -rwxr-xr-x 1 root root 98312 Sep 30 14:14 pdo.so -rwxr-xr-x 1 root root 24264 Sep 30 14:14 pdo_sqlite.so -rwxr-xr-x 1 root root 257440 Sep 30 14:14 phar.so -rwxr-xr-x 1 root root 15416 Mar 30 2011 phpcups.so -rwxr-xr-x 1 root root 82112 Sep 30 14:14 zip.so and saw that pdo.so was there. so I got rid of pdo_mysql.so from the extension=php.ini file and left extension=pdo.so in there. then I restarted apache. and now this is what happens when I run the mysql connect script you've provided: [root@cloud cake]# php mysql.php PHP Warning: Module 'PDO' already loaded in Unknown on line 0 PHP Fatal error: Call to undefined function mysql_connect() in /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 any thoughts? thanks! On Sat, Nov 5, 2011 at 11:48 PM, Tim Dunphy wrote: > Thanks for that! It seems that php can't find it's pdo librarries > > > [root@cloud cake]# php mysql.php > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib64/php/modules/pdo_mysql.so' - > /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: > No such file or directory in Unknown on line 0 > PHP Warning: Module 'PDO' already loaded in Unknown on line 0 > PHP Fatal error: Call to undefined function mysql_connect() in > /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 > > I can't ls the module file > > [root@cloud cake]# ls -l /usr/lib64/php/modules/pdo_mysql.so > ls: /usr/lib64/php/modules/pdo_mysql.so: No such file or directory > > > But the rpm database tells me that php-pdo is already installed. > > [root@cloud cake]# rpmquery php-pdo > php-pdo-5.3.8-5.el5.remi.1 > > so what gives? :) > > > > > On Sat, Nov 5, 2011 at 11:38 PM, Andras Kende wrote: >> Maybe php5-mysql support not enabled ? You could try a plain php file to >> test without cakephp >> >> > mysql_connect("localhost", "admin", "secret") or die(mysql_error()); >> echo "Connected to MySQL"; >> mysql_select_db("cake") or die(mysql_error()); >> echo "Connected to Database"; >> ?> >> >> 'Andras Kende >> http://www.kende.com >> >> On Nov 5, 2011, at 10:25 PM, Tim Dunphy wrote: >> >>> Hello and thanks for your reply.. >>> >>> I tried removing the port setting as you've suggested and moved from >>> cake 1.3 to cake 2.0 but the result was the same! >>> >>> class DATABASE_CONFIG { >>> >>> public $default = array( >>> 'datasource' => 'Database/Mysql', >>> 'persistent' => false, >>> 'host' => 'localhost', >>> 'login' => 'admin', >>> 'password' => 'secret', >>> 'database' => 'cake', >>> 'prefix' => '', >>> //'encoding' => 'utf8', >>> ); >>> >>> public $test = array( >>> 'datasource' => 'Database/Mysql', >>> 'persistent' => false, >>> 'host' => 'admin', >>> 'login' => 'root', >>> 'password' => 'secret', >>> 'database' => 'cakeblog', >>> 'prefix' => '', >>> //'encoding' => 'utf8', >>> ); >>> } >>> >>> On Sat, Nov 5, 2011 at 10:03 PM, Ma'moon wrote: >>>> Most likely you need to leave the port section empty in your db >>>> configuration >>>> >>>> On Sat, Nov 5, 2011 at 9:55 PM, bluethundr wrote: >>>>> >>>>> ## cake cannot connect to the databse >>>>> >>>>> Your tmp directory is writable. >>>>> >>>>> The FileEngine is being used for caching. To change the config edit >>>>> APP/config/core.php >>>>> >>>>> Your database configuration file is present. >>>>> >>>&g
Re: can't connect to db
Thanks for that! It seems that php can't find it's pdo librarries [root@cloud cake]# php mysql.php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Module 'PDO' already loaded in Unknown on line 0 PHP Fatal error: Call to undefined function mysql_connect() in /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 I can't ls the module file [root@cloud cake]# ls -l /usr/lib64/php/modules/pdo_mysql.so ls: /usr/lib64/php/modules/pdo_mysql.so: No such file or directory But the rpm database tells me that php-pdo is already installed. [root@cloud cake]# rpmquery php-pdo php-pdo-5.3.8-5.el5.remi.1 so what gives? :) On Sat, Nov 5, 2011 at 11:38 PM, Andras Kende wrote: > Maybe php5-mysql support not enabled ? You could try a plain php file to test > without cakephp > > mysql_connect("localhost", "admin", "secret") or die(mysql_error()); > echo "Connected to MySQL"; > mysql_select_db("cake") or die(mysql_error()); > echo "Connected to Database"; > ?> > > 'Andras Kende > http://www.kende.com > > On Nov 5, 2011, at 10:25 PM, Tim Dunphy wrote: > >> Hello and thanks for your reply.. >> >> I tried removing the port setting as you've suggested and moved from >> cake 1.3 to cake 2.0 but the result was the same! >> >> class DATABASE_CONFIG { >> >> public $default = array( >> 'datasource' => 'Database/Mysql', >> 'persistent' => false, >> 'host' => 'localhost', >> 'login' => 'admin', >> 'password' => 'secret', >> 'database' => 'cake', >> 'prefix' => '', >> //'encoding' => 'utf8', >> ); >> >> public $test = array( >> 'datasource' => 'Database/Mysql', >> 'persistent' => false, >> 'host' => 'admin', >> 'login' => 'root', >> 'password' => 'secret', >> 'database' => 'cakeblog', >> 'prefix' => '', >> //'encoding' => 'utf8', >> ); >> } >> >> On Sat, Nov 5, 2011 at 10:03 PM, Ma'moon wrote: >>> Most likely you need to leave the port section empty in your db >>> configuration >>> >>> On Sat, Nov 5, 2011 at 9:55 PM, bluethundr wrote: >>>> >>>> ## cake cannot connect to the databse >>>> >>>> Your tmp directory is writable. >>>> >>>> The FileEngine is being used for caching. To change the config edit >>>> APP/config/core.php >>>> >>>> Your database configuration file is present. >>>> >>>> Cake is NOT able to connect to the database. >>>> >>>> ## database config file >>>> >>>> >>>> class DATABASE_CONFIG { >>>> >>>> var $default = array( >>>> 'driver' => 'mysql', >>>> 'persistent' => false, >>>> 'host' => 'localhost', >>>> 'login' => 'admin', >>>> 'password' => 'secret', >>>> 'database' => 'cake', >>>> 'prefix' => '', >>>> 'port' => '/var/lib/mysql/mysql.sock', >>>> //'encoding' => 'utf8', >>>> ); >>>> >>>> var $test = array( >>>> 'driver' => 'mysql', >>>> 'persistent' => false, >>>> 'host' => 'localhost', >>>> 'login' => 'admin', >>>> 'password' => 'secret', >>>> 'database' => 'cakeblog
Re: can't connect to db
Hello and thanks for your reply.. I tried removing the port setting as you've suggested and moved from cake 1.3 to cake 2.0 but the result was the same! class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'admin', 'password' => 'secret', 'database' => 'cake', 'prefix' => '', //'encoding' => 'utf8', ); public $test = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'admin', 'login' => 'root', 'password' => 'secret', 'database' => 'cakeblog', 'prefix' => '', //'encoding' => 'utf8', ); } On Sat, Nov 5, 2011 at 10:03 PM, Ma'moon wrote: > Most likely you need to leave the port section empty in your db > configuration > > On Sat, Nov 5, 2011 at 9:55 PM, bluethundr wrote: >> >> ## cake cannot connect to the databse >> >> Your tmp directory is writable. >> >> The FileEngine is being used for caching. To change the config edit >> APP/config/core.php >> >> Your database configuration file is present. >> >> Cake is NOT able to connect to the database. >> >> ## database config file >> >> >> class DATABASE_CONFIG { >> >> var $default = array( >> 'driver' => 'mysql', >> 'persistent' => false, >> 'host' => 'localhost', >> 'login' => 'admin', >> 'password' => 'secret', >> 'database' => 'cake', >> 'prefix' => '', >> 'port' => '/var/lib/mysql/mysql.sock', >> //'encoding' => 'utf8', >> ); >> >> var $test = array( >> 'driver' => 'mysql', >> 'persistent' => false, >> 'host' => 'localhost', >> 'login' => 'admin', >> 'password' => 'secret', >> 'database' => 'cakeblog', >> 'prefix' => '', >> 'port' => '/var/lib/mysql/mysql.sock', >> //'encoding' => 'utf8', >> ); >> } >> >> >> >> ## user can connect to (and use) database on the command line >> >> >> [root@cloud cake]# mysql -uadmin -psecret >> Welcome to the MySQL monitor. Commands end with ; or \g. >> Your MySQL connection id is 2 >> Server version: 5.5.17-log MySQL Community Server (GPL) by Remi >> >> Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights >> reserved. >> >> Oracle is a registered trademark of Oracle Corporation and/or its >> affiliates. Other names may be trademarks of their respective >> owners. >> >> Type 'help;' or '\h' for help. Type '\c' to clear the current input >> statement. >> >> mysql> use cake >> Database changed >> >> thank you! >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php