What is Yii 2.0 and what does it do? - yii2

How does Yii 2.0 work and what does it do?
I'm new to IT. I read the documentation online, but I don't understand what it does and how it works. Maybe the documentation is to advanced for me or my newbie head can't wrap around it.

I would like to mention, that Stack Overflow is not "Google for software developers". 95% of information could be found if you just google for it.
So if you are doing internship and has to do something with the Yii framework, I assume you already can do some PHP and probably know what is software development (web development). You can develop your web applications using different frameworks. One of those frameworks is the Yii framework.
There is a lot of information about the Yii on the official Yii homepage. You can start with reading its documentation.
Then there is also the "Definitive guide to Yii 2.0". Here is introduction and the first steps.
Have fun with learning it, and I wish you success learning Yii.

Related

Internal search engine for webmatrix 3

I'm trying to implement an internal search engine for my webmatrix website, it will serach through my database(SQL CE) for similarity and return results. Someone suggested me to use lucene.net because of how powerful it is. I cannot find documentation on implementing lucene.net with webmatrix, only implementation on asp.net with VS 2015. Can anyone guide me on implementing it on webmatrix? Or does anyone have any good suggestion for internal search engine? Or it would be easier to write my own search algorithm? Thanks!
You might like to use our product SearchUnit Community, there's a free version for small websites. I believe you'll find it easier to use than Lucene, and although we don't have documentation specific to WebMatrix, the standard Javascript based usage should apply just the same. The product uses ASP.NET on the backend.
For example if you look at the quick start, you'll see that you can crawl any web-site using the index manager tool. Then you drop some Javascript onto your page, and hook up WCF for the backend search calls.
If it helps, the search engine uses Javascript/HTML on the front end to build the UI, and then communicates via AJAX/WCF to the backend service that does the searching.
You can run WCF with webmatrix, see https://blogs.msdn.microsoft.com/james_osbornes_blog/2010/07/30/webmatrix-iisexpress-beta-hosting-wcf-services/
If you're stuck you're welcome to post support questions on the SearchUnit Community forum

Working with MySQL and Xcode

I've been programing for some time now, and the thing I get asked the most is, how about MySQL database.
What are some good sites for learning about data base programing with xcode, so I can make a app work together with a web site?
To integrate an iPhone/iPad application with mysql you need to develop webservices and then call them in your app. I would suggest the use of JSON, SOAP, XML or PHP, some examples:
http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app
http://www.icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/
http://www.devx.com/wireless/Article/43209
There are a lot of combinations possible.... you can use php or .net or other frameworks, so it's hard to give you a complete list of tutorials.
If you want to develop a regular iOS application, i would suggest this link:
http://blog.iosplace.com/?p=30
Hope it helps.

ASP .NET or Django?

I'm new to the web framework, but have been using Java/Servlet/JSP for my previous web development because I hate PHP. I'm thinking of starting a new feature laden website that I need to quickly create and been deciding on numerous technologies.
I dabbled in Drupal for a while and found it too restrictive and didn't particularly enjoy constantly trying to find a module that almost do what you want so I'm moving over to a web framework.
I considered ASP .NET or Django. Searching on this site, I found a couple of questions ("[Is there any advantage to Django versus ASP.NET MVC other than platform? closed" and "ASP.NET MVC vs. Django - Which framework should I learn?"), but they don't fit my situation.
In my case, I'm new to Python and have to learn that, but am relatively familiar with C# due to Java/C++/XNA and VB Classic 6.0. In both cases, I have no experience with Django/Python or ASP .NET/SQL Server and have never created a site with either.
My reasons are as follows:
I like the idea of having a full stack from one vendor and not mock around with Linux as it took me forever to setup a proper secure setup of Ubuntu, PHP, MySQL and Apache. I don't want technical oddities of learning gazillion different applications with obscure settings to get it working. This is mostly a concern with Django/Python as I believe MS got their stuff well tied togheter.
Django is designed for newspaper website so it focuses on rapid and efficient development of new features with good design principles. I love the idea of there is only one good way to do it and the Django authors perfectionism. The pitfall of course is since 2005 they are still on version 1.2! Ruby on Rails is far ahead of them considering I saw this video. Yeah, I watched the whole entire 3-hours, but didn't understand much from the RoR demonstration.
ASP .NET is appealing to me because I already know C# and VB Classic 6.0. I'm familiar with Visual Studio and like the fact that it is also tied in to Windows Phone 7/Xbox Live Indie games with XNA. However, if those features are used is another question down the road. However, as mentioned before ASP .NET just seemed streamelined with plenty of documentation and support. Future job prospects also seem more in favor with MS technology.
What does the community here think?
I would like to hear different ideas as I beginning web programmer it is very daunting and I have vasted far too much time figuring this out on my own the hard way. Help would be very much appreciated!
ASP.Net and WISC# stack.
WISC - Windows/IIS/SqlServer/C# :)
if you want an MVC Web Framework use ASP.net MVC , since you come from a Java Background C# wont be a problem for you
Django is a good framework but you have to learn python

Which technologies are commonly used by developers to quickly build websites?

I'm an experienced C/C++/C#/Objective-C desktop,web, and mobile programmer and I've become accustomed to building most of my software from scratch. I've built all my websites from the ground up using ASP.NET. I have quite a few ideas for websites that I'd like to test and I'd like to increase the rate at which I can actually build a website. I'm sure I'm unaware of many of the technologies that are commonly used for building out ideas quickly. About a year back, I looked into using the popular CMS called Drupal to see if it would help me speed up development. After two weeks of trying to decipher the structure of the Drupal CMS, along with trying to learn PHP, I found the learning curve to be steep enough to convince me that it would just be faster if I built my website yet again from scratch using ASP.NET MVC. I'm wondering if anyone could suggest any other technologies that are designed for programmers to build websites quicker than my current method of building them from scratch using ASP.NET MVC.
Secondly, I've been hearing many entrepreneurs mention Ruby on Rails is what they use to speed up the development of their ideas, so I'm planning to investigate it. Why do I hear more about Ruby on Rails than any other technology? Would you suggest using it to speed up development?
Thanks in advance for all your wisdom!
I've tried out Ruby on Rails, Django (the Python equivalent of Ruby on Rails) and Drupal. Drupal is nice if you're just acting as a sysadmin: install the modules you want and use it as-is. But PHP as a programming language is so annoying that I'd hate to use it for something serious.
Django has some odd quirks but seems to work well. From an MVC perspective, Django calls views "templates" and calls controllers "views", which is ugly. Also, instead of generating default URL -> controller/action mappings for you the way that Rails does, Django set up routing files by hand before things work. You also have to set up some DJANGO environment variables if you want to run other helper Python code with access to your model objects. Rails also creates and configures a sqlite database by default so that you can start right away, but with Django you have to set it up yourself.
Rails seems to "just work" in so many ways that I highly recommend it. Ruby is also a pleasant language to work in. Try the simple startup to see what I mean:
rails foo # Create the foo webapp
cd foo
script/server
Then browse to http://localhost:3000 to try things out. That page will give you some info about your webapp and point you to the next steps.
Use an ORM for the data layer. That will increase the speed.
Also reuse common code elements from your previous projects.
And still, for any more or less different site you would need to do some work. Cannot avoid that. ASP.NET MVC is quite powerful tool, especially because it's backed up by the rich .NET class library. At least this framework doesn't build you obstacles at any step along the way, which is quite an accomplishment.
Django is a framework for database-driven web pages in Python.
I agree with your assessment. I was rather proficient in C/C++/C# and never built a website before. I looked at a couple of things, but when I started working with ASP.NET MVC2, I loved it. Another method/architecture I like but haven't messed too much with is WPF. If you download Microsoft Expression Blend 4 there's a 60 day trial and it's really nice. A lot of clicking and less typing. :) Hope this helps.
I toyed with the Zend PHP Framework a bit, and found it to be pretty good. You mentioned that the learning curve for Drupal/PHP didn't make it worthwhile to pursue, but if you retained any of the PHP you learned from that, this might go a bit quicker. To read more you can check out "10 Compelling Reasons to Use Zend Framework". Zend might not exactly be "configure and you're done," but since I usually work with Enterprise Java, I found it pretty reasonable in the speed-to-set-up department.

Getting started with web sockets

I'm very interested in learning about the new feature in HTML5 called web sockets. I've looked into it and have come out with a few questions.
It seems that before I can start implementing this new technology into a web application of mine I need to have a web server which supports it. Does this involve downloading something and installing it on the said server? Is there more than one available? If so where do I find these?
I already have experience with JavaScript and HTML/CSS of course, Are there any other languages I will need to learn to start using web sockets?
You might like this:
[Edit this link is outdate]
https://stackoverflow.com/questions/1252829/what-browsers-support-html-5-websocket
http://www.w3.org/TR/2009/WD-websockets-20091029
http://www.websockets.org/about.html